waypoints-information
差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录前一修订版 | |||
| waypoints-information [2023/10/03 17:36] – [Example for path creation using GM '.wp' commands] admin | waypoints-information [2023/10/03 17:38] (当前版本) – [A few helpful SQL statements] admin | ||
|---|---|---|---|
| 行 61: | 行 61: | ||
| ===== A few helpful SQL statements ===== | ===== A few helpful SQL statements ===== | ||
| - | Delete path | + | **Delete path** |
| - | Select the creature, then unload the path: | + | |
| - | .wp unload | + | < |
| - | Delete the path from the DB, for example 123456700: | + | |
| + | < | ||
| + | **Take over the waypoints from ' | ||
| - | DELETE FROM `waypoint_data` WHERE `id` = 123456700; | ||
| - | Take over the waypoints from ' | ||
| 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: | 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`, | + | < |
| SELECT `id`, | SELECT `id`, | ||
| - | DELETE FROM `waypoint_data` WHERE `id` = 123456700; | + | DELETE FROM `waypoint_data` WHERE `id` = 123456700;</ |
| - | Take over the waypoints from ' | + | **Take over the waypoints from ' |
| The same as above, but now for script_waypoint instead of waypoints. The entry of script_waypoint has to be the creature_template.entry, | The same as above, but now for script_waypoint instead of waypoints. The entry of script_waypoint has to be the creature_template.entry, | ||
| - | INSERT INTO `script_waypoint` (`entry`, | + | < |
| SELECT 1234567 AS `entry`, | SELECT 1234567 AS `entry`, | ||
| - | DELETE 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. | Don't forget to unload the path from the creature if it was loaded before. | ||
waypoints-information.1696325782.txt.gz · 最后更改: 2023/10/03 17:36 由 admin