Nav Mesh Runner for oGasai 2.1.X - Printable Version

+- oGasai (http://darkenedlinux.com/ogasai)
+-- Forum: My Category (http://darkenedlinux.com/ogasai/forumdisplay.php?fid=1)
+--- Forum: Neutral (http://darkenedlinux.com/ogasai/forumdisplay.php?fid=5)
+---- Forum: Travel (http://darkenedlinux.com/ogasai/forumdisplay.php?fid=43)
+---- Thread: Nav Mesh Runner for oGasai 2.1.X (/showthread.php?tid=205)

Nav Mesh Runner for oGasai 2.1.X - Logitech - 01-02-2018

This little project was started by Rot (see script list on Discord)

I've changed, removed and added some stuff:

 - Added the script to be a "mode" instead of a window (uses run/stop) so we can use draw functions
 - Decreased the lines of code for adding/loading destinations
 - Added map/continent ID to destinations which are useless since the  Map ID's aren't "ordered" , need to map them some how
 - Most destinations are Horde that Rot added, so if people use this script, feel free to share the addDestination(...) line.
   e.g.: script_runner:addDestination("Razor Hill - Durator", 323.82, -4736.34, 9.80, 1, 14);

You can only walk to destinations that are usually within one "map-zone" from your current position. Otherwise you will end up with a path of 2 nodes or no path at all.

How to install:
1. Place the script_runner.lua in \\scripts\\

2. In core\\coremenu.lua inside the isSetup if-statment add:
        -- Nav Mesh Runner by Rot, Improved by Logitech
        LoadScript("Runner", "scripts\\script_runner.lua");
        AddScriptToMode("Runner", "script_runner");

2. In the same file below the isSetup if-statement add the menu: