Skip to content

creature_loot_template

Contains items dropped by slain creatures.

Please refer to the generic description of the loot system for more information.

Structure ​

FieldTypeAttributesKeyNullDefaultExtraComment
EntryintunsignedPRINO0
ItemintunsignedPRINO0
ReferenceintunsignedNO0
ChancefloatNO100
QuestRequiredtinyint(1)signedNO0
LootModesmallintunsignedNO1
GroupIdtinyintunsignedNO0
MinCounttinyintunsignedNO1
MaxCounttinyintunsignedNO1
Commentvarchar(255)YESNULL

 

Description of fields ​

Entry ​

creature_template entry
 

Item ​

- no description -
 

Reference ​

reference_loot_template entry
 

Chance ​

  • Reference = 0: real chance = creature_loot_template.Chance
  • Reference > 0: real chance = creature_loot_template.Chance * reference_loot_template.Chance
     

QuestRequired ​

- no description -
 

LootMode ​

enum LootModes

ValueFlagName
10x0001LOOT_MODE_DEFAULT
20x0002LOOT_MODE_HARD_MODE_1
40x0004LOOT_MODE_HARD_MODE_2
80x0008LOOT_MODE_HARD_MODE_3
160x0010LOOT_MODE_HARD_MODE_4
327680x8000LOOT_MODE_JUNK_FISH

 

GroupId ​

groupid < 128(1 << 7)
if groupid >= 128, trigger bug then all creature will not loot anything.

if Reference > 0, then creature_loot_template.GroupId must equal reference_loot_template.GroupId, if not then will not loot anything.
 

MinCount ​

- no description -
 

MaxCount ​

- no description -
 

Comment ​

- no description -