Creature
Материал из YTDB DataBase
Neggod (Обсуждение | вклад) (→id) |
Neggod (Обсуждение | вклад) (→map) |
||
Строка 155: | Строка 155: | ||
====map==== | ====map==== | ||
- | + | Идентификатор карты, на которой находитсясущество. Смотри [[Maps.dbc]] | |
+ | |||
====spawnMask==== | ====spawnMask==== | ||
Controls under which difficulties the creature will be spawned. | Controls under which difficulties the creature will be spawned. |
Версия 17:32, 12 февраля 2010
|
Back to world database list of tables.
The `creature` table
Contains individual creature spawn data. Spawn of a creature is an instance of the creature object in the world.
Structure
Field | Type | Null | Key | Default | Extra |
guid | int(10) unsigned | NO | PRI | None | auto_increment |
id | mediumint(8) unsigned | NO | MUL | 0 | |
map | smallint(5) unsigned | NO | MUL | 0 | |
spawnMask | tinyint(3) unsigned | NO | 1 | ||
phaseMask | smallint(5) unsigned | NO | 1 | ||
modelid | mediumint(8) unsigned | YES | 0 | ||
equipment_id | mediumint(9) | NO | 0 | ||
position_x | float | NO | 0 | ||
position_y | float | NO | 0 | ||
position_z | float | NO | 0 | ||
orientation | float | NO | 0 | ||
spawntimesecs | int(10) unsigned | NO | 120 | ||
spawndist | float | NO | 5 | ||
currentwaypoint | mediumint(8) unsigned | NO | 0 | ||
curhealth | int(10) unsigned | NO | 1 | ||
curmana | int(10) unsigned | NO | 0 | ||
DeathState | tinyint(3) unsigned | NO | 0 | ||
MovementType | tinyint(3) unsigned | NO | 0 |
Description of the fields
guid
Уникальный идентификатор, выдаваемый каждому существу в мире. Два существа не могут иметь одинаковый GUID.
id
Идентификатор шаблона существа, который используется при создании этого существа. Смотри creature_template.entry
map
Идентификатор карты, на которой находитсясущество. Смотри Maps.dbc
spawnMask
Controls under which difficulties the creature will be spawned.
Value | Comment |
---|---|
0 | Not spawned |
1 | Spawned only in normal versions of maps (includes maps without aditional difficulty modes) |
2 | Spawned only in difficulty = 1 versions of maps (mostly heroic) |
4 | Spawned only in difficulty = 2 versions of maps |
8 | Spawned only in difficulty = 3 versions of maps |
15 | Spawned in all versions of maps |
phaseMask
Defines which phase the creature belongs. 1 is default phase, rest are from spell's aura 261, (Aura #261) (4) = phasemask = 4.
modelid
The model ID associated with this creature. Note that two creatures that use the same template can have different models. See creature_model_info for more information on model-specific characteristics.
equipment_id
The ID of the equipment that the creature is using. See creature_equip_template.entry
position_x
The X position of the creature.
position_y
The Y position of the creature.
position_z
The Z position of the creature.
orientation
The orientation of the creature. (North = 0.0; South = pi (3.14159))
spawntimesecs
The respawn time of the creature in seconds.
spawndist
The maximum distance that the creature should spawn from its spawn point. Also controls how far away the creature can walk from its spawn point if its MovementType = 1.
currentwaypoint
The current waypoint number that the creature is on, if any. See creature_movement.point
curhealth
The current health that the creature has.
curmana
The current mana that the creature has.
DeathState
The creature's death state. A boolean, 0 = Alive, 1 = Corpse lying dead around (no gossip possible when dead, if you need corpse-gossip use dynamicflags|32)
MovementType
The movement type associated with this creature. Usually the same as creature_template.MovementType but can be different. See creature_template.MovementType for possible values.