item_enchantment_template
This table holds enchantment chance information for items that should have either a random property or a random suffix attached to them.
Structure
| Field | Type | Attributes | Key | Null | Default | Extra | Comment |
|---|---|---|---|---|---|---|---|
| entry | int | unsigned | PRI | NO | 0 | ||
| ench | int | unsigned | PRI | NO | 0 | ||
| chance | float | NO | 0 | ||||
Description of fields
entry
This field ties in with either RandomProperty OR RandomSuffix fields in the item_template table. An item cannot have both of those fields set at non-zero values.
ench
The enchantment to apply on the item. This fields value depends on the source of entry.
- RandomProperty: ench is an ItemRandomPropery ID.
- RandomSuffix: ench is an ItemRandomSuffix ID.
chance
The chance for a random property or suffix to be applied to the item. For each entry in this table, the combined chances of all properties/suffixes need to equal 100 otherwise the item may not get a random enchantment on it.
