显示页面过去修订反向链接回到顶部 本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。 <!DOCTYPE markdown> # item\_enchantment\_template [<-Back-to:World](database-world.md) **The \`item\_enchantment\_template\` table** 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][1] | MEDIUMINT | UNSIGNED | PRI | NO | 0 | | | | [ench][2] | MEDIUMINT | UNSIGNED | PRI | NO | 0 | | | | [chance][3] | FLOAT | UNSIGNED | | NO | 0 | | | [1]: #entry [2]: #ench [3]: #chance **Description of the fields** ### entry This field ties in with EITHER RandomProperty OR RandomSuffix fields in the [item\_template](http://www.azerothcore.org/wiki/item_template) table. An item cannot have both of those fields set at non-zero values. ### ench The enchantment to apply on the item. If the entry for the current row is used in RandomProperty, then this field points to the ID in ItemRandomProperties.dbc. If the entry is used in RandomSuffix, then this field points to the ID in [ItemRandomSuffix.dbc](ItemRandomSuffix). ### 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. Value must be >=0. If the value does not meet the condition the SQL will fail on `item_enchantment_template_chk_1`. docs-en/item_enchantment_template.md.txt 最后更改: 2024/03/15 19:08由 127.0.0.1