Skip to content

creature

Structure ​

FieldTypeAttributesKeyNullDefaultExtraComment
guidbigintunsignedPRINO0
idintunsignedMULNO0Creature Identifier
mapsmallintunsignedMULNO0Map Identifier
zoneIdsmallintunsignedNO0Zone Identifier
areaIdsmallintunsignedNO0Area Identifier
spawnDifficultiesvarchar(100)NO0
phaseUseFlagstinyintunsignedNO0
PhaseIdintsignedYES0
PhaseGroupintsignedYES0
terrainSwapMapintsignedNO-1
modelidintunsignedNO0
equipment_idtinyintsignedNO0
position_xfloatNO0
position_yfloatNO0
position_zfloatNO0
orientationfloatNO0
spawntimesecsintunsignedNO120
wander_distancefloatNO0
currentwaypointintunsignedNO0
curHealthPctintunsignedNO100
MovementTypetinyintunsignedNO0
npcflagbigintunsignedYESNULL
unit_flagsintunsignedYESNULL
unit_flags2intunsignedYESNULL
unit_flags3intunsignedYESNULL
ScriptNamevarchar(64)NO''
StringIdvarchar(64)YESNULL
VerifiedBuildintsignedNO0
 

Description of fields ​

guid ​

A unique identifier given to each creature to distinguish one creature from another. Two creatures can NOT have same GUID. If a new creature will be spawned it should be within the GUID range of the current expansion when creature was added first on retail.

For example Chromie is spawned in Orgrimmar and Stormwind, but was added in Shadowlands (9.x) on retail (expansion 8), so we would assign a GUID between 8000000 and 8999999.

Classic Only Spawns: Some spawns in 4.4.x are different then 4.3.x, we use last 10k

The GUID ranges are defined as followed: | Expansion | GUID range start | GUID range end | ℹ️ Event GUID subrange start | ℹ️ Event GUID subrange end | Classic Only range start | Classic Only range end | --------------------------------------------- | ---------------- | -------------- | ------------------------- | ----------------------- | | Vanilla (1.x) | 1 | 249999 | | | | | | The Burning Crusade (2.x) | 1 | 249999 | | | | | | Wrath of the Lich King (3.x) | 2000000 | 2989999 | 2800000 | 2989999 | 2990000 | 2999999 | | Cataclysm (4.x) | 3000000 | 3989999 | 3800000 | 3989999 | 3990000 | 3999999 | | Mists of Pandaria (5.x) | 4000000 | 4999999 | 4800000 | 4999999 | | | | Warlords of Draenor (6.x) | 5000000 | 5999999 | 5800000 | 5999999 | | | | Legion (7.x) | 6000000 | 6999999 | 6800000 | 6999999 | | | | Battle for Azeroth (8.x) | 7000000 | 7999999 | 7800000 | 7999999 | | | | Shadowlands (9.x) | 8000000 | 8999999 | 8800000 | 8999999 | | | | Dragonflight (10.x) | 9000000 | 9999999 | 9800000 | 9999999 | | | | The War Within (11.x) | 10000000 | 10999999 | 10800000 | 10999999 | | | | Midnight (12.x) | 11000000 | 11799999 | 11800000 | 11999999 | | | | ⚠️ Wrath of the Lich King (3.x) | 1 | 249999 | | | | | | ⚠️ Legacy Cataclysm (4.x) | 250000 | 449999 | | | | | | ⚠️ Legacy Mists of Pandaria (5.x) | 250000 | 449999 | | | | | | ⚠️ Legacy Warlords of Draenor (6.x) | 450000 | 649999 | | | | | | ⚠️ Legacy Legion (7.x) | 650000 | 849999 | | | | | | ⚠️ Legacy Battle for Azeroth (8.x) | 850000 | 1049999 | | | | | | ⚠️ Legacy Shadowlands (9.x) | 1050000 | 1249999 | | | | |

Because the limit of several old ranges was reached, new ranges have been defined with the nomenclature {ExpID}000000 - {ExpID}999999. The old ranges should not be used.

Due to the revamp of events/holidays during the last few expansions, one subrange per expansion has been reserved to avoid leaving gaps when deleting old spawns. All holiday spawns should use this subrange.

id ​

This links to creature_template.entry  

map ​

The ID of the map that the creature is spawned on.  

