Skip to content

waypoint_data

This table contains all the path data for creatures that use waypoints.

Structure ​

FieldTypeAttributesKeyNullDefaultExtraComment
idintunsignedPRINO0Creature GUID
pointintunsignedPRINO0
position_xfloatNO0
position_yfloatNO0
position_zfloatNO0
orientationfloatYESNULL
delayintunsignedNO0
move_typeintsignedNO0
actionintsignedNO0
action_chancesmallintsignedNO100
wpguidintunsignedNO0
 

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 ​

IDName
0WAYPOINT_MOVE_TYPE_WALK
1WAYPOINT_MOVE_TYPE_RUN
2WAYPOINT_MOVE_TYPE_LAND
3WAYPOINT_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.