.wp addwaypoint_data.id: Add a new point for the specified path id. It is recommended to use creature GUID * 10 or GUID * 100 as path id, but it can be any random number.
.wp reloadwaypoint_data.id: Reload the specified path id (for new paths has to be executed before
.wp loadwaypoint_data.id: Load the specified path id for the selected creature.
.wp unload: Unload the path of the selected creature.
.wp show onwaypoint_data.id: Show all waypoints of the specified path (GM on is required to actually see them). If no path id is specified shows the waypoints of the selected creature.
.wp show off: Hide all visual waypoints.
.wp show info: Show information about the selected waypoint.
.wp modify: Modify the selected waypoint, options:
del: Delete the selected waypoint.
move: Move the selected waypoint to the position of the GM.
delay: Change the delay of the selected waypoint.
action: Change the action of the selected waypoint.
action_chance: Change the action_chance of the selected waypoint.
move_type: Change the move_type of the selected waypoint (0: walk, 1: run, 2: fly).
.wp event: Modify the waypoint actions, options:
addguid: Add a new action with the specified GUID (not to be confused with the creature GUID!). If no GUID is specified a new one is generated automatically.
listidaction: Show information about the specified action id.
delguid: Delete the action with the specified GUID.
modguid: Modify the action with the specified GUID, further options:
setidaction: Set a new action id.
delaydelay: Set a specific delay before the script activates.
commandcommand: Set the command for this script.
datalongdatalong: Set the datalong for this script.
datalong2datalong2: Set the datalong2 for this script.
dataintdataint: Set the dataint for this script.
posxposx: Set the posx for this script.
posyposy: Set the posy for this script.
poszposz: Set the posz for this script.
orientationorientation: Set the orientation for this script.
Example creature GUID: 1234567, example path id: 123456700
.wp add 123456700
.wp reload 123456700 .wp load 123456700
.wp show on 123456700
.wp show off 123456700
.go creature 1234567
Select the creature, then unload the path:
Delete the path from the DB, for example 123456700:
DELETE FROM `waypoint_data` WHERE `id` = 123456700;
If you need the waypoints for SmartAI you have to copy the waypoints from table waypoint_data into table waypoints and then delete the original waypoints (unload the path for the creature via
.wp unload if it was loaded before). Here an example for path 123456700:
INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`) SELECT `id`,`point`,`position_x`,`position_y`,`position_z` FROM `waypoint_data` WHERE `id` = 123456700; DELETE FROM `waypoint_data` WHERE `id` = 123456700;
INSERT INTO `script_waypoint` (`entry`,`pointid`,`location_x`,`location_y`,`location_z`) SELECT 1234567 AS `entry`,`point`,`position_x`,`position_y`,`position_z` FROM `waypoint_data` WHERE `id` = 123456700; DELETE FROM `waypoint_data` WHERE `id` = 123456700;
Don't forget to unload the path from the creature if it was loaded before.
When creating paths along an incline, ground clipping can be minimized by maintaining line-of-sight.