ScriptUO

Official ScriptUO EasyUO Scripts => Site Scripter Libraries => Endless Nights' Script Library => Topic started by: Endless Night on April 25, 2011, 08:29:23 PM

Title: ENs - Subs - OpenEUO MoonGate Subs
Post by: Endless Night on April 25, 2011, 08:29:23 PM
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.

Code: [Select]
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
Code: [Select]
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...
Title: Re: ENs - OpenEUO MoonGate Subs
Post by: Endless Night on April 26, 2011, 07:27:06 PM
dang no one interested in OpenEUO stuff anymore i guess. 
Title: Re: ENs - OpenEUO MoonGate Subs
Post by: TrailMyx on April 27, 2011, 11:30:00 AM
I'll certainly get back into it more when:

1) It's done
2) It's debugged.  That last pass just turned me off and I forgot all the Lua I knew.  I'll be starting over.  lol

I need a reason to start playing UO again.  I was hoping that OEUO would spark me, but it ended up killing my interaction with the game.  Still playing Rift however.
Title: Re: ENs - OpenEUO MoonGate Subs
Post by: Endless Night on April 27, 2011, 11:34:56 AM
I'll certainly get back into it more when:

1) It's done
2) It's debugged.  That last pass just turned me off and I forgot all the Lua I knew.  I'll be starting over.  lol

I need a reason to start playing UO again.  I was hoping that OEUO would spark me, but it ended up killing my interaction with the game.  Still playing Rift however.

Well for me  after my break the annoyances of EasyUO have become more annoying... so besides from needed modding of my existing work as required all new stuff is likely to be LUA based.    It just means no menus for now but its a bit of fun converting over and enjoying the freedom of real librarys.

Title: Re: ENs - OpenEUO MoonGate Subs
Post by: TrailMyx on April 27, 2011, 11:40:23 AM
Well for me  after my break the annoyances of EasyUO have become more annoying...


I hear you there.  Lua driving my little character around was great.  Having to go back to EUO just turned into a non-option.  I tried doing a few things, but I just felt I was wasting my time.  So I'll just patiently wait and throw the occasional verbal grenade.

Anyhow, sorry for the thread hijack; I know you run a tight ship in here.  Feel free to delete.
Title: Re: ENs - OpenEUO MoonGate Subs
Post by: gimlet on April 27, 2011, 02:08:50 PM
I am planning on learning the lua syntax this summer!
Title: Re: ENs - OpenEUO MoonGate Subs
Post by: Khameleon on April 27, 2011, 02:37:49 PM
no man.. Your doing Great.. keep them subs coming :) everyone will convert when OEUO is up and running 100%