Difference between revisions of "First Steps"
(→Installation) |
(→Conclusion) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
* Get the latest OpenEUO from the [http://www.easyuo.com/downloads.php#oeuo download section]. | * Get the latest OpenEUO from the [http://www.easyuo.com/downloads.php#oeuo download section]. | ||
− | * Note the new | + | * Note the new [http://www.easyuo.com/cheffe/dir.jpg directory structure]. |
− | + | ||
− | [ | + | |
OpenEUO.exe is the main program. | OpenEUO.exe is the main program. | ||
Line 37: | Line 35: | ||
Obj.Loop() | Obj.Loop() | ||
− | This is just to show you a first little | + | 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. |
== Conclusion == | == Conclusion == | ||
You have installed OpenEUO and run your first scripts. | You have installed OpenEUO and run your first scripts. | ||
+ | |||
+ | [[Lua Introduction]] |
Latest revision as of 14:41, 9 October 2010
Installation
- Get the latest OpenEUO from the download section.
- Note the new directory structure.
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.Macro(8,2) wait(1000) 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 Form1.Show() Obj.Loop()
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.
Conclusion
You have installed OpenEUO and run your first scripts.