Skip to content

gameobject_template

This table contains the description of gameobjects. Each spawned object is an instance of a template present in this table, this means every gameobject MUST be defined in this table.

Structure ​

FieldTypeAttributesKeyNullDefaultExtraComment
entryintunsignedPRINO0
typetinyintunsignedNO0
displayIdintunsignedNO0
namevarchar(100)MULNO''
IconNamevarchar(100)NO''
castBarCaptionvarchar(100)NO''
unk1varchar(100)NO''
sizefloatNO1
Data0intunsignedNO0
Data1intsignedNO0
Data2intunsignedNO0
Data3intunsignedNO0
Data4intunsignedNO0
Data5intunsignedNO0
Data6intsignedNO0
Data7intunsignedNO0
Data8intunsignedNO0
Data9intunsignedNO0
Data10intunsignedNO0
Data11intunsignedNO0
Data12intunsignedNO0
Data13intunsignedNO0
Data14intunsignedNO0
Data15intunsignedNO0
Data16intunsignedNO0
Data17intunsignedNO0
Data18intunsignedNO0
Data19intunsignedNO0
Data20intunsignedNO0
Data21intunsignedNO0
Data22intunsignedNO0
Data23intunsignedNO0
AINamechar(64)NO''
ScriptNamevarchar(64)NO''
StringIdvarchar(64)YESNULL
VerifiedBuildintsignedYESNULL
 

Description of fields ​

entry ​

Gameobject's unique id.  

type ​

IDName
0GAMEOBJECT_TYPE_DOOR
1GAMEOBJECT_TYPE_BUTTON
2GAMEOBJECT_TYPE_QUESTGIVER
3GAMEOBJECT_TYPE_CHEST
4GAMEOBJECT_TYPE_BINDER
5GAMEOBJECT_TYPE_GENERIC
6GAMEOBJECT_TYPE_TRAP
7GAMEOBJECT_TYPE_CHAIR
8GAMEOBJECT_TYPE_SPELL_FOCUS
9GAMEOBJECT_TYPE_TEXT
10GAMEOBJECT_TYPE_GOOBER
11GAMEOBJECT_TYPE_TRANSPORT
12GAMEOBJECT_TYPE_AREADAMAGE
13GAMEOBJECT_TYPE_CAMERA
14GAMEOBJECT_TYPE_MAP_OBJECT
15GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT
16GAMEOBJECT_TYPE_DUEL_ARBITER
17GAMEOBJECT_TYPE_FISHINGNODE
18GAMEOBJECT_TYPE_RITUAL
19GAMEOBJECT_TYPE_MAILBOX
20GAMEOBJECT_TYPE_DO_NOT_USE
21GAMEOBJECT_TYPE_GUARDPOST
22GAMEOBJECT_TYPE_SPELLCASTER
23GAMEOBJECT_TYPE_MEETINGSTONE
24GAMEOBJECT_TYPE_FLAGSTAND
25GAMEOBJECT_TYPE_FISHINGHOLE
26GAMEOBJECT_TYPE_FLAGDROP
27GAMEOBJECT_TYPE_MINI_GAME
28GAMEOBJECT_TYPE_DO_NOT_USE_2
29GAMEOBJECT_TYPE_CAPTURE_POINT
30GAMEOBJECT_TYPE_AURA_GENERATOR
31GAMEOBJECT_TYPE_DUNGEON_DIFFICULTY
32GAMEOBJECT_TYPE_BARBER_CHAIR
33GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING
34GAMEOBJECT_TYPE_GUILD_BANK
35GAMEOBJECT_TYPE_TRAPDOOR

 

displayId ​

GameObjectDisplayInfo ID sent to the client.  

name ​

Object's name  

IconName ​

Use special mouse pointer when hovering over the gameobject.

