First Steps

From OpenEUO
Revision as of 17:42, 6 October 2010 by (Talk) (Interfacing with Objects)

Jump to: navigation, search


OpenEUO.exe is the main program. Lua51.dll is the Lua interpreter. Objects.dll contains the new menu system. Uo.dll contains all the game client related functionality.

The directories should be self-explanatory. OpenEUO's GUI is stored in the "gui" directory and can be modified and adjusted to your needs (experts only!). "scripts" is where you'll store your work. You can create subdirectories if you like but do not store anything outside the OpenEUO install directory.

Hello World

print("Hello World!")

Type that into the main window as usual and press F9. You will see the output in the box below. Of course, there are many more commands besides print() but we'll leave them away for now. So, if you ever want to know the value of an expression or variable then simply use print() and put something into the parentheses.

Interfacing with UO

UO.Msg("Hi, my name is " .. UO.CharName .. "!\n")
print("UO.CharName = " .. UO.CharName)

All commands that interface with UO are stored in the "UO" table. Best copy and paste this! Variables are case sensitive!

Interfacing with Objects

Form1 = Obj.Create("TForm")
Form1.Caption = "Hey, it works!"
Form1.OnClose = function() Obj.Exit() end

This is just to show you a first little tidbit of how menus are going to work. As you can see, it's a bit more complicated so I'd recommend you start with learning more about Lua first.


You have installed OpenEUO and run your first scripts.