Beginner's tutorial
This tutorial writes three small scripts. Before you start:
- Install EasyUO Reforged and check that it supports your client version.
- Start the Ultima Online client (the classic 2D client) and log in with a character.
- Start EasyUO Reforged.
Your first script
Section titled “Your first script”Type or paste this into the editor:
msg #SMC Hello there!$haltPress F9, or the Play button. Your character whispers “Hello there!”:
msg types the text into the client, #SMC is a ; (a message starting
with ; is whispered) and $ presses Enter. halt stops the script; without it, the
script would start over from the top.
Walking
Section titled “Walking”This script walks two steps south-east, using your position from #CharPosX and
#CharPosY:
; work out a spot 2 tiles awayset %x #CharPosX + 2set %y #CharPosY + 2; walk there, giving up after 10 secondsmove %x %y 0 10shaltmove walks in a straight line. For longer walks around obstacles, use
event PathFind.
Opening your backpack
Section titled “Opening your backpack”The client remembers the last object you used in #LObjectID, and its Last Object
macro uses it again. Put your backpack there and run the macro:
set #LObjectID #BackpackID ; your backpackevent Macro 17 0 ; use the last object: opens ithaltWhile a script runs, the variable inspector on the right shows the current values of the variables, which helps you see what your script sees.
What next
Section titled “What next”- Read about variables, expressions and control structures.
- Learn to find things around you with
finditem. - Browse the commands and variables.
Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.