-
Notifications
You must be signed in to change notification settings - Fork 47
creature_movement_template
Back to world database list of tables.
holds all the information on creature’s waypoints by `creature`.`guid` or `creature_template`.`entry`. 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 for its `creature`.`guid`.
Field | Type | Null | Key | Default | Extra |
---|---|---|---|---|---|
Guid/Entry | int(10) unsigned | NO | PRI | 0 | |
PathId | int(11) unsigned | NO | PRI | 0 | CURRENTLY TEMPLATE ONLY |
Point | int(10) unsigned | NO | PRI | 0 | |
PositionX | float | NO | 0 | ||
PositionY | float | NO | 0 | ||
PositionZ | float | NO | 0 | ||
Orientation | float | YES | 0 | ||
WaitTime | int(5) unsigned | NO | 0 | ||
ScriptId | mediumint(8) unsigned | NO | 0 |
The creature.guid or creature_template.entry of the creature.
0 means that this is the default path for any creature of the specified
template. Any creature summoned, which is not assigned to another path,
will start moving on pathId 0.
Setting this field to any other value allows you to use it for setting
different paths to different creatures of the same template in DBScripts
and in EventAI.
Defines the waypoint number. A creature will go from waypoint to waypoint in the order controlled by this field.
As a convention, the first point of a path must be greater than zero. This is expected by core.
The X position of the waypoint.
The Y position of the waypoint.
The Z position of the waypoint.
The orientation the creature will face once it reaches the waypoint.
(North = 0.0; South = pi (3.14159))
Setting this field to 100 means the creature will not change its orientation upon reaching the waypoint.
The time that the creature will wait before heading to the next waypoint, in milliseconds.
Reference to DBScripts_on_creature_movement.