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

# LuckyItem

<mark style="color:green;">Defines</mark> <mark style="color:green;"></mark><mark style="color:green;">**Lucky Items**</mark> <mark style="color:green;"></mark><mark style="color:green;">(equipment obtained from lucky boxes/events, with randomly generated options and a custom wear system that is different from normal durability).</mark>

| Column            | Accepted values    | Description                                                                                                                                                                                                   |
| ----------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Index             | Number (item code) | The equipment item that can be generated as a Lucky Item.                                                                                                                                                     |
| Group             | Number             | Groups equivalent items from the same equipment slot. When the server generates a Lucky Item, it selects from the same `Group` the item version whose class restriction matches the receiving player's class. |
| Decay             | Number             | Accumulated wear limit before the item loses 1 point of its actual durability. Lucky Items have this separate wear system, independent from normal combat durability loss.                                    |
| Option0 – Option6 | Number (table ID)  | Each one controls an item attribute (level, skill/luck/additional option, excellent, ancient/set, socket) using the same probability tables from `ItemOptionRate.txt`.                                        |
| Comment           | Text after `//`    | Free comment (typically the item name), ignored by the game.                                                                                                                                                  |

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

* `Decay` is **not** the item's durability. It represents how much accumulated wear from usage/combat the Lucky Item can withstand before losing 1 point of real durability. The higher the value, the more resistant the item is to this wear.
* Items with the same `Group` and the same equipment slot (same item category/group) usually exist in multiple versions, one for each class. The server selects the correct version according to the class of the player receiving the item.