ValueDescription
DirectionsUsed for Guards and Teleporter NPC's.
GunnerIndicator of a Turret NPC/Player Controlled.
vehichleCursorIndicator that this is a PCV (Player Controlled Vehicle)
DriverShows a Steering Wheel icon when mouse over.
AttackShows a Sword icon indicating you can attack this target.
BuyShows a Brown Bag icon.
SpeakShows a Chat Bubble icon if this Object has Quest/Gossip options.
PickupShows a Hand Grasping icon if this Object can be picked up for quest/items.
InteractShows Cog icon commonly used for quest/transport.
TrainerShows a Book icon.
TaxiShows a Boot w/Wings icon.
RepairShows a Anvil icon.
LootAllShows a Multiple Brown Bag icon (Same as holding Shift before looting a creature).
QuestUnused or Unknown. (See EntryID 32870 The Real Ronakada).
PVPUnused or Unknown.(See EntryID 29387 Arena Master: Dalaran Arena).
Point

Note: You may experience minor bugs trying to get the Quest (Yellow exclamation mark) working. However; the rest of the listed icons works.

 

castBarCaption ​

Shows unique text in the object's casting bar when the object is used.  

unk1 ​

Unknown. Just sent to client.  

size ​

Object's size must be set because graphic models can be resample.  

Data[0-23] ​

The content of the Data fields depends on the gameobject type. Fields denoted as unused aren't further handled by the core but just sent to the client as is.

Tabset ​

type: 0 Door ​

GAMEOBJECT_TYPE_DOOR

Data#NameValueComment
0startOpen0, 1initializes with state: GO_ACTIVATED
1lockIdLock ID
2autoCloseTimetime untill state reset in milliseconds
3noDamageImmune0, 1can not be used by player under immunity; break opening whenever you recieve damage?
4openTextIDunknown TextIDunused; can be used to replace castBarCaption?
5closeTextIDunknown TextIDunused
6ignoredByPathing-1, 0, 1unused
7conditionID10unused

type: 1 Button ​

GAMEOBJECT_TYPE_BUTTON

Data#NameValueComment
0startOpen0, 1initializes with state: GO_ACTIVATED
1lockIdLock ID
2autoCloseTimetime untill state reset in milliseconds
3linkedTrapgameobject_template.entrythe trap object must be of GAMEOBJECT_TYPE_TRAP (6)
4noDamageImmune0, 1can not be used by player under immunity; isBattlegroundObject
5large0, 1large objects are visible from further away
6openTextIDunknown TextIDunused; can be used to replace castBarCaption?
7closeTextIDunknown TextIDunused
8losOK0, 1ignores line of sight checks
9conditionID10unused

type: 2 Questgiver ​

GAMEOBJECT_TYPE_QUESTGIVER

Data#NameValueComment
0lockIdLock ID
1questListunknown IDunused
2pageMaterialPageTextMaterial IDBackground texture of the gossip window
3gossipIDgossip_menu.entry
4customAnim0 — 4unused
5noDamageImmune0, 1can not be used by player under immunity
6openTextIDunknown TextIDunused; can be used to replace castBarCaption?
7losOK0, 1ignores line of sight checks
8allowMounted0, 1Is usable while on mount/vehicle.
9large0, 1large objects are visible from further away
10conditionID10unused

type: 3 Chest ​

GAMEOBJECT_TYPE_CHEST

Data#NameValueComment
0lockIdLock ID
1lootIdgameobject_loot_template.entry
2chestRestockTimetime in secondsrestocks if not fully looted
3consumable0, 1despawns after use
4minSuccessOpensMin successful loot attempts for Mining, Herbalism etc (deprecated post 3.0)
5maxSuccessOpensMax successful loot attempts for Mining, Herbalism etc (deprecated post 3.0)
6eventIdunknown EventIDlootedEvent
7linkedTrapIdgameobject_template.entrythe trap object must be of GAMEOBJECT_TYPE_TRAP (6)
8questIdquest_template.IDquest must be rewarded for GO activation; not currently used
9level0 — 80minimum level required to open this gameobject
10losOK0, 1ignores line of sight checks
11leaveLoot0, 1unused
12notInCombat0, 1unused
13logLoot0, 1unused
14openTextIDunknown TextIDunused; can be used to replace castBarCaption?
15groupLootRules0, 1use group loot ruleset
16floatingTooltip0, 1unused
17conditionID10unused

type: 4 Binder ​

