目录

Waypoints and paths


Different kinds of waypoint paths

Overview of GM '.wp' commands

Example for path creation using GM '.wp' commands

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

A few helpful SQL statements

Delete path

.wp unload
DELETE FROM `waypoint_data` WHERE `id` = 123456700;

Take over the waypoints from 'waypoint_data' to 'waypoints' (SmartAI)

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;

Take over the waypoints from 'waypoint_data' to 'script_waypoint' (CreatureAI)

The same as above, but now for script_waypoint instead of waypoints. The entry of script_waypoint has to be the creature_template.entry, here for example 1234567:

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.

Waypoint pathing best practices

When creating paths along an incline, ground clipping can be minimized by maintaining line-of-sight.