waypoint_data
This table contains all the path data for creatures that use waypoints.
Structure
| Field | Type | Attributes | Key | Null | Default | Extra | Comment |
|---|---|---|---|---|---|---|---|
| id | int | unsigned | PRI | NO | 0 | Creature GUID | |
| point | int | unsigned | PRI | NO | 0 | ||
| position_x | float | NO | 0 | ||||
| position_y | float | NO | 0 | ||||
| position_z | float | NO | 0 | ||||
| orientation | float | YES | NULL | ||||
| delay | int | unsigned | NO | 0 | |||
| move_type | int | signed | NO | 0 | |||
| action | int | signed | NO | 0 | |||
| action_chance | smallint | signed | NO | 100 | |||
| wpguid | int | unsigned | NO | 0 | |||
Description of fields
id
Unique ID for each path.
The TDB standard way of assigning an ID is to multiply creature guid by 10.
So for a creature with a GUID of 1234 the path ID would be 12340. Any waypoints submitted to TDB should follow this standard.
However, this is only a suggestion when creating your own waypoints. This ID can be anything you want as long as path_id is set to the id you pick here for the creature you are creating a waypoint for.
point
Unique point ID for each point in a path. Starts at 1 and increases with each path node.
position_x
The X coordinate of the destination waypoint.
position_y
The Y coordinate of the destination waypoint.
position_z
The Z coordinate of the destination waypoint.
orientation
The orientation of the creature. (North = 0.0; South = π (3.14159))
delay
Time to wait (in ms) before moving to the next point.
move_type
| ID | Name |
|---|---|
| 0 | WAYPOINT_MOVE_TYPE_WALK |
| 1 | WAYPOINT_MOVE_TYPE_RUN |
| 2 | WAYPOINT_MOVE_TYPE_LAND |
| 3 | WAYPOINT_MOVE_TYPE_TAKEOFF |
action
Script ID of the action to be performed.
action_chance
Percentage of action happening (0 – 100%).
wpguid
This field is used by the core and is NOT to be set by hand.
This field holds the GUID of the waypoint visual when you enable the visual mode for waypoints.