GAMEOBJECT_TYPE_BINDERno data set

type: 5 Generic ​

GAMEOBJECT_TYPE_GENERIC

Data#NameValueComment
0floatingTooltip0, 1unused
1highlight0, 1unused
2serverOnly0, 1not visible in client
3large0, 1large objects are visible from further away
4floatOnWater0, 1unused
5questIDquest_template.IDquest must be active for GO interaction
6conditionID10unused

type: 6 Trap ​

GAMEOBJECT_TYPE_TRAP

Data#NameValueComment
0lockIdLock ID
1levelnpc level equivalent for casted spell
2diameterdiameter for trap activation
3spellIdSpell ID
4type0, 1, 20: trap with no despawn after cast.
1: trap despawns after cast.
2: spell casts on spawn.
5cooldowntime in seconds
6autoCloseTimetime untill state reset in milliseconds
7startDelaytime in seconds
8serverOnly0, 1not visible in client
9stealthed0, 1requires stealth detection for type trap to be visible
10large0, 1large objects are visible from further away
11invisible0, 1requires invisibility detection for type trap to be visible
12openTextIDunknown TextIDunused; can be used to replace castBarCaption?
13closeTextIDunknown TextIDunused
14ignoreTotems0, 1unused
15conditionID10unused

type: 7 Chair ​

GAMEOBJECT_TYPE_CHAIR

Data#NameValueComment
0slotsnumber of players that can sit down on it
1height0, 1, 2offset to UnitStandStateType applied to sitting player
2onlyCreatorUse0, 1unused
3triggeredEventunknown eventIDunused
4conditionID10unused

type: 8 SpellFocus ​

GAMEOBJECT_TYPE_SPELL_FOCUS

Data#NameValueComment
0focusIdSpellFocusObject IDalso appears as Spell RequiresSpellFocus
1distradius in m
2linkedTrapIdgameobject_template.entrythe trap object must be of GAMEOBJECT_TYPE_TRAP (6)
3serverOnly0, 1not visible in client
4questIDquest_template.IDquest must be active for GO interaction
5large0, 1large objects are visible from further away
6floatingTooltip0, 1unused
7floatOnWater0, 1unused
8conditionID10unused

type: 9 Text ​

GAMEOBJECT_TYPE_TEXT

Data#NameValueComment
0pageIDpage_text.ID
1languageLanguage ID
2pageMaterialPageTextMaterial IDBackground texture of the gossip window
3allowMounted0, 1Is usable while on mount/vehicle.
4conditionID10unused

type: 10 Goober ​

GAMEOBJECT_TYPE_GOOBER

Data#NameValueComment
0lockIdLock ID
1questIdquest_template.IDquest must be active for GO interaction
2eventIdevent_script.idalso usable by script oder SmartAI
3autoCloseTimetime untill state reset in milliseconds
4customAnim0 — 4just sent to client on use
5consumable0, 1despawns after use
6cooldowntime in seconds
7pageIdpage_text.ID
8languageLanguage ID
9pageMaterialPageTextMaterial IDBackground texture of the gossip window
10spellIdSpell IDspell cast on interaction
11noDamageImmune0, 1can not be used by player under immunity
12linkedTrapIdgameobject_template.entrythe trap object must be of GAMEOBJECT_TYPE_TRAP (6)
13large0, 1large objects are visible from further away
14openTextIDunknown TextIDunused; can be used to replace castBarCaption?
15closeTextIDunknown TextIDunused
16losOK0, 1ignores line of sight checks; isBattlegroundObject
17allowMounted0, 1Is usable while on mount/vehicle.
18floatingTooltip0, 1unused
19gossipIDgossip_menu.entry
20WorldStateSetsState0, 1unused
21floatOnWater0, 1unused
22conditionID10unused

type: 11 Transport ​

GAMEOBJECT_TYPE_TRANSPORT

Data#NameValueComment
0pause? used as level of object ?
1startOpen0, 1initializes with state: GO_ACTIVATED
2autoCloseTimetime untill state reset in milliseconds
3pause1EventIDunknown EventIDunused
4pause2EventIDunknown EventIDunused
5mapIDMap IDunused; MO-Transports are their own maps

