ENs - OpenEUO MoonGate Subs V2
A bunch of subs to facitate 100% moongate movement (not gate spell Facet moongates).
This is a library file as such the code should not be included in your file just reference it at the top of your script (edit the example line below to the location you store your library files at. I store my subs under scripts/ENs-subs, you can store their as well to make it easier to use my stuff if you wish. )
Moongates/Facets are named the same as in Game, _ represents a space... so 'Ter_Mur' not 'Ter Mur'. The Sub will return true/false depending on weather the moongate action worked. It knows if you succeeded or failed because it knowns the landing spot for all gates/facets. You might of failed due to lag or becuase you cannot access that part of the game world with that account.
Stand near a moongate and run below for an example of its simplicity and power and speed.
dofile(getinstalldir()..'scripts/ENs-Subs/ENs_Subs_MoonGates.Lua') -- run once at top of script
local result = EN.MoonGate.Use('Malas','Luna') -- facet, gatename
if result then print('success') else print('failed') end
wait(1000)
local result = EN.MoonGate.Use('Malas','Umbra')
if result then print('success') else print('failed') end
Dont care about error checking then
dofile(getinstalldir()..'scripts/ENs-Subs/ENs_Subs_MoonGates.Lua') -- run once at top of script
EN.MoonGate.Use('Malas','Luna')
wait(1000) - 1sec
EN.MoonGate.Use('Malas','Umbra')
Enjoy...