zoneId ​

The ID of the zone that the creature is spawned on.  

areaId ​

The ID of the area that the creature is spawned on.  

spawnDifficulties ​

Comma separated list of difficulties.

NameValue
DIFFICULTY_NONE0
DIFFICULTY_NORMAL1
DIFFICULTY_HEROIC2
DIFFICULTY_10_N3
DIFFICULTY_25_N4
DIFFICULTY_10_HC5
DIFFICULTY_25_HC6
DIFFICULTY_LFR7
DIFFICULTY_MYTHIC_KEYSTONE8
DIFFICULTY_409
DIFFICULTY_3_MAN_SCENARIO_HC11
DIFFICULTY_3_MAN_SCENARIO_N12
DIFFICULTY_NORMAL_RAID14
DIFFICULTY_HEROIC_RAID15
DIFFICULTY_MYTHIC_RAID16
DIFFICULTY_LFR_NEW17
DIFFICULTY_EVENT_RAID18
DIFFICULTY_EVENT_DUNGEON19
DIFFICULTY_EVENT_SCENARIO20
DIFFICULTY_MYTHIC23
DIFFICULTY_TIMEWALKING24
DIFFICULTY_WORLD_PVP_SCENARIO25
DIFFICULTY_5_MAN_SCENARIO_N26
DIFFICULTY_20_MAN_SCENARIO_N27
DIFFICULTY_PVEVP_SCENARIO29
DIFFICULTY_EVENT_SCENARIO_630
DIFFICULTY_WORLD_PVP_SCENARIO_232
DIFFICULTY_TIMEWALKING_RAID33
DIFFICULTY_PVP34
DIFFICULTY_NORMAL_ISLAND38
DIFFICULTY_HEROIC_ISLAND39
DIFFICULTY_MYTHIC_ISLAND40
DIFFICULTY_PVP_ISLAND45
DIFFICULTY_NORMAL_WARFRONT147
DIFFICULTY_HEROIC_WARFRONT149
DIFFICULTY_LFR_15TH_ANNIVERSARY151
DIFFICULTY_VISIONS_OF_NZOTH152
DIFFICULTY_TEEMING_ISLAND153
 

phaseUseFlags ​

Mask

NameValue
PHASE_USE_FLAGS_NONE0x0
PHASE_USE_FLAGS_ALWAYS_VISIBLE0x1
PHASE_USE_FLAGS_INVERSE0x2
 

PhaseId ​

Determines in which phase the creature is in. Available phases can be found in Phase.db2  

PhaseGroup ​

Determines in which PhaseGroup the creature is in. A PhaseGroup sets a creature in multiple phases at once. PhaseGroups can contain more Phases than you actually need. Available PhaseGroups can be found in PhaseGroup.db2  

terrainSwapMap ​

- no description -  

modelid ​

The model ID associated with the 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.

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 entry. The value essential defines the equip:

position_x ​

The X position of the creatures spawn point.  

position_y ​

The Y position of the creatures spawn point.  

position_z ​

The Z position of the creatures spawn point.  

orientation ​

The orientation of the creatures spawn point. (North = 0.0; South = pi (3.14159))  

spawntimesecs ​

The respawn time, in seconds, of the creature.  

wander_distance ​

The maximum distance that the creature may 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 point of waypoint_data that the creature is on, if any.  

curHealthPct ​

The health percent (1-100) that the creature will spawn with.  

MovementType ​

Same as creature_template.MovementType

IDType
0Idle; stay in one place
1Random movement inside the spawndist radius
2Waypoint movement

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

npcflag ​

Same as creature_template.npcflag

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

unit_flags ​

Same as creature_template.unit_flags

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

A full list can be found /src/server/game/Entities/Unit/UnitDefines.h#L118  

unit_flags2 ​

Same as creature_template.unit_flags2

A creature.unit_flags2 record will override a creature_template.unit_flags2 record.

A full list can be found /src/server/game/Entities/Unit/UnitDefines.h#L156  

unit_flags3 ​

Same as creature_template.unit_flags3

A creature.unit_flags3 record will override a creature_template.unit_flags3 record.

A full list can be found /src/server/game/Entities/Unit/UnitDefines.h#L182  

ScriptName ​

The name of the script that this creature uses, if any. This ties a script from a scripting engine to this creature.  

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.