ItemValue Configuration

This configuration file defines custom prices for items, including support for alternative currencies (WCoinC, WCoinP, GoblinPoints).

File Location#

Data/Item/ItemValue.xml

Dependencies#

Depends OnPurpose
Item.xmlItem definitions and default prices (Money attribute)
ItemStack.xmlDetermines whether an item is stackable, which affects how Value is totaled

See also: ItemMove.xml for per-item sell/trade/drop restrictions, ItemOption.xml for the stat effects of excellent Grades referenced here.

How It Works#

  1. When an item is priced (NPC buy, NPC sell, personal store listing, or inventory value refresh), the server looks up a matching entry in ItemValue.
  2. Matching walks every entry with the same Index and picks the first one where Level and Grade either match exactly or are wildcards. See "Match Priority" below for the exact order.
  3. When a match is found, Value and the three currency toggles set the buy price. SellPrice and SellCurrency set the sell price: the buy toggles never change the sell currency. With SellPrice="0" (or missing) a Zen-bought entry sells for Value / 3 Zen and a coin-bought entry sells for the item's normal Zen price.
  4. For stackable items (see ItemStack.xml), the NPC buy total is Value * StackCount. Bolts (Index 2055) and Arrows (Index 2063) are treated as non-stackable for pricing and always use a single Value.
  5. If no entry matches, the default buy/sell price calculated from the Money attribute in Item.xml is used (sell = Money / 3).

Structure#

<Item Index="7181" Level="*" Grade="*" Value="90000000"
      WCoinC="0" WCoinP="0" GoblinPoint="0" SellPrice="100"
      Name="Jewel of Bless"/>

Attributes#

AttributeTypeDescription
IndexintItem index (Category * 512 + Type)
Levelstring* for any level, or 0-15 for a specific +level
Gradestring* for any grade, or the item's excellent-option bitmask value to match
Valueint64Buy price (per-unit for stackables, except Bolts/Arrows)
WCoinCint1 = price is in WCoinC, 0 = not used
WCoinPint1 = price is in WCoinP, 0 = not used
GoblinPointint1 = price is in GoblinPoints, 0 = not used
SellPriceint64What the NPC pays, in SellCurrency. 0 or missing: Zen-bought entry = Value / 3 Zen, coin-bought entry = the item's normal Zen sell price
SellCurrencystringZen (default), WCoinC, WCoinP or GoblinPoint (or 0-3). Only used when SellPrice is above 0
NamestringItem name (optional, for reference)

Currency Priority#

When multiple currency toggles are set to 1:

GoblinPoint > WCoinP > WCoinC > Zen

If all toggles are 0, price is in Zen.

Examples#

<!-- Jewel of Bless: Buy 90M Zen, Sell 100 Zen -->
<Item Index="7181" Level="*" Grade="*" Value="90000000"
      WCoinC="0" WCoinP="0" GoblinPoint="0" SellPrice="100"
      Name="Jewel of Bless"/>

All currency toggles = 0 means Zen is used.

Important Behavior#

Common Issues#

Last updated October 9, 2026