Creature movement

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

Версия от 09:55, 3 февраля 2010; KiriX (Обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

Содержание

Back to world database list of tables.


The `creature_movement` table

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.

Please note that for a creature to use waypoints, its MovementType must be 2.


Structure

Field Type Null Key Default Extra
id int(10) unsigned NO PRI 0
point int(10) unsigned NO PRI 0
position_x float NO 0
position_y float NO 0
position_z float NO 0
waittime int(5) unsigned NO 0
text1 int(11) NO 0
text2 int(11) NO 0
text3 int(11) NO 0
text4 int(11) NO 0
text5 int(11) NO 0
emote int(10) unsigned YES 0
spell int(5) unsigned YES 0
wpguid int(11) YES 0
orientation float YES 0
model1 int(11) YES 0
model2 int(11) YES 0


Description of the fields

id

The GUID of the creature (NOT the template ID). See creature.guid

point

Defines the waypoint number. A creature will go from waypoint to waypoint in the order controlled by this field.

position_x

The X position of the waypoint.

position_y

The Y position of the waypoint.

position_z

The Z position of the waypoint.

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.

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

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.

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