用户工具

站点工具


数据库:world数据库:gameobject

gameobject 表


<-返回:World 数据库

This table holds the individual object data on each spawned game object in the world. This data along with the object's template data is read and used to instantiate the objects in the world.

表结构

FieldTypeAttributesKeyNullDefaultExtraComment
guidINTUNSIGNEDPRINONULLAuto incrementGlobal Unique Identifier
idINTUNSIGNED NO0 Gameobject Identifier
mapSMALLINTUNSIGNED NO0 Map Identifier
zoneIdSMALLINTUNSIGNED NO0 Zone Identifier
areaIdSMALLINTUNSIGNED NO0 Area Identifier
spawnMaskTINYINTUNSIGNED NO1
phaseMaskSMALLINTUNSIGNED NO1
position_xFLOATSIGNED NO0
position_yFLOATSIGNED NO0
position_zFLOATSIGNED NO0
orientationFLOATSIGNED NO0
rotation0FLOATSIGNED NO0
rotation1FLOATSIGNED NO0
rotation2FLOATSIGNED NO0
rotation3FLOATSIGNED NO0
spawntimesecsINTSIGNED NO0
animprogressTINYINTUNSIGNED NO0
stateTINYINTUNSIGNED NO1
ScriptNameCHAR YES' '
VerifiedBuildINTSIGNED YESNULL Not used by the core.
CommentTEXT YESNULL

字段说明


guid

The global unique identifier for the game object. This field must be unique among all game objects.

id

The template ID of the gameobject. See gameobject_template.entry

map

The map ID where this object is spawned. See Maps.dbc

zoneId

The ID of the zone that this object is spawned in. (e.g. The Barrens)

This column is filled in by the worldserver on startup if the Calculate.Gameoject.Zone.Area.Data setting is enabled. It originates from AreaTable.dbc.

areaId

The ID of the area that this object is spawned in. You can think of an area as a “subzone” of a zone, e.g. Lushwater Oasis inside The Barrens.

This column is filled in by the worldserver on startup if the Calculate.Gameoject.Zone.Area.Data setting is enabled. It originates from AreaTable.dbc.

spawnMask

Controls under which difficulties the object is spawned.

Just like flags you can add them as you wish so 3 would be: Spawned in 10/25 man normal versions of maps (pre 3.2 all maps)

Value Comment 0 Not spawned 1 Spawned only in 10-man-normal versions of maps (includes maps without a heroic mode) 2 Spawned only in 25-man-normal versions of maps (or heroics pre 3.2) 4 Spawned only in 10-man heroic versions of maps 8 Spawned only in 25-man-heroic versions of maps 15 Spawned in all versions of maps

phaseMask

This is a bitmask field that describes all the phases that this gameobject will appear in. Aura 261 determines the phase you can see. For example, if you had this aura http://www.wowhead.com/?spell=55782, you would be able to see gameobjects in phase 2. If you wanted the gameobject to be visible in both phase 1 and phase 2, you would set the phaseMask to 3.

position_x

The X position.

position_y

The Y position.

position_z

The Z position.

orientation

The orientation. (North = 0, South = 3.14159)

rotation0

rotation1

rotation2

rotation3

spawntimesecs

Time in seconds for this object to respawn.

Using 0 will result in the object not despawning on use.

Using a negative value will result in the object starting out by being “despawned” until a script will spawn it. It will then despawn after the amount of time specified here has passed.

animprogress

Not really known what this is used for at this time. However, always set it to 100 for chests.

state

For chests or doors.

  • 1 = closed
  • 0 = open

ScriptName

Same as gameobject_template.scriptname.

A gameobject.scriptname record will override a gameobject_template.scriptname record.

VerifiedBuild

This field is used to determine if this gameobject originates from verified sniffs.

If value is 0 then it has not been parsed yet or it has been inherited from an older DB or another Core.

If value is above 0 then it has been parsed with sniffs from that specific client build.

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.

comment

This field serves to add additional context to this gameobject, mostly in the context of sniffed values or script notes.

For example, if a gameobject's position needed to be modified, the original positions are kept in the comment field. Or if the gobs in question are part of a larger script, the comment serves for context.

数据库/world数据库/gameobject.txt · 最后更改: 2023/09/24 20:26 由 admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki