waypoints-information
差别
这里会显示出您选择的修订版和当前版本之间的差别。
后一修订版 | 前一修订版 | ||
waypoints-information [2023/10/03 17:34] – 创建 admin | waypoints-information [2023/10/03 17:38] (当前版本) – [A few helpful SQL statements] admin | ||
---|---|---|---|
行 41: | 行 41: | ||
Example creature GUID: 1234567, example path id: 123456700 | Example creature GUID: 1234567, example path id: 123456700 | ||
- | Create a macro ' | + | * Create a macro ' |
- | .wp add 123456700 | + | < |
- | Create a macro ' | + | |
- | .wp reload 123456700 | + | < |
- | .wp load 123456700 | + | .wp load 123456700</ |
- | Create a macro ' | + | |
- | .wp show on 123456700 | + | < |
- | Create a macro ' | + | |
- | .wp show off 123456700 | + | < |
- | Teleport to the creature: | + | |
- | .go creature 1234567 | + | < |
- | Use macro ' | + | |
- | Create the path: | + | |
- | Go to the position where the next waypoint should be and use macro ' | + | |
- | repeat until all waypoints are set (don't forget to also create a path back to the starting position) | + | |
- | use macros ' | + | |
- | ensure that the waypoints are not too far away from each other, especially if the creature is walking over hills etc. as it will try to directly move to the next waypoint, even if this means going through the ground | + | |
- | Select the creature and use macro ' | + | |
===== 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.1696325680.txt.gz · 最后更改: 2023/10/03 17:34 由 admin