type: 12 AreaDamage ​

GAMEOBJECT_TYPE_AREADAMAGE

Data#NameValueComment
0lockIdLock ID
1radiusunused
2damageMinunused
3damageMaxunused
4damageSchoolunused
5autoCloseTimetime untill state reset in milliseconds
6openTextIDunknown TextIDunused; can be used to replace castBarCaption?
7closeTextIDunknown TextIDunused

type: 13 Camera ​

GAMEOBJECT_TYPE_CAMERA

Data#NameValueComment
0lockIdLock ID
1cinematicIdCinematicCamera ID
2eventIDevent_script.idalso usable by script oder SmartAI
3openTextIDunknown TextIDunused; can be used to replace castBarCaption?
4conditionID10unused

type: 14 MapObject ​

GAMEOBJECT_TYPE_MAP_OBJECTno data set

type: 15 MOTransport ​

GAMEOBJECT_TYPE_MAP_OBJ_TRANSPORT

Data#NameValueComment
0taxiPathIdTaxiPath ID
1moveSpeed
2accelRate
3startEventIDunknown EventIDunused
4stopEventIDunknown EventIDunused
5transportPhysicsunused
6mapIDMap IDMO-Transports are their own maps
7worldState1unused
8canBeStopped0, 1

type: 16 DuelArbiter ​

GAMEOBJECT_TYPE_DUEL_ARBITERno data set

type: 17 FishingNode ​

GAMEOBJECT_TYPE_FISHINGNODEno data set

type: 18 Ritual ​

GAMEOBJECT_TYPE_RITUAL

Data#NameValueComment
0reqParticipantsnumber of unique player interactions
1spellIdSpell IDspell cast when reqParticipants is fulfilled
2animSpellSpell IDspell cast on interaction
3ritualPersistent0, 1do not deactivate after reqParticipants is fulfilled
4casterTargetSpellSpell IDcast on random user after reqParticipants is fulfilled
5casterTargetSpellTargetsNcasterTargetSpell is cast N times
6castersGrouped0, 1user must be in party with owner
7ritualNoTargetCheck0, 1unused
8conditionID10unused

type: 19 Mailbox ​

GAMEOBJECT_TYPE_MAILBOX

Data#NameValueComment
0conditionID10unused

type: 20 ❌ UNUSED ​

GAMEOBJECT_TYPE_DO_NOT_USEno data set

type: 21 GuardPost ​

GAMEOBJECT_TYPE_GUARDPOST

Data#NameValueComment
0creatureIDcreature_template.entryunused
1chargesmax. number of uses

type: 22 SpellCaster ​

GAMEOBJECT_TYPE_SPELLCASTER

Data#NameValueComment
0spellIdSpell IDspell cast on interaction
1chargesmax. number of uses
2partyOnly0, 1user must be in party with owner
3allowMounted0, 1Is usable while on mount/vehicle.
4large0, 1large objects are visible from further away
5conditionID10unused

type: 23 MeetingStone ​

GAMEOBJECT_TYPE_MEETINGSTONE

Data#NameValueComment
0minLevelmin. player level required for interaction
1maxLevelmin. player level allowed for interaction
2areaIDAreaTable IDunused;

type: 24 FlagStand ​

GAMEOBJECT_TYPE_FLAGSTAND

Data#NameValueComment
0lockIdLock ID
1pickupSpellSpell IDunused
2radiusunused; interaction distance?
3returnAuraSpell IDunused
4returnSpellSpell IDunused
5noDamageImmune0, 1can not be used by player under immunity
6openTextIDunknown TextIDunused; can be used to replace castBarCaption?
7losOK0, 1ignores line of sight checks
8conditionID10unused

type: 25 FishingHole ​

GAMEOBJECT_TYPE_FISHINGHOLE

Data#NameValueComment
0radiushow close bobber must land for sending loot
1lootIdgameobject_loot_template.Entry
2minSuccessOpensminimum number of fishing attempts
3maxSuccessOpensmaximum number of fishing attempts
4lockIdLock IDpossibly 1628 for all?

