Creature movement

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

(Различия между версиями)
Перейти к: навигация, поиск
(Новая страница: «{| align="right" | __TOC__ |} Back to world database list of tables. <big>'''The `creature_movement` table'''</big> This table holds all the i…»)
 
(16 промежуточных версий не показаны.)
Строка 2: Строка 2:
| __TOC__
| __TOC__
|}
|}
-
Back to [[mangosdb_struct|world database]] list of tables.
+
[[Category: Mangos world database tables]]
 +
К описанию таблиц [[mangosdb_struct|базы данных mangos]].
-
<big>'''The `creature_movement` table'''</big>
+
<big>'''Таблица `creature_movement`'''</big>
-
This table holds all the information on each creature's waypoints. In essence, a waypoint just defines a path that the creature will follow by going from point to point. More specifically, once the creature arrives at a point, it can do different things like cast a spell, do an emote, etc. Usually this table is filled through the .wp command (and its various subcommands) in the world.
+
Эта таблица содержит всю информацию о точках передвижения каждого существа. По сути, точка просто определяет путь, которым существо будет следовать от точки к точке. Если говорить более конкретно, когда существо приходит в точку, она может делать разные вещи: кастовать заклинания, изображать эмоции и т.д. Обычно эта таблица заполняется путем. WP команды (и её подкомандами) в мире.  
-
Please note that for a creature to use waypoints, its [[creature_template#MovementType|MovementType]] must be 2.
+
Обратите внимание, что существо, чтобы использовать точки,  должно иметь [[creature_template#MovementType|MovementType]] = 2.
-
<big>'''Structure'''</big>
+
<big>'''Структура'''</big>
{| border="1"
{| border="1"
|'''Field'''
|'''Field'''
|'''Type'''
|'''Type'''
 +
|'''Attributes'''
|'''Null'''
|'''Null'''
|'''Key'''
|'''Key'''
|'''Default'''
|'''Default'''
-
|'''Extra'''
+
|'''Comments'''
|-
|-
|[[#id|id]]
|[[#id|id]]
-
|int(10) unsigned
+
|int(10)
 +
|unsigned
|NO
|NO
|PRI
|PRI
|0
|0
-
|
+
|Creature GUID
|-
|-
|[[#point|point]]
|[[#point|point]]
-
|int(10) unsigned
+
|mediumint(8)
 +
|unsigned
|NO
|NO
|PRI
|PRI
Строка 37: Строка 41:
|[[#position_x|position_x]]
|[[#position_x|position_x]]
|float
|float
 +
|
|NO
|NO
|
|
Строка 44: Строка 49:
|[[#position_y|position_y]]
|[[#position_y|position_y]]
|float
|float
 +
|
|NO
|NO
|
|
Строка 51: Строка 57:
|[[#position_z|position_z]]
|[[#position_z|position_z]]
|float
|float
-
|NO
 
|
|
-
|0
 
-
|
 
-
|-
 
-
|[[#waittime|waittime]]
 
-
|int(5) unsigned
 
|NO
|NO
|
|
Строка 63: Строка 63:
|
|
|-
|-
-
|[[#text|text1]]
+
|[[#orientation|orientation]]
-
|int(11)
+
|float
-
|NO
+
|
|
-
|0
 
-
|
 
-
|-
 
-
|[[#text|text2]]
 
-
|int(11)
 
|NO
|NO
|
|
Строка 77: Строка 71:
|
|
|-
|-
-
|[[#text|text3]]
+
|[[#waittime|waittime]]
-
|int(11)
+
|int(10)
 +
|unsigned
|NO
|NO
|
|
Строка 84: Строка 79:
|
|
|-
|-
-
|[[#text|text4]]
+
|[[#script_id|script_id]]
-
|int(11)
+
|int(10)
 +
|unsigned
|NO
|NO
|
|
Строка 91: Строка 87:
|
|
|-
|-
-
|[[#text|text5]]
+
|[[#comment|comment]]
-
|int(11)
+
|text
-
|NO
+
|
|
-
|0
 
|
|
-
|-
 
-
|[[#emote|emote]]
 
-
|int(10) unsigned
 
-
|YES
 
|
|
-
|0
 
|
|
-
|-
 
-
|[[#spell|spell]]
 
-
|int(5) unsigned
 
-
|YES
 
-
|
 
-
|0
 
-
|
 
-
|-
 
-
|[[#wpguid|wpguid]]
 
-
|int(11)
 
-
|YES
 
-
|
 
-
|0
 
-
|
 
-
|-
 
-
|[[#orientation|orientation]]
 
-
|float
 
-
|YES
 
-
|
 
-
|0
 
-
|
 
-
|-
 
-
|[[#model1|model1]]
 
-
|int(11)
 
-
|YES
 
-
|
 
-
|0
 
-
|
 
-
|-
 
-
|[[#model2|model2]]
 
-
|int(11)
 
-
|YES
 
-
|
 
-
|0
 
|
|
|}
|}
-
<big>'''Description of the fields'''</big>
+
<big>'''Описание полей'''</big>
====id====
====id====
-
The GUID of the creature (NOT the template ID). See [[creature#guid|creature.guid]]
+
Номер существа (НЕ шаблонный ID). Смотри [[creature#guid|creature.guid]].
 +
 
====point====
====point====
-
Defines the waypoint number. A creature will go from waypoint to waypoint in the order controlled by this field.
+
Номер точки передвижения. Существо будет идти от точки к точке по порядку, согласно значению этого поля.
 +
 
====position_x====
====position_x====
-
The X position of the waypoint.
+
X координата точки передвижения.
 +
 
====position_y====
====position_y====
-
The Y position of the waypoint.
+
Y координата точки передвижения.
 +
 
====position_z====
====position_z====
-
The Z position of the waypoint.
+
Z координата точки передвижения.
 +
 
====waittime====
====waittime====
-
The time that the creature will wait before heading to the next waypoint, in milliseconds.
+
Время в миллисекундах, на которое существо задержится на данной точке передвижения, прежде чем отправится к следующей.
-
====text====
+
 
-
The text ID that the creature will say once it reaches the waypoint. There are up to 5 different texts that the creature will randomly choose from once it reaches the waypoint. See [[db_script_string]].
+
====script_id====
 +
Номер скрипта из таблицы [[dbscripts_on_creature_movement#id|dbscripts_on_creature_movement.id]].
-
====emote====
 
-
The emote ID that the creature will perform once it reaches the waypoint. There are two types of emotes that creatures can perform. In the first type, oneshot emotes, the creature will perform the emote and then come back to their original spot. In the second, state emote, the creature performs the emote and will stay in that emote position or state.
 
-
====spell====
 
-
The spell ID that the creature will cast once it reaches the waypoint. The spell will be casted on itself.
 
-
====wpguid====
 
-
The GUID of the waypoint wisp that appears to signal where a creature's waypoints are visually.
 
====orientation====
====orientation====
-
The orientation the creature will face once it reaches the waypoint.
+
Направление, в котором существо повернется когда достигнет точки.
-
====model1====
+
-
The model that the creature morphs into once it reaches the waypoint. See [[creaturedisplayinfo.dbc]]
+
-
====model2====
+
-
The model that the creature morphs into once it leaves the waypoint.
+

Текущая версия на 17:37, 14 июня 2018

Содержание

К описанию таблиц базы данных mangos.


Таблица `creature_movement`

Эта таблица содержит всю информацию о точках передвижения каждого существа. По сути, точка просто определяет путь, которым существо будет следовать от точки к точке. Если говорить более конкретно, когда существо приходит в точку, она может делать разные вещи: кастовать заклинания, изображать эмоции и т.д. Обычно эта таблица заполняется путем. WP команды (и её подкомандами) в мире.

Обратите внимание, что существо, чтобы использовать точки, должно иметь MovementType = 2.


Структура

Field Type Attributes Null Key Default Comments
id int(10) unsigned NO PRI 0 Creature GUID
point mediumint(8) unsigned NO PRI 0
position_x float NO 0
position_y float NO 0
position_z float NO 0
orientation float NO 0
waittime int(10) unsigned NO 0
script_id int(10) unsigned NO 0
comment text


Описание полей

id

Номер существа (НЕ шаблонный ID). Смотри creature.guid.

point

Номер точки передвижения. Существо будет идти от точки к точке по порядку, согласно значению этого поля.

position_x

X координата точки передвижения.

position_y

Y координата точки передвижения.

position_z

Z координата точки передвижения.

waittime

Время в миллисекундах, на которое существо задержится на данной точке передвижения, прежде чем отправится к следующей.

script_id

Номер скрипта из таблицы dbscripts_on_creature_movement.id.

orientation

Направление, в котором существо повернется когда достигнет точки.

Личные инструменты