380ItemType Configuration

This configuration file defines which items can receive 380-level enhancement options and maps them to specific option types from 380ItemOption.xml.

File Location#

Data/Item/380ItemType.xml

Dependencies#

Depends OnPurpose
Item.xmlItem definitions by Category/Type
380ItemOption.xmlOption type definitions and default values

How It Works#

  1. Player obtains a 380-enhanced item (carries the 380 flag on its extended option byte, bit 0x80)
  2. Server looks up the item in 380ItemType by the combined item index (Category * 512 + Type)
  3. Retrieves OptionIndex1/2 (option types) and OptionValue1/2 (raw values)
  4. * in OptionValue is stored internally as -1 and triggers fallback to the default Value in 380ItemOption.xml; any other string is parsed as an integer (non-numeric strings become 0)
  5. Applies each option that has a non-zero index and a matching entry in 380ItemOption.xml

Structure#

<Item380TypeList>
    <Item Category="0" Type="22" OptionIndex1="2" OptionValue1="*" OptionIndex2="1" OptionValue2="*"/>
</Item380TypeList>

Attributes#

AttributeTypeDescription
CategoryintItem category (0-11 are standard equipment slots; higher categories are valid if the item index resolves)
TypeintItem type index within category
OptionIndex1intFirst option type (0 = none, otherwise an index defined in 380ItemOption.xml)
OptionValue1stringFirst option value (* = use default from 380ItemOption, otherwise an integer)
OptionIndex2intSecond option type (0 = none, otherwise an index defined in 380ItemOption.xml)
OptionValue2stringSecond option value (* = use default, otherwise an integer)

Item Index Calculation#

ItemIndex = Category * 512 + Type

Category Reference#

CategoryItem Type
0Swords
1Axes
2Maces/Scepters
3Spears
4Bows/Crossbows
5Staffs
6Shields
7Helms
8Armor
9Pants
10Gloves
11Boots

Option Types#

See 380ItemOption.xml for the authoritative list and default values.

IndexNameEffect
1Add Attack Success Rate PvPAdds value to PvP attack success rate
2Add Damage PvPAdds value to PvP damage
3Add Defense Success Rate PvPAdds value to PvP defense success rate
4Add Defense PvPAdds value to PvP defense
5Add Max HPAdds value to maximum life
6Add Max SDAdds value to maximum shield
7Set SD Recovery TypeAssigns the SD recovery type field (not additive)
8Add SD Recovery RateAdds value to SD recovery rate

Standard Option Assignments#

Default assignments shipped in the stock 380ItemType.xml:

Equipment SlotOptionIndex1OptionIndex2
Weapons (Cat 0, 2, 4, 5)2 (Damage PvP)1 (Attack Rate PvP)
Helms (Cat 7)8 (SD Recovery Rate)3 (Defense Rate PvP)
Armor (Cat 8)7 (SD Recovery Type)3 (Defense Rate PvP)
Pants (Cat 9)4 (Defense PvP)3 (Defense Rate PvP)
Gloves (Cat 10)5 (Max HP)3 (Defense Rate PvP)
Boots (Cat 11)6 (Max SD)3 (Defense Rate PvP)

Examples#

<!-- Rune Blade (Section 0, Type 22) - PvP damage bonuses -->
<Item Category="0" Type="22" OptionIndex1="2" OptionValue1="*" OptionIndex2="1" OptionValue2="*"/>
  • OptionIndex1=2: Add Damage PvP (default value from 380ItemOption)
  • OptionIndex2=1: Add Attack Success Rate PvP (default value)

Important Behavior#

Common Issues#

See Also#

Last updated April 20, 2026