目录

gameobject_template

Contains template of all gameobjects

Structure

Field Type Attributes Key Null Default Extra Comment
entry MEDIUMINT UNSIGNED PRI NO 0
type TINYINT UNSIGNED NO 0
displayId MEDIUMINT UNSIGNED NO 0
name VARCHAR(100) SIGNED NO
IconName VARCHAR(100) SIGNED NO
castBarCaption VARCHAR(100) SIGNED NO
unk1 VARCHAR(100) SIGNED NO
size FLOAT SIGNED NO 1
data0 INT UNSIGNED NO 0
data1 INT UNSIGNED NO -1
data2 INT UNSIGNED NO 0
data3 INT UNSIGNED NO 0
data4 INT UNSIGNED NO 0
data5 INT UNSIGNED NO 0
data6 INT UNSIGNED NO -1
data7 INT UNSIGNED NO 0
data8 INT UNSIGNED NO 0
data9 INT UNSIGNED NO 0
data10 INT UNSIGNED NO 0
data11 INT UNSIGNED NO 0
data12 INT UNSIGNED NO 0
data13 INT UNSIGNED NO 0
data14 INT UNSIGNED NO 0
data15 INT UNSIGNED NO 0
data16 INT UNSIGNED NO 0
data17 INT UNSIGNED NO 0
data18 INT UNSIGNED NO 0
data19 INT UNSIGNED NO 0
data20 INT UNSIGNED NO 0
data21 INT UNSIGNED NO 0
data22 INT UNSIGNED NO 0
data23 INT UNSIGNED NO 0
AIName char(64) SIGNED NO
ScriptName VARCHAR(64) SIGNED NO
WDBVerified SMALLINT SIGNED YES 1

Description of the fields

entry

Id of the gameobject template. WDB-fields

type 

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

displayId

Graphic model id sent to the client from GameObjectDisplayInfo.dbc WDB-fields

name

Object's name. WDB-fields

IconName

Works exactly like creature_template IconName.

Working iconnames

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

WDB-fields

castBarCaption

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

unk1

field-no-description|7

size

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

data0-23

The content of the data fields depends on the gameobject type

Values for these fields come from WDB and are not to be changed.

GAMEOBJECT_TYPE_DOOR = 0

GAMEOBJECT_TYPE_BUTTON = 1

GAMEOBJECT_TYPE_QUESTGIVER = 2

GAMEOBJECT_TYPE_CHEST = 3

GAMEOBJECT_TYPE_BINDER = 4

Object type not used

GAMEOBJECT_TYPE_GENERIC = 5

GAMEOBJECT_TYPE_TRAP = 6

GAMEOBJECT_TYPE_CHAIR = 7

GAMEOBJECT_TYPE_SPELL_FOCUS = 8

GAMEOBJECT_TYPE_TEXT = 9

GAMEOBJECT_TYPE_GOOBER = 10

GAMEOBJECT_TYPE_TRANSPORT = 11

GAMEOBJECT_TYPE_AREADAMAGE = 12

GAMEOBJECT_TYPE_CAMERA = 13

GAMEOBJECT_TYPE_MAPOBJECT = 14

No data used, all are always 0

GAMEOBJECT_TYPE_MOTRANSPORT = 15

GAMEOBJECT_TYPE_DUELFLAG = 16

Only one Gameobject with this type (21680) and no data data

GAMEOBJECT_TYPE_FISHINGNODE = 17

Only one Gameobject with this type (35591) and no data data

GAMEOBJECT_TYPE_RITUAL = 18

GAMEOBJECT_TYPE_MAILBOX = 19

No data used, all are always 0

GAMEOBJECT_TYPE_AUCTIONHOUSE = 20

GAMEOBJECT_TYPE_GUARDPOST = 21

GAMEOBJECT_TYPE_SPELLCASTER = 22

GAMEOBJECT_TYPE_MEETINGSTONE = 23

GAMEOBJECT_TYPE_FLAGSTAND = 24

GAMEOBJECT_TYPE_FISHINGHOLE = 25

GAMEOBJECT_TYPE_FLAGDROP = 26

GAMEOBJECT_TYPE_MINIGAME = 27

Object type not used. Reused in core for CUSTOM_TELEPORT

GAMEOBJECT_TYPE_LOTTERYKIOSK = 28

Object type not used

GAMEOBJECT_TYPE_CAPTUREPOINT = 29

GAMEOBJECT_TYPE_AURAGENERATOR = 30

GAMEOBJECT_TYPE_DUNGEONDIFFICULTY = 31

 

^ Value ^ Comment |
| 0 | 5 man normal, 10 man normal |
| 1 | 5 man heroic, 25 normal |
| 2 | 10 man heroic |
| 3 | 25 man heroic |
 

GAMEOBJECT_TYPE_BARBER_CHAIR = 32

GAMEOBJECT_TYPE_DESTRUCTIBLE_BUILDING = 33

GAMEOBJECT_TYPE_GUILD_BANK = 34

No data data used, all are always 0

GAMEOBJECT_TYPE_TRAPDOOR = 35

AIName

This field is overridden by ScriptName field if both are set. Note: Only SmartGameObjectAI can be used in this field, do not use SmartAI

ScriptName

Name of the script this object uses if needed

WDBVerified