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.
enum SpawnMask

ValueFlagContinentDungeonRaidComment
00x00nonono
10x01yes5N10Nand all maps without spawn modes
20x02no5H25N
40x04nono10H
80x08nono25H
30x03all dungeon modes and all normal raid modes
120x0Call heroic raid modes
150x0Fall raid modes

 

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.

PositionRadianDecimal
North0 / 2π6.28319
West0.5π1.57080
Southπ3.14159
East1.5π4.71239

 

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.