Skip to content

gameobject

Structure ​

FieldTypeAttributesKeyNullDefaultExtraComment
guidbigintunsignedPRINO0
idintunsignedNO0Gameobject Identifier
mapsmallintunsignedNO0Map Identifier
zoneIdsmallintunsignedNO0Zone Identifier
areaIdsmallintunsignedNO0Area Identifier
spawnDifficultiesvarchar(100)NO0
phaseUseFlagstinyintunsignedNO0
PhaseIdintsignedYES0
PhaseGroupintsignedYES0
terrainSwapMapintsignedNO-1
position_xfloatNO0
position_yfloatNO0
position_zfloatNO0
orientationfloatNO0
rotation0floatNO0
rotation1floatNO0
rotation2floatNO0
rotation3floatNO0
spawntimesecsintsignedNO0
animprogresstinyintunsignedNO0
statetinyintunsignedNO0
ScriptNamevarchar(64)NO''
StringIdvarchar(64)YESNULL
VerifiedBuildintsignedNO0

 

Description of fields ​

guid ​

The global unique identifier for the game object. This field must be unique among all game objects.
If a new gameobject will be spawned it should be within the GUID range of the current expansion when gameobject was added initially on retail.

For example a gameobject in Orgrimmar and Stormwind was added in Shadowlands (9.x) on retail (expansion 8), so it would get a GUID between 8000000 and 8999999 assigned.

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:

ExpansionGUID range startGUID range endℹ️ Event GUID subrange startℹ️ Event GUID subrange endClassic Only range startClassic Only range end
Vanilla (1.x)1249999
The Burning Crusade (2.x)1249999
Wrath of the Lich King (3.x)200000029899992800000298999929900002999999
Cataclysm (4.x)300000039899993800000398999939900003999999
Mists of Pandaria (5.x)4000000499999948000004999999
Warlords of Draenor (6.x)5000000599999958000005999999
Legion (7.x)6000000699999968000006999999
Battle for Azeroth (8.x)7000000799999978000007999999
Shadowlands (9.x)8000000899999988000008999999
Dragonflight (10.x)9000000999999998000009999999
The War Within (11.x)10000000107999991080000010999999
Midnight (12.x)11000000117999991180000011999999
⚠️ Wrath of the Lich King (3.x)1249999
⚠️ Legacy Cataclysm (4.x)250000449999
⚠️ Legacy Mists of Pandaria (5.x)250000449999
⚠️ Legacy Warlords of Draenor (6.x)450000649999
⚠️ Legacy Legion (7.x)650000849999
⚠️ Legacy Battle for Azeroth (8.x)8500001049999
⚠️ Legacy Shadowlands (9.x)10500001249999

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 gameobject_template_entry
 

map ​

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

zoneId ​

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

areaId ​

The ID of the area that the gameobject 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 ​

NameValue
PHASE_USE_FLAGS_NONE0x0
PHASE_USE_FLAGS_ALWAYS_VISIBLE0x1
PHASE_USE_FLAGS_INVERSE0x2

 

PhaseId ​

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

PhaseGroup ​

Determines in which PhaseGroup the gameobject is in.
A PhaseGroup sets a gameobject 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 -
 

position_x ​

The X position of the gameobject spawn point.
 

position_y ​

The Y position of the gameobject spawn point.
 

position_z ​

The Z position of the gameobject spawn point.
 

orientation ​

The orientation of the gameobject spawn point.

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

 

rotation0 ​

- no description -
 

rotation1 ​

- no description -
 

rotation2 ​

- no description -
 

rotation3 ​

- no description -
 

spawntimesecs ​

The respawn time, in seconds, of the gameobject.
 

animprogress ​

- no description -
 

state ​

For chests and doors.

StateValue
open0
closed1

 

ScriptName ​

The name of the script that this gameobject 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.