用户工具

站点工具


数据库:world数据库:loot_template

这是本文档旧的修订版!


*_loot_template 表

常规


Well, according to vocabulary the meaning of the word “loot” is good for corpse loot and may be for some gameobjects like chests but quite unfit for fishing “loot”. Nevermind. We will use term “loot” here as “a set of items generated on an event for a player” and “loot definition” as “a set of rules for loot generation”. And forget about vocabulary for a while.

This table format is used for 12 different tables to generate different loot items for different things. The 12 tables are creature_loot_template, disenchant_loot_template, fishing_loot_template, gameobject_loot_template, item_loot_template, pickpocketing_loot_template, prospecting_loot_template, skinning_loot_template, quest_mail_loot_template, reference_loot_template, milling_loot_template, spell_loot_template. The general description here is valid for all 12 because the loot system is the same for all eleven.

Loot templates define only items in the loot. See comments about money drop in corpse, pickpocketing and luggage loot in creature_template and item_template.

表结构

FieldTypeAttributesKeyNullDefaultExtraComment
EntryMEDIUMINT UNSIGNEDNOPRI0
ItemMEDIUMINT UNSIGNEDNOPRI0
ReferenceMEDIUMINT UNSIGNEDNOPRI0
ChanceFLOATNO 100
QuestRequiredboolNO 0
LootModeSMALLINTNO 1
GroupIdTINYINTNOPRI0
MinCountMEDIUMINTNO 1
MaxCountTINYINT UNSIGNEDNO 1
CommentVARCHAR

关系


Loot tableFieldRelationRelated tableFieldComment
fishing_loot_templateno relationentry is linked with ID of the fishing zone or area
creature_loot_templateentrymany ← manycreature_templatelootid
gameobject_loot_templateentrymany ← manygameobject_templatedata1Only gameobject type 3 (GAMEOBJECT_TYPE_CHEST) or 25 (GAMEOBJECT_TYPE_FISHINGHOLE) use data1 as loot ID, for other types data1 is used in other ways
item_loot_templateentrymany ← oneitem_templateentry
disenchant_loot_templateentrymany ← manyitem_templateDisenchantID
prospecting_loot_templateentrymany ← oneitem_templateentry
milling_loot_templateentrymany ← oneitem_templateentry
pickpocketing_loot_templateentrymany ← manycreature_templatepickpocketloot
player_loot_templateno relationentry is linked with player TeamID 0 = Horde, 1 = Alliance
skinning_loot_templateentrymany ← manycreature_templateskinlootCan also store minable/herbable items gathered from creatures
quest_mail_loot_templateentry quest_templateRewardMailTemplateId
reference_loot_templateentrymany ← many- _loot_template-mincountOrRefIn case of negative mincountOrRef
spell_loot_templateentrymany ← manySpell (DBC)SpellId

字段说明


数据库/world数据库/loot_template.1695542134.txt.gz · 最后更改: 2023/09/24 15:55 由 admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki