---------------------------------------------------------------
-- Script Name: TrailMyx's LUA Subroutine Collection
-- Author: TrailMyx
-- Version: v3
-- Shard OSI / FS: unk
-- Revision Date: 9/29/2007
-- Purpose: Collection of routines, including:
-- Menu converter from EUO menu designer to OEUO native
-- Journal handler (like TM_Adv)
-- etc.
-- Requirements:
--
-- Special Thanks:
--
-- Beta testers:
-- Bug testers:
--
---------------------------------------------------------------
Current Version: v3.0New to version 3.0:- Re-written to address everything as an object.
New to version 2.1:- TM_DeleteControl - user deletable controls
- Adding a control will attempt to delete and existing control with the same name
Todo:- Journal routines - a.k.a TM_AdvJournalScan
- Gump OCR routines
- Travel subs
- etc
This is a collection of LUA subs and a .NET converter program to take menu designer created menus and port them to native OEUO LUA code.
The included .NET program will let you cut/paste EUO code into the top window and create LUA compatible code that can be parsed to create menus within your OEUO LUA script.
A button manager is included to automate your existing EUO buttons within the OEUO world!!P.S. This is my first Lua script. It's basically written; so please don't be too criticalSample to get you started:
dofile("tm_subs_v30.lua")
-------------------------------------
-- Your functions
-------------------------------------
function EUOButton1()
print("holy crap, it ran!")
end
-------------------------------------
function EUOButtonExit()
Obj.Exit()
end
-------------------------------------
-- Your main script
-------------------------------------
mf = MenuInfo:New()
mf:TM_MenuFunction("sub showEUOMenu1")
mf:TM_MenuFunction("menu Clear")
mf:TM_MenuFunction("menu Window Title TrailMyx's SOS Autofarmer v , %version")
mf:TM_MenuFunction("menu Window Color Lime")
mf:TM_MenuFunction("menu Button EUOButton1 20 420 75 25 Totalize")
mf:TM_MenuFunction("menu Window Size 625 455")
mf:TM_MenuFunction("menu Show 421 270")
--mf:TM_DeleteControl("EUOButton1")
mf:TM_MenuFunction("menu Button EUOButtonExit 120 420 75 25 Exit")
Obj.Loop()
Obj.Free(mf.EUOMenu)