Autopilot include for macros using MQ2Nav
Imade this include for my own macro.
It uses MQ2Nav and MQ2Nav waypoints to create routes to a named destination.
You can then trigger an autopilot to run to this location through this include.
The zone shortnames in the ini file can be in any order, and you dont have to start the autopilot in the furthest away zone, it will work from any zone between A and B. I havent tested any wierd scenarios, but if you keep it simple stupid it should work ok.
You need to tweak your mq2nav waypoints a bit to make sure mq2nav zones you to the next zone you want to go too.
My repostory has some added here:
https://github.com/projecteon/MacroQuest/blob/master-mqemu-beta/macros/data/mq2nav_waypoints.ini
Ill keep updateing as a I add more. Disclaimer: They are made for Firiona Vie Project server which is a classic one, so old zones.
Code it currently branched here (will go to main branch once MQEmulator Beta build is released):
https://github.com/projecteon/MacroQuest/blob/master-mqemu-beta/macros/includes/commonAutopilot.inc
Setup:
- Add the include in your macro
- Add /call InitAutopilot to any setup sub you have
- Add /call DoAutoPilotEvents to any event runner you have
Autopilot ini
Must be in a folder
Macros/data/Autopilot Routes.ini
Syntax is as follows
[nameofroute]
zoneshortname=waypoint1/waypoint2 etc where waypoint1 and 2 are name of waypoints in mq2nav
Ex
[solb]
ecommons=ectunnel/nektulos
nektulos=lavastorm
lavastorm=soldungb
Macro
Wed Sep 15, 2021 12:29 pm