type: 26 FlagDrop ​

GAMEOBJECT_TYPE_FLAGDROP

Data#NameValueComment
0lockIdLock ID
1eventIDunknown EventIDunused
2pickupSpellSpell IDunused
3noDamageImmune0, 1can not be used by player under immunity
4openTextIDunknown TextIDunused; can be used to replace castBarCaption?

type: 27 MiniGame ​

GAMEOBJECT_TYPE_MINI_GAME

Data#NameValueComment
0gameTypeunused

type: 28 ❌ UNUSED2 ​

GAMEOBJECT_TYPE_DO_NOT_USE_2no data set

type: 29 CapturePoint ​

GAMEOBJECT_TYPE_CAPTURE_POINT

Data#NameValueComment
0radiusdistance from which players count towards the objective
1spellunused; server side spell
2worldState1worldstate variable for active capture
3worldstate2worldstate variable for capture progress
4winEventID1unknown EventIDunused
5winEventID2unknown EventIDunused
6contestedEventID1unknown EventIDunused
7contestedEventID2unknown EventIDunused
8progressEventID1unknown EventIDunused
9progressEventID2unknown EventIDunused
10neutralEventID1unknown EventIDunused
11neutralEventID2unknown EventIDunused
12neutralPercent0 — 100neutral area of progress bar; half of remaining pct belongs to each faction
13worldstate3worldstate variable for neutralPercent
14minSuperiorityunused; min players required for capture
15maxSuperiorityunused; max players contributing to capture
16minTimecapture time in seconds for max players for full capture
17maxTimecapture time in seconds for min players for full capture
18large0, 1large objects are visible from further away
19highlight0, 1unused
20startingValue0 — 100unused; 0: Horde owned; 100: Alliance owned
21unidirectional0unused

type: 30 AuraGen ​

GAMEOBJECT_TYPE_AURA_GENERATOR

Data#NameValueComment
0startOpen0, 1initializes with state: GO_ACTIVATED
1radiusunused
2auraID1Spell IDunused
3conditionID1unknown IDunused
4auraID2Spell IDunused
5conditionID20, -1unused
6serverOnly0, 1not visible in client

type: 31 Difficulty ​

GAMEOBJECT_TYPE_DUNGEON_DIFFICULTY

Data#NameValueComment
0mapIDMap IDdestination map
1difficulty0 — 3enum Difficulty

type: 32 BarberChair ​

GAMEOBJECT_TYPE_BARBER_CHAIR

Data#NameValueComment
0chairheight0, 1, 2offset to UnitStandStateType applied to sitting player
1heightOffset0unused

type: 33 Destructible ​

GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING

Data#NameValueComment
0intactNumHitsintactNumHits + damagedNumHits = total health
1creditProxyCreaturecreature_template.entryunused; kill credit
2empty1unused
3intactEventeventIDunused
4empty2GameObjectDisplayInfo IDunused; damaged displayId
5damagedNumHitsif at or below damagedNumHits: GO state is DAMAGED
6empty3unused
7empty4unused
8empty5unused
9damagedEventeventIDhandled by script oder SmartAI
10empty6GameObjectDisplayInfo IDunused; destroyed displayId
11empty7unused
12empty8unused
13empty9unused
14destroyedEventeventIDhandled by script oder SmartAI
15empty10unused
16rebuildingTimeSecsunused
17empty11unused
18destructibleDataDestructibleModelData ID
19rebuildingEventeventIDhandled by script oder SmartAI
20empty12unused
21empty13unused
22damageEventeventIDunused
23empty14unused

type: 34 GuildBank ​

GAMEOBJECT_TYPE_GUILD_BANK

Data#NameValueComment
0conditionID10unused

type: 35 Trapdoor ​

GAMEOBJECT_TYPE_TRAPDOOR

Data#NameValueComment
0whenToPause0unused
1startOpen0, 1initializes with state: GO_ACTIVATED
2autoClose0unused

EndTabset ​

 

AIName ​

This field is overridden by ScriptName field if both are set.

ValueDescription
SmartGameObjectAIGameobject uses smart AI.

 

ScriptName ​

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

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.