Skip to content

Beginner's tutorial

This tutorial writes three small scripts. Before you start:

  1. Install EasyUO Reforged and check that it supports your client version.
  2. Start the Ultima Online client (the classic 2D client) and log in with a character.
  3. Start EasyUO Reforged.

Type or paste this into the editor:

msg #SMC Hello there!$
halt

Press 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.

This script walks two steps south-east, using your position from #CharPosX and #CharPosY:

; work out a spot 2 tiles away
set %x #CharPosX + 2
set %y #CharPosY + 2
; walk there, giving up after 10 seconds
move %x %y 0 10s
halt

move walks in a straight line. For longer walks around obstacles, use event PathFind.

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 backpack
event Macro 17 0 ; use the last object: opens it
halt

While a script runs, the variable inspector on the right shows the current values of the variables, which helps you see what your script sees.

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.