waypoint_path - cmangos/issues GitHub Wiki
Back to world database list of tables
waypoint_path
table
The This table holds information on waypoints for a given PathId. 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.
To add waypoints in-game:
- .npc setmovetype way creature guid or select npc
- .wp add guid or select npc
Must have waypoint_path_name record defined.
ID Acquisition rules:
1-19999 - Vanilla
20000-29999 - TBC
30000+ - WOTLK
(corresponds to spawn_group expansion rules)
Instance ranges are always Instance ID * 10000
Structure:
Field | Type | Null | Key | Default | Extra |
---|---|---|---|---|---|
PathId | int(10) unsigned | NO | PRI | 0 | |
Point | mediumint(8) | NO | PRI | 0 | |
PositionX | float | NO | 0 | ||
PositionY | float | NO | 0 | ||
PositionZ | float | NO | 0 | ||
Orientation | float | NO | 0 | ||
WaitTime | int(10) | NO | 0 | ||
ScriptId | mediumint(8) | NO | 0 | ||
Comment | text | YES |
Description of the fields
PathId
PathId of a given waypoint sequence. Disconnected from any other Id system. Usable in spawn_group_formation, dbscripts, EAI and C++.
Point
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.
PositionX
The X position of the waypoint.
PositionY
The Y position of the waypoint.
PositionZ
The Z position of the waypoint.
Orientation
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.
WaitTime
The time that the creature will wait before heading to the next waypoint, in milliseconds.
ScriptId
Reference to DBScripts_on_creature_movement
Comment
Short description of any event happening at a point - especially when dbscript is used