SetItemType

Defines which items can be set items and which set they belong to

This configuration file defines which items can be set (ancient) items and maps them to their corresponding set bonuses in SetItemOption.xml.

File Location

GameServer/Data/Item/SetItemType.xml

Dependencies

Depends On
Purpose

Item.xml

Item definitions by Section/Type

SetItemOption.xml

Set bonus definitions by OptionIndex

Depended On By
Purpose

ItemOptionRate.xml

SetOptions section determines set tier on drop

How It Works

When a player equips items:

  1. Server checks if item is a set item (bits 0-1 of m_SetOption must be 1 or 2)

  2. Looks up item in SetItemType by Section/Type

  3. Uses bits 0-1 to select OptionIndex: value 1 = OptionIndex1, value 2 = OptionIndex2

  4. Counts matching set pieces across equipment for that OptionIndex

  5. Applies bonuses from SetItemOption based on piece count

Structure

Attributes

Attribute
Type
Description

Section

int

Item category (0-13, see table below)

Type

int

Item type index within category

StatType

int

Stat bonus type (see below)

OptionIndex1

int

First set ID reference (from SetItemOption.xml)

OptionIndex2

int

Second set ID reference (0 = none)

StatType Values

Value
Stat
Effect

0

None

No stat bonus from set tier

1

Strength

Adds STR based on stat tier

2

Dexterity

Adds AGI based on stat tier

3

Energy

Adds ENE based on stat tier

circle-info

Stat Tier Multiplier: The item's SetOption byte contains stat tier info in bits 2-3. The bonus is calculated as ((m_SetOption >> 2) & 3) * 5. Valid stat tier values: 0 = +0 stat, 1 = +5 stat, 2 = +10 stat, 3 = +15 stat. This is independent of which set the item belongs to (bits 0-1).

Item Index Calculation

Section
Category

0

Swords

1

Axes

2

Maces

3

Spears

4

Bows

5

Staffs

6

Shields

7

Helms

8

Armor

9

Pants/Gloves/Boots

10

Rings

11

Amulets

12

Wings

13

Misc

OptionIndex Reference

The OptionIndex values reference set definitions in SetItemOption.xml:

OptionIndex
Set Name
Typical Items

1

Warrior

Morning Star, Leather set, Ring of Ice

2

Anonymous

Buckler

3

Hyperion

Skull Staff

4

Mist

Bronze set

5

Eplete

Skull Shield, Bone set, Pendant of Ice

...

...

...

circle-info

Dual Set Membership: Items with both OptionIndex1 and OptionIndex2 can contribute to TWO different sets simultaneously.

Examples

  • StatType=3: Gains +5 ENE per tier level

  • Can contribute to either Hyon or Vicious set bonuses

Important Behavior

circle-info

Duplicate Prevention: If two identical items are equipped in both weapon slots or both ring slots with the same OptionIndex, only one counts toward the set bonus.

circle-info

SetOption Byte Structure: The SetOption byte encodes two pieces of information:

  • Bits 0-1: Which set (1 = OptionIndex1, 2 = OptionIndex2). Must be 1 or 2 for valid set items.

  • Bits 2-3: Stat bonus tier (0-3). Multiplied by 5 to get the bonus: 0=+0, 1=+5, 2=+10, 3=+15.

This is determined when the item drops based on ItemOptionRate.xml SetOptions section.

circle-exclamation

Common Issues

circle-exclamation
triangle-exclamation

Last updated