> 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/setitemtype.md).

# SetItemType

<mark style="color:green;">Defines which items are pieces of an Ancient Set, which set each piece belongs to, and which attribute it automatically reinforces.</mark>

| Column       | Accepted values                                             | Description                                                                                                                                                                                                                                                                                                                                                             |
| ------------ | ----------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Section      | Number (item group)                                         | Together with `Type`, forms the item's code.                                                                                                                                                                                                                                                                                                                            |
| Type         | Number (item index within the group)                        | See `Section`.                                                                                                                                                                                                                                                                                                                                                          |
| StatType     | `0`, `1`, `2`, or `3`                                       | Determines which attribute this item automatically increases because it is an Ancient Set piece: `0` = Strength (general weapons), `1` = Agility (bows/crossbows), `2` = Energy (staffs), `3` = Vitality (shield, helm, armor, pants, gloves, boots). The bonus (+5, +10, or +15) depends on the Ancient grade rolled for that specific item instance; it is not fixed. |
| OptionIndex1 | Number matching an `Index` from `SetItemOption.txt`, or `0` | The Ancient Set this piece belongs to.                                                                                                                                                                                                                                                                                                                                  |
| OptionIndex2 | Number matching an `Index` from `SetItemOption.txt`, or `0` | A second Ancient Set this same piece can belong to (most items belong to only one set, so this is usually `0`).                                                                                                                                                                                                                                                         |

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

* `StatType` is an automatic bonus **separate** from the set bonuses defined in `SetItemOption.txt`. Every Ancient Set piece provides a small attribute increase according to its category, even when used alone without combining it with other pieces of the same set.
* `OptionIndex1`/`OptionIndex2` are the links that connect this item to `SetItemOption.txt`. Without this connection, the item does not count as a piece of any set, even if its name appears to belong to one.
