Skip to content

creature

Contains individual creature spawn data. Spawn of a creature is an instance of the creature object in the world.

Structure ​

FieldTypeAttributesKeyNullDefaultExtraComment
guidintunsignedPRINOauto_incrementGlobal Unique Identifier
idintunsignedMULNO0Creature Identifier
mapsmallintunsignedMULNO0Map Identifier
zoneIdsmallintunsignedNO0Zone Identifier
areaIdsmallintunsignedNO0Area Identifier
spawnMasktinyintunsignedNO1
phaseMaskintunsignedNO1
modelidintunsignedNO0
equipment_idtinyintsignedNO0
position_xfloatNO0
position_yfloatNO0
position_zfloatNO0
orientationfloatNO0
spawntimesecsintunsignedNO120
wander_distancefloatNO0
currentwaypointintunsignedNO0
curhealthintunsignedNO1
curmanaintunsignedNO0
MovementTypetinyintunsignedNO0
npcflagintunsignedNO0
unit_flagsintunsignedNO0
dynamicflagsintunsignedNO0
ScriptNamechar(64)YES''
StringIdvarchar(64)YESNULL
VerifiedBuildintsignedYES0
 

Description of fields ​

guid ​

A unique identifier given to each creature to distinguish one creature from another.

Two creatures can NOT have same GUID.

 

id ​

The entry of the template that is used when instantiating this creature.  

map ​

The Map ID of the position of the creature.  

zoneId ​

calculated by the core if Calculate.Creature.Zone.Area.Data is enabled  

areaId ​

calculated by the core if Calculate.Creature.Zone.Area.Data is enabled  

spawnMask ​

Controls under which difficulties the creature is spawned.

ValueComment
0x00Not spawned
0x01Spawned only in 10-man-normal versions of map (includes maps without a heroic mode)
0x02Spawned only in 25-man-normal versions of map (or heroics pre 3.2)
0x04Spawned only in 10-man-heroic versions of map
0x08Spawned only in 25-man-heroic versions of map
0x0FSpawned in all versions of map

 

phaseMask ​

This is a bitmask field that describes all the phases that a creature will appear in.

SPELL_AURA_PHASE (261) determines the phase you can see. For example, if you had this aura, you would be able to see creatures in phase 2. If you wanted the creature to be visible in both phase 1 and phase 2, you would set the phaseMask to 3.

 

modelid ​

The model ID associated with this creature. Note that two creatures that use the same template can have different models. See creature_model_info for more information on model-specific characteristics.

Note: This can be left at 0 and a random model from its assigned models in creature_template will be assigned by the core.

 

equipment_id ​

The ID as defined within creature_equip_template corresponding to the CreatureID.

position_x ​

The X position of the creature.  

position_y ​

The Y position of the creature.  

position_z ​

The Z position of the creature.  

orientation ​

The orientation of the creature. (North = 0.0; South = pi (3.14159))  

spawntimesecs ​

The respawn time of the creature in seconds.  

wander_distance ​

The maximum distance that the creature should spawn from its spawn point. Also controls how far away the creature can walk from its spawn point if its MovementType = 1.  

currentwaypoint ​

The current waypoint number that the creature is on, if any. (see waypoint_data.point)  

curhealth ​

The current health that the creature has. This column is used only if RegenHealth is disabled.  

curmana ​

The current mana that the creature has.  

MovementType ​

The movement type associated with this creature. Usually the same as creature_template.MovementType but can be different.

Note: A creature.MovementType record will override a creature_template.MovementType record.

 

npcflag ​

Same as creature_template.npcflag

Note: A creature.npcflag record will override a creature_template.npcflag record.

 

unit_flags ​

Same as creature_template.unit_flags

Note: A creature.unit_flags record will override a creature_template.unit_flags record.

 

dynamicflags ​

Same as creature_template.dynamicflags

Note: A creature.dynamicflags record will override a creature_template.dynamicflags record.

 

ScriptName ​

The ScriptName for when scripting it in the core. This might also be 'SmartTrigger'. It will than use SmartAI.  

StringId ​

- no description -  

VerifiedBuild ​

This field is used by the TrinityDB Team to determine whether a template has been verified from WDB files.

If value is 0 then it has not been parsed yet.

If value is above 0 then it has been parsed with WDB files from that specific client build.

If value is -1 then it is just a place holder until proper data are found on WDBs.

If value is -Client Build then it was parsed with WDB files from that specific client build and manually edited later for some special necessity.