> For the complete documentation index, see [llms.txt](https://changelog.matrixemulator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://changelog.matrixemulator.com/welcome/server/muserver/data/item/itemvalue.md).

# ItemValue

<mark style="color:green;">Defines the buy and sell price of specific items in NPC shops. This file is used to assign custom prices to items that do not follow the server's automatic price calculation, such as jewels, arrows, bolts, and event items.</mark>

<table data-search="false"><thead><tr><th>Column</th><th>Accepted values</th><th>Description</th></tr></thead><tbody><tr><td>Index</td><td>Number (item code)</td><td>The item this rule applies to.</td></tr><tr><td>Level</td><td>Number, or <code>*</code></td><td>Restricts the rule to a specific item level. <code>*</code> = any level.</td></tr><tr><td>OpExe</td><td>Number, or <code>*</code></td><td>Restricts the rule to a specific Excellent option on the item. <code>*</code> = any Excellent option.</td></tr><tr><td>BuyValue</td><td>Number, in Zen</td><td>Price charged by an NPC to sell this item to the player.</td></tr><tr><td>Coin1 / Coin2 / Coin3</td><td>Number</td><td>Additional cost in WCoinC / WCoinP / Goblin Point (for NPC shops that use premium currencies).</td></tr><tr><td>SellValue</td><td>Number, in Zen</td><td>Amount of Zen the player receives when selling the item to an NPC.</td></tr><tr><td>Comment</td><td>Text after <code>//</code></td><td>Free comment (typically the item name), ignored by the game.</td></tr></tbody></table>

### <mark style="color:yellow;">Notes</mark>

* For stackable items (such as jewels and potions), `BuyValue` is **multiplied by the number of items in the stack**. The only exceptions are **Arrows** and **Bolts**, which always use the full price defined in the row regardless of the stack size.
* The server searches for a matching row using the following priority order: first, an exact match for both `Level` and `OpExe`; if none is found, it looks for the exact `Level` with `OpExe = *`; then for the exact `OpExe` with `Level = *`; and finally for a row where both `Level` and `OpExe` are `*`.
* Any item not listed in this file uses the price calculated automatically by the server based on its attributes defined in `Item.txt`, rather than a fixed value.
