Skip to content

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 ​

FieldTypeAttributesKeyNullDefaultExtraComment
entryintunsignedPRINO0
enchintunsignedPRINO0
chancefloatNO0
 

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.

 

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.