Gameobject

Материал из YTDB DataBase

(Различия между версиями)
Перейти к: навигация, поиск
(Новая страница: «{| align="right" | __TOC__ |} Back to world database list of tables. <big>'''The `gameobject` table'''</big> This table holds the individual o…»)
(state: Перевел - Lightunit)
Строка 177: Строка 177:
Not really known what this is used for at this time. However, always set it to 100 for chests.
Not really known what this is used for at this time. However, always set it to 100 for chests.
====state====
====state====
-
Only for chests.
+
Только для сундуков.
-
* 1 = closed
+
* 1 = закрыт
-
* 0 = open
+
* 0 = открыт

Версия 02:43, 8 февраля 2010

Содержание

Back to world database list of tables.


The `gameobject` table

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.


Structure

Field Type Null Key Default Extra
guid int(10) unsigned NO PRI None auto_increment
id int(10) unsigned NO 0
map int(10) unsigned NO 0
spawnMask tinyint(3) unsigned NO 1
phaseMask smallint(5) unsigned NO 1
position_x float NO 0
position_y float NO 0
position_z float NO 0
orientation float NO 0
rotation0 float NO 0
rotation1 float NO 0
rotation2 float NO 0
rotation3 float NO 0
spawntimesecs int(10) unsigned NO 0
animprogress int(10) unsigned NO 0
state int(10) unsigned NO 1


Description of the fields

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

spawnMask

Controls under which difficulties the object is spawned.

Value Comment
0 Not spawned
1 Spawned only in normal versions of maps (includes maps without a heroic mode)
2 Spawned only in heroic versions of maps
3 Spawned in all versions of maps

phaseMask

Controls what phase gameobject is at. 1=default phase. Phase masks are got from Aura 261 effect ( (Aura #261) (4) ) = phasemask = 4.

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 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

Только для сундуков.

  • 1 = закрыт
  • 0 = открыт
Личные инструменты