# EasyUO Reforged > EasyUO Reforged runs EasyUO scripts (.euo), which automate the Ultima Online client. These files > are its documentation as plain markdown, for AI agents that write or change such scripts. Generated from EasyUO Reforged v26.11.16. EasyUO is a small language of its own with unusual rules: read the language rules before writing a script, and take every command and variable name from the two lists. An unknown command is ignored without an error. Pages based on the EasyUO wiki say so at their foot and are available under the GNU Free Documentation License 1.2 (https://ilpersi.github.io/EasyUOReforged/agent/euo-script/LICENSE-GFDL-1.2.txt). ## Start here - [Language rules](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/language.md): the rules scripts break most often, and patterns that work - [Commands](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/commands.md): every command and sub-command on one line - [Variables](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/variables.md): every #variable on one line - [reference.json](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference.json): the same data for tools - [Everything in one file](https://ilpersi.github.io/EasyUOReforged/llms-full.txt) ## Language - [Control structures](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/language/control-structures.md): Labels, goto, subs and the other statements that control the flow of a script. - [Expressions](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/language/expressions.md): Calculations and conditions: which commands evaluate them, how words are separated, and how lines and blocks are built. - [Operators](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/language/operators.md): Arithmetic, comparison, logical and text operators, and the order they are worked out in. - [Variables](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/language/variables.md): The four kinds of variables (%, !, * and #), how names and values work, and who can see which. ## Commands - [Break](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/break.md): Leaves the loop it is in and goes on after the loop. - [Call](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/call.md): Runs another script file, then comes back when it exits. - [ChooseSkill](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/chooseskill.md): Selects the skill that #Skill, #SkillCap and #SkillLock report. - [Click](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/click.md): Clicks the mouse at a position in the client window. - [CmpPix](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/cmppix.md): Runs a line or block depending on whether a saved pixel still has the same colour. - [Continue](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/continue.md): Skips the rest of the loop body and goes on with the next round of the loop. - [ContPos](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/contpos.md): Moves the top gump to a position on the screen. - [DeleteJournal](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/deletejournal.md): Hides the journal lines read so far from later scanjournal calls. - [DeleteVar](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/deletevar.md): Obsolete: empties a % variable; set %x with no value does the same. - [Display](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/display.md): Shows a message box and waits for the user; the answer goes to #DispRes. - [Else](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/else.md): Runs a line or a block when the if before it was false. - [event ContTop](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/event/conttop.md): Brings a gump to the front, counted from the top gump. - [event Drag](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/event/drag.md): Picks up an item, as if you dragged it with the mouse. - [event ExMsg](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/event/exmsg.md): Shows a message above an object, in a chosen font and colour. - [Event](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/event.md): Makes the client do something with its own internal functions: macros, dragging, messages and more. - [event Macro](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/event/macro.md): Runs one of the client's built-in macros: speech, gumps, skills, spells, targeting, dress sets, potions. - [event PathFind](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/event/pathfind.md): Walks to a nearby spot, letting the client find a way around obstacles. - [event Property](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/event/property.md): Reads the property tooltip of an item or character into #Property. - [event SkillLock](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/event/skilllock.md): Sets the lock of a skill, or of all skills; the same as exevent SkillLock. - [event Sleep](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/event/sleep.md): Not implemented in EasyUO Reforged: accepted, but does nothing. - [event StatBar](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/event/statbar.md): Opens the health bar of a character by its ID. - [event SysMessage](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/event/sysmessage.md): Shows a system message in the client; only you see it. - [Execute](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/execute.md): Opens a program, file or web address, as if you had double-clicked it. - [exevent Drag](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/exevent/drag.md): Picks up an item, or a given amount of a stack, through the server. - [exevent DropC](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/exevent/dropc.md): Drops the held item into a container, or onto a stack to combine them. - [exevent DropG](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/exevent/dropg.md): Drops the held item on the ground at a world position. - [exevent DropPD](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/exevent/droppd.md): Puts the held item on: drops it on your paperdoll. - [exevent Equip](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/exevent/equip.md): Asks the server to equip one or more items by ID, in one request. - [exevent GumpReply](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/exevent/gumpreply.md): Answers a gump the server sent, the way a click on one of its buttons does. - [ExEvent](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/exevent.md): Sends actions straight to the server as packets: drag, drop, context menus, locks and more. - [exevent PopUp](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/exevent/popup.md): Opens the context menu of an item or character. - [exevent RenamePet](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/exevent/renamepet.md): Renames one of your pets. - [exevent SkillLock](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/exevent/skilllock.md): Sets the lock of a skill, or of all skills. - [exevent StatLock](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/exevent/statlock.md): Sets the lock of strength, dexterity or intelligence. - [Exit](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/exit.md): Ends a called script, or starts the main script over from the top. - [FindItem](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/finditem.md): Finds items and characters by type or ID and fills the #Find… variables with the first match. - [FindJournal](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/findjournal.md): Searches the journal lines since a bookmark for a colour and any of several texts, waiting up to a timeout. - [For](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/for.md): Repeats a line or block while a variable counts from one number to another. - [GetShopInfo](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/getshopinfo.md): Reads the entry shown at the top of the shop gump into the #Shop… variables. - [GetUOTitle](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/getuotitle.md): Puts the title of the client window in #StrRes. - [Gosub](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/gosub.md): Runs a sub and comes back when it returns, optionally passing parameters. - [Goto](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/goto.md): Jumps to a label; the nearest label with that name wins. - [Halt](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/halt.md): Stops the script. - [HideItem](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/hideitem.md): Hides an item from your screen; nothing changes on the server. - [If](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/if.md): Runs a line or a block only when a condition is true. - [IgnoreCont](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/ignorecont.md): Makes the #Cont… variables skip a gump, by name or kind; reset empties the list. - [IgnoreItem](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/ignoreitem.md): Makes FindItem skip items by ID or type; the same call again un-ignores them. - [InitEvents](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/initevents.md): Obsolete: event commands set themselves up; the line is ignored. - [Key](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/key.md): Presses a key in the client, optionally with Ctrl, Alt or Shift. - [Label](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/label.md): Marks a line that goto can jump to. - [LinesPerCycle](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/linespercycle.md): Sets how many lines the script runs before each 50 ms pause; the same as set #LPC. - [Log](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/log.md): Writes a line to the editor's Output panel, or to EUOCli's output, without stopping the script. - [menu Activate](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/activate.md): Gives a control the keyboard focus. - [menu Button](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/button.md): Places a button in the menu window; a click puts its name in #MenuButton. - [menu Check](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/check.md): Places a check box in the menu window. - [menu Clear](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/clear.md): Removes every control from the menu window and resets the font settings. - [menu Combo](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/combo.md): Places a drop-down list in the menu window, and fills or selects its entries. - [menu Delete](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/delete.md): Removes one control from the menu window. - [menu Edit](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/edit.md): Places a one-line text field in the menu window. - [menu Font Align](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/font/align.md): Sets how the text of labels and check boxes created after it is aligned. - [menu Font BGColor](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/font/bgcolor.md): Sets the background colour of the controls created after it. - [menu Font Color](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/font/color.md): Sets the text colour of the controls created after it. - [menu Font Name](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/font/name.md): Sets the font of the controls created after it. - [menu Font Size](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/font/size.md): Sets the font size of the controls created after it. - [menu Font Style](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/font/style.md): Sets bold, italic, underline or strikeout for the controls created after it. - [menu Font Transparent](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/font/transparent.md): Draws the labels created after it without a background. - [menu Form](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/form.md): Creates another menu window, hidden, that the controls created after it go into. - [menu Get](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/get.md): Reads the value of a control into #MenuRes. - [menu GetDef](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/getdef.md): Reads one of the defaults new menu controls are created with into #MenuRes. - [menu GetNum](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/getnum.md): Reads a control into #MenuRes, with a default when it is not a number. - [menu GetProp](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/getprop.md): Reads a property of a menu control or window, such as its position, text or colour, into #MenuRes. - [menu Hide](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/hide.md): Hides the menu window, as if it had been closed. - [menu HideEUO](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/hideeuo.md): Minimises the EasyUO Reforged window and shows only the menu window. - [menu Image Create](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/image/create.md): Places an empty, transparent image in the menu window to draw in. - [menu Image Ellipse](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/image/ellipse.md): Draws an ellipse or circle in an image, outlined or filled. - [menu Image File](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/image/file.md): Draws a picture file into an image. - [menu Image FloodFill](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/image/floodfill.md): Fills an area of one colour in an image with another, like a paint bucket. - [menu Image Line](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/image/line.md): Draws a line in an image. - [menu Image Pix](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/image/pix.md): Paints one pixel of an image. - [menu Image PixLine](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/image/pixline.md): Paints a row of pixels of an image from a compact text code. - [menu Image Pos](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/image/pos.md): Moves an image, and optionally resizes it, stretching what is drawn in it. - [menu Image Rectangle](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/image/rectangle.md): Draws a rectangle in an image, outlined or filled. - [Menu](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu.md): Builds a window of buttons, text, fields, lists and images that a script can show and read. - [menu List](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/list.md): Places a list box in the menu window, and fills or selects its entries. - [menu Memo](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/memo.md): Creates a multi-line, scrollable text field in the EasyUO menu window, which can wrap its long lines. - [menu Panel](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/panel.md): Creates a borderless area that holds other controls; the controls created after it go into it. - [menu PopDef](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/popdef.md): Brings back defaults for new menu controls saved by menu PushDef. - [menu PushDef](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/pushdef.md): Saves a copy of the current defaults for new menu controls, for menu PopDef to bring back. - [menu Radio](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/radio.md): Creates a radio button; checking one unchecks the others in the same window or panel. - [menu Reforge IncludeCall](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/reforge/includecall.md): Makes Reforged's choice of MENU system look at the files the script calls, too. - [menu Reforge Mode](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/reforge/mode.md): Chooses which MENU system the script runs under: EasyUO 1.5's or 1.6's. - [menu Set](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/set.md): Changes the text or state of a control. - [menu SetDef](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/setdef.md): Changes one of the defaults new menu controls are created with, such as the window or panel they go into. - [menu SetProp](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/setprop.md): Changes a property of a menu control or window: show or hide it, move it, recolour it, give it a tooltip. - [menu Shape](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/shape.md): Draws a rectangle, circle or other shape in the menu window. - [menu Show](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/show.md): Shows the menu window, optionally at a position on the screen. - [menu Text](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/text.md): Places a label in the menu window; $ starts a new line. - [MENU: EasyUO 1.5 and 1.6](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/versions.md): The two MENU systems Reforged runs, how it picks one for a script, how to choose it yourself, and every difference between them. - [menu Window Color](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/window/color.md): Sets the background colour of the menu window. - [menu Window Size](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/window/size.md): Sets the size of the menu window. - [menu Window Title](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/window/title.md): Sets the title of the menu window. - [menu Window Transparent](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/menu/window/transparent.md): Makes the whole menu window see-through, from 0 to 100 percent opaque. - [Move](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/move.md): Walks the character towards a position with the arrow keys; no pathfinding. - [MoveItem](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/moveitem.md): Moves an item, or part of a stack, into a container and reports in #MoveRes whether it arrived. - [Msg](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/msg.md): Types text into the client as if on the keyboard; $ presses Enter. - [namespace clear](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/namespace/clear.md): Deletes every ! variable of the current namespace. - [namespace copy](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/namespace/copy.md): Copies variables matching a pattern between the current namespace and another. - [namespace global](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/namespace/global.md): Makes a global namespace, shared with every running script, the current one. - [Namespace](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/namespace.md): Switches the set of ! variables a script uses: private to the script, or shared with other scripts. - [namespace local](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/namespace/local.md): Makes a local namespace, private to this script, the current one. - [namespace pop](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/namespace/pop.md): Goes back to the namespace last remembered with namespace push. - [namespace push](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/namespace/push.md): Remembers the current namespace, to come back to it with namespace pop. - [NextCPos](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/nextcpos.md): Sets where the next container will open. - [OnHotKey](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/onhotkey.md): Runs a line or block only if a key is held down at that moment. - [path Avoid](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/path/avoid.md): Marks an area routes should go around if they can: a guarded zone, a spawn. - [path Block](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/path/block.md): Marks a place or a rectangle that routes must never use. - [path Can](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/path/can.md): Says whether a character can stand at a place, and at what height. - [path Check](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/path/check.md): Asks the client itself whether the character can take a step, and at what height it lands. - [path Clear](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/path/clear.md): Forgets the path blocks, avoid areas, links and refused places, or one kind of them. - [path Find](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/path/find.md): Plans a walking route from your character to a place on the same facet. - [path From](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/path/from.md): Plans routes from another place instead of your character's position. - [path Get](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/path/get.md): Loads one step of the last planned route into #PathX, #PathY, #PathZ and #PathDir. - [path Go](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/path/go.md): Plans a route to a place and walks it, waiting until the character gets there. - [Path](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/path.md): Plans a walking route across the map, around walls, water and buildings, with stairs and bridges, and walks it. - [path Link](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/path/link.md): Adds a teleporter, gate or ladder that routes may use: a one-way jump between two places. - [path Set](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/path/set.md): Changes an option of the pathfinder: accuracy, search limits, how to walk, doors, creatures and more. - [path Step](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/path/step.md): Moves a walk on and returns at once, so the script can do other things while the character walks. - [path Stop](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/path/stop.md): Ends the walk that path step is moving on. - [path Unblock](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/path/unblock.md): Removes the path blocks that cover a place or a rectangle. - [path Walk](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/path/walk.md): Walks the route the last path find planned, waiting until the character gets there. - [Pause](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/pause.md): Pauses the script until Play is pressed. - [PlayCD](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/playcd.md): Obsolete: a leftover from early EasyUO versions that does nothing. - [Repeat … Until](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/repeat.md): Repeats lines until a condition is true, testing it after each round. - [Return](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/return.md): Ends a sub and goes back to the line after its gosub, optionally with a value. - [SavePix](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/savepix.md): Reads the colour of a pixel into #PixCol and a numbered slot for cmppix. - [ScanBuffs](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/scanbuffs.md): Reads the client's buff bar into the #Buff… variables, optionally only one buff icon. - [ScanGumps](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/scangumps.md): Lists every gump window open in the client, front to back, into the #Gump… variables. - [ScanJournal](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/scanjournal.md): Reads one journal line into #Journal and #JColor. - [Send](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/send.md): Sends an HTTP POST request and runs the reply as an EasyUO script. - [Set](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/set.md): Gives a variable a value, or the result of an expression. - [SetShopItem](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/setshopitem.md): Sets how many of an item to buy in the shop’s buy list. - [SetUOTitle](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/setuotitle.md): Sets the title of the client window. - [ShutDown](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/shutdown.md): Shuts down and powers off the computer. - [Sleep](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/sleep.md): Pauses the script for a number of milliseconds. - [Sound](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/sound.md): Plays a .wav file, or the Windows default beep. - [sql Close](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/sql/close.md): Closes the database; an open transaction is rolled back. - [sql Delete](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/sql/delete.md): Removes saved variables from the database. - [sql Exec](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/sql/exec.md): Runs one SQL statement and discards any rows it returns. - [SQL](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/sql.md): Keeps data in an SQLite database file: raw SQL, or a quick save and load of variables. - [sql Load](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/sql/load.md): Restores % and ! variables saved with sql save. - [sql Open](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/sql/open.md): Opens an SQLite database file, creating it if needed. - [sql Query](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/sql/query.md): Runs one SQL statement, keeps its rows and loads row 1 into variables. - [sql Row](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/sql/row.md): Loads one row of the last sql query into variables. - [sql Save](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/sql/save.md): Stores the values of % and ! variables in the database. - [Stop](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/stop.md): Stops the script; exactly the same as halt. - [StopCD](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/stopcd.md): Obsolete: a leftover from early EasyUO versions that does nothing. - [Str](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/str.md): Works on a piece of text (length, position, part, case, replace, split, trim, join, insert, delete, count); the result goes to #StrRes. - [Sub](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/sub.md): Starts a named block of lines that gosub can call. - [Target](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/target.md): Waits until a target cursor appears, or the timeout passes. - [Terminate](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/terminate.md): Closes the client, or the EasyUO Reforged window. - [Tile](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/tile.md): Reads the map: how many tiles are at a spot, and the type, height, name and flags of each. - [UOXL](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/uoxl.md): Starts another client, or switches the script to the next running one. - [Wait](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/wait.md): Pauses the script for a time, in 50 ms ticks or seconds, plus an optional random extra. - [WaitFor](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/waitfor.md): Waits until a condition is true or a timeout passes, and reports which happened in #WaitRes. - [While](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/commands/while.md): Repeats a line or block as long as a condition is true, testing it first. ## Variables - [#AR](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/ar.md): Your character’s physical resistance (armour rating before Age of Shadows). - [#BackpackID](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/backpackid.md): ID of your character’s backpack. - [#BuffBarOpen](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/buffbaropen.md): #true when the client’s buff bar window is open, #false when it is closed. - [#BuffCliloc](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/buffcliloc.md): Cliloc number of the selected buff’s title. - [#BuffCnt](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/buffcnt.md): Number of buffs on the buff bar, counted live. - [#BuffDesc](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/buffdesc.md): Second line of the selected buff’s tooltip. - [#BuffID](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/buffid.md): Icon ID of the selected buff, a plain number (Bless is 30018). - [#BuffIndex](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/buffindex.md): Selects which buff the #Buff… variables describe; 1 is the first. - [#BuffName](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/buffname.md): Title of the selected buff, as its tooltip shows it. - [#BuffTime](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/bufftime.md): Seconds left on the selected buff; -1 when it has no timer. - [#CharDir](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/chardir.md): Direction your character is facing, 0 (north) to 7. - [#CharGhost](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/charghost.md): yes when your character is dead (a ghost), no otherwise. - [#CharID](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/charid.md): ID of your character. - [#CharName](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/charname.md): Your character’s name. - [#CharPosX](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/charposx.md): Your character’s X position in the world (west–east). - [#CharPosY](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/charposy.md): Your character’s Y position in the world (north–south). - [#CharPosZ](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/charposz.md): Your character’s height (Z coordinate). - [#CharStatus](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/charstatus.md): Letters for your character’s states: frozen, female, flying or poisoned, yellow health bar, war mode, hidden. - [#CharType](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/chartype.md): Body type of your character, as a Sys26 type. - [#CliCnt](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/clicnt.md): Number of supported UO clients running. - [#CliLang](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/clilang.md): Language code of the client, such as ENU. - [#CliLeft](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/clileft.md): X position of the game area inside the client window; set it to move the game area. - [#CliLogged](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/clilogged.md): 1 when a character is logged in, 0 at the login screens. - [#CliNr](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/clinr.md): Which of the running clients the script drives, counting from 1. - [#CliTitle](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/clititle.md): Title of the client window; set it to rename the window. - [#CliTop](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/clitop.md): Y position of the game area inside the client window; set it to move the game area. - [#CliVer](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/cliver.md): Version of the attached client, such as 7.0.117.1. - [#CliXRes](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/clixres.md): Width of the game area in pixels; set it to resize the game area. - [#CliYRes](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/cliyres.md): Height of the game area in pixels; set it to resize the game area. - [#ContHP](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/conthp.md): Health in percent of the creature whose health bar is the top gump. - [#ContID](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/contid.md): ID of the item a container gump on top belongs to. - [#ContKind](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/contkind.md): Kind of the gump on top, as a code; tells crafting menus, runebooks and more apart. - [#ContName](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/contname.md): Name of the gump on top, such as container_gump or paperdoll_gump. - [#ContPosX](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/contposx.md): X position of the gump on top; set it to move the gump. - [#ContPosY](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/contposy.md): Y position of the gump on top; set it to move the gump. - [#ContSize](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/contsize.md): Width and height of the gump on top, as width_height. - [#ContSizeX](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/contsizex.md): Width of the top gump in pixels. - [#ContSizeY](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/contsizey.md): Height of the top gump in pixels. - [#ContType](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/conttype.md): Type of the item a container gump on top belongs to. - [#CR](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/cr.md): Your character’s cold resistance. - [#CurPath](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/curpath.md): Folder of EasyUOReforged.exe, ending with a backslash. - [#CursKind](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/curskind.md): Facet you are on: 0 Felucca, 1 Trammel, 2 Ilshenar, 3 Malas, 4 Tokuno, 5 Ter Mur. - [#CursorX](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/cursorx.md): Mouse cursor X position relative to the game area. - [#CursorY](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/cursory.md): Mouse cursor Y position relative to the game area. - [#Date](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/date.md): Local date of the computer as yymmdd. - [#Dex](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/dex.md): Your character’s dexterity. - [#DispRes](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/dispres.md): Button the user pressed in the last display box: Ok, Yes, No or Cancel. - [#DOT](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/dot.md): A full stop, which could not be typed alone because . joins words. - [#EnemyHits](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/enemyhits.md): Health in percent of the enemy in #EnemyID. - [#EnemyID](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/enemyid.md): ID of the enemy whose health bar the client shows, or N/A. - [#ER](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/er.md): Your character’s energy resistance. - [#EUOVer](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/euover.md): Always 1_50_00, the EasyUO version Reforged is ported from; see #ReforgedVer. - [#False](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/false.md): The value false: 0. - [#FindBagID](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/findbagid.md): ID of the container holding the object FindItem selected. - [#FindCnt](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/findcnt.md): How many objects the last FindItem found. - [#FindCol](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/findcol.md): Colour (hue) of the object FindItem selected. - [#FindDist](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/finddist.md): Distance in tiles to the object FindItem selected, for objects on the ground. - [#FindID](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/findid.md): ID of the object FindItem selected, or X when nothing was found. - [#FindIndex](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/findindex.md): Selects which FindItem match the #Find… variables describe, without searching again. - [#FindKind](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/findkind.md): Where the object FindItem selected is: 0 in a container, 1 on the ground, -1 not found. - [#FindLayer](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/findlayer.md): Layer a character wears the object FindItem selected in, or N/A when nobody wears it. - [#FindMod](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/findmod.md): Offset added to #FindX and #FindY for objects in containers, written x_y. - [#FindRep](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/findrep.md): Notoriety of the character FindItem selected: 1 innocent to 7 invulnerable. - [#FindStack](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/findstack.md): Number of items in the stack FindItem selected; 0 for characters. - [#FindType](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/findtype.md): Type of the object FindItem selected. - [#FindX](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/findx.md): X position of the object FindItem selected: world position on the ground, screen position in a container. - [#FindY](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/findy.md): Y position of the object FindItem selected: world position on the ground, screen position in a container. - [#FindZ](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/findz.md): Height of the object FindItem selected. - [#Followers](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/followers.md): How many follower slots your pets and summons use. - [#FR](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/fr.md): Your character’s fire resistance. - [#Gold](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/gold.md): Gold your character carries, as the status window shows it. - [#GumpArt](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/gumpart.md): Graphic of the selected gump window, as an ID: the backpack is YE. - [#GumpCnt](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/gumpcnt.md): Number of gump windows ScanGumps found. - [#GumpIndex](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/gumpindex.md): Selects which gump the #Gump… variables describe; 1 is the window in front. - [#GumpKind](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/gumpkind.md): Kind of the selected gump window, the same code as #ContKind. - [#GumpMin](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/gumpmin.md): Whether the selected gump window is minimized: #true or #false. - [#GumpName](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/gumpname.md): The client's own name for the selected gump window, e.g. container_gump. - [#GumpObjID](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/gumpobjid.md): ID of the object the selected gump window belongs to: a container or a character. - [#GumpPosX](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/gumpposx.md): X position of the selected gump window, in pixels. - [#GumpPosY](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/gumpposy.md): Y position of the selected gump window, in pixels. - [#GumpReply](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/gumpreply.md): The last answer exevent GumpReply sent, type ID first, ready to send again. - [#GumpReplyCnt](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/gumpreplycnt.md): How many gump answers were recorded: clicks by hand and exevent GumpReply. Goes up by one with each. - [#GumpReplyRes](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/gumpreplyres.md): What the last exevent GumpReply did: sent, nogump or error. - [#GumpSerial](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/gumpserial.md): Serial of the selected server gump, new each time the server opens it. - [#GumpSizeX](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/gumpsizex.md): Width of the selected gump window, in pixels. - [#GumpSizeY](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/gumpsizey.md): Height of the selected gump window, in pixels. - [#GumpTypeID](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/gumptypeid.md): Type ID of the selected server gump: which gump it is, the same every time. - [#Hits](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/hits.md): Your character’s current hit points. - [#Int](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/int.md): Your character’s intelligence. - [#JColor](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/jcolor.md): Colour of the journal line read by the last scanjournal. - [#JFound](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/jfound.md): Running number of the journal line the last findjournal found, or 0 if it found none. - [#JIndex](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/jindex.md): Running number of the newest journal line; follow it to read every new line once. - [#Journal](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/journal.md): Journal line read by the last scanjournal. - [#LHandID](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/lhandid.md): ID of the item for the left hand; set it, then event Macro 24 1 arms it. - [#LLiftedID](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/lliftedid.md): ID of the object last picked up (dragged). - [#LLiftedKind](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/lliftedkind.md): 1 while something hangs on the cursor, 0 otherwise. - [#LLiftedType](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/lliftedtype.md): Type of the object last picked up (dragged). - [#LObjectID](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/lobjectid.md): ID of the last object used; set it, then event Macro 17 uses that object. - [#LObjectType](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/lobjecttype.md): Type of the last object used. - [#LPC](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/lpc.md): Lines run per 50 ms cycle; 10 by default. - [#LShard](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/lshard.md): Number of the last shard chosen; set it before logging in to preselect a shard. - [#LSkill](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/lskill.md): Number of the last skill used; set it, then event Macro 14 uses that skill. - [#LSpell](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/lspell.md): Number of the last spell cast; set it, then event Macro 16 casts that spell. - [#LTargetID](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/ltargetid.md): ID of the last object targeted; set it, then event Macro 22 targets that object. - [#LTargetKind](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/ltargetkind.md): What the last target was: 1 object, 2 ground, 3 resource such as a tree or water. - [#LTargetTile](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/ltargettile.md): Map graphic of the tile last targeted; used for resources such as trees. - [#LTargetX](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/ltargetx.md): World X position of the last target; used when targeting the ground or a resource. - [#LTargetY](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/ltargety.md): World Y position of the last target; used when targeting the ground or a resource. - [#LTargetZ](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/ltargetz.md): World height of the last target; used when targeting the ground or a resource. - [#Luck](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/luck.md): Your character’s luck. - [#Mana](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/mana.md): Your character’s current mana. - [#MaxDmg](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/maxdmg.md): Most damage of the weapon in your hands. - [#MaxFol](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/maxfol.md): How many follower slots your character has. - [#MaxHits](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/maxhits.md): The most hit points your character can have. - [#MaxMana](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/maxmana.md): The most mana your character can have. - [#MaxStam](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/maxstam.md): The most stamina your character can have. - [#MaxStats](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/maxstats.md): Your character’s stat cap: the most strength, dexterity and intelligence together. - [#MaxWeight](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/maxweight.md): Most weight your character can carry, calculated from strength: 3.5 × Str + 40. - [#MenuButton](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/menubutton.md): Name of the last menu button clicked, in capitals; CLOSED when the menu window was closed. - [#MenuRes](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/menures.md): Value read by the last menu Get or menu GetNum. - [#MinDmg](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/mindmg.md): Least damage of the weapon in your hands. - [#MountID](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/mountid.md): ID of the mount item your character rides, or N/A while it is on foot. - [#MountType](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/mounttype.md): Type of the mount item your character rides, or N/A while it is on foot. - [#MoveRes](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/moveres.md): How the last moveitem ended: ok, left, refused, nolift, noitem, nodest, held or error. - [#NextCPosX](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/nextcposx.md): X position where the next container will open. - [#NextCPosY](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/nextcposy.md): Y position where the next container will open. - [#NSName](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/nsname.md): Name of the current namespace; std when the script starts. - [#NSType](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/nstype.md): Whether the current namespace is local or global. - [#Opts](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/opts.md): Active options: always SYS, EXEC and SEND, plus DMC when Don’t Move Cursor is on. - [#OSVer](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/osver.md): Windows version, as platform_major_minor. - [#PathCnt](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/pathcnt.md): Number of steps of the route the last path find planned. - [#PathDir](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/pathdir.md): Direction of a step of the planned route, 0 (north) to 7, or 8 for a link. - [#PathState](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/pathstate.md): How the last path command went: ok, how a walk ended, a reason no route was found, or the error. - [#PathX](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/pathx.md): X position of a step of the planned route: the last one after path find, step n after path get. - [#PathY](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/pathy.md): Y position of a step of the planned route: the last one after path find, step n after path get. - [#PathZ](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/pathz.md): Height of a step of the planned route, or where path can found a place to stand. - [#PixCol](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/pixcol.md): Colour of the pixel last read by savepix, a $BBGGRR number. - [#PR](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/pr.md): Your character’s poison resistance. - [#Property](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/property.md): Property tooltip read by the last event Property; lines end with $. - [#Random](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/random.md): A new random number from 0 to 999 each time it is read. - [#ReforgedVer](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/reforgedver.md): Build version of EasyUO Reforged, such as 26.10.22.3c144de. - [#Result](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/result.md): Value given to the last return; N/A when it had none. - [#RHandID](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/rhandid.md): ID of the item for the right hand; set it, then event Macro 24 2 arms it. - [#SCnt](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/scnt.md): A seconds counter; set it to start counting from that value. - [#SCnt2](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/scnt2.md): A tenths-of-a-second counter; set it to start counting from that value. - [#SendHeader](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/sendheader.md): Extra HTTP header lines for send; end each line with $. - [#Sex](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/sex.md): Your character’s sex: 0 male, 1 female. - [#Shard](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/shard.md): Name of the shard the client is logged in to. - [#ShopCnt](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/shopcnt.md): Number of entries in the shop gump. - [#ShopCurPos](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/shopcurpos.md): Position of the shop entry shown at the top, counting from 1. - [#ShopItemID](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/shopitemid.md): ID of the shop entry’s item, for setshopitem. - [#ShopItemMax](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/shopitemmax.md): How many of the shop entry’s item the vendor has. - [#ShopItemName](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/shopitemname.md): Name of the shop entry shown at the top of the shop gump. - [#ShopItemPrice](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/shopitemprice.md): Price of the shop entry shown at the top of the shop gump. - [#ShopItemType](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/shopitemtype.md): Type of the shop entry’s item. - [#Skill](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/skill.md): Value of the skill chosen with chooseskill, in tenths (700 = 70.0). - [#SkillCap](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/skillcap.md): Cap of the skill chosen with chooseskill, in tenths. - [#SkillLock](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/skilllock.md): Lock of the skill chosen with chooseskill: up, down or locked. - [#SMC](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/smc.md): A semicolon, which could not be typed directly because ; starts a comment. - [#SPC](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/spc.md): A space; glue it between words with commas. - [#SqlChanges](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/sqlchanges.md): Rows changed by the last sql exec or query, or variables handled by save / load / delete. - [#SqlCnt](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/sqlcnt.md): Number of rows the last sql query returned. - [#SqlLastID](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/sqllastid.md): Rowid of the last row inserted on this connection. - [#SqlRes](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/sqlres.md): OK after a successful sql command, otherwise the error text. - [#Stamina](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/stamina.md): Your character’s current stamina. - [#Str](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/str.md): Your character’s strength. - [#StrRes](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/strres.md): Result of the last str command; also set by getuotitle. - [#SysMsg](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/sysmsg.md): The last system message the client showed. - [#SysMsgCol](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/sysmsgcol.md): Colour that event SysMessage writes in. - [#SysTime](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/systime.md): Milliseconds since 1 January 1980 UTC; for timing. - [#TargCurs](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/targcurs.md): 1 while a target cursor is showing; set it to 1 to let the user pick a target. - [#TileCnt](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/tilecnt.md): Number of tiles at a map position, from tile cnt. - [#TileFlags](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/tileflags.md): Properties of the tile read by tile get, as names joined by _. - [#TileName](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/tilename.md): Name of the tile read by tile get, such as tree or water. - [#TileType](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/tiletype.md): Graphic number of the tile read by tile get. - [#TileZ](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/tilez.md): Height of the tile read by tile get. - [#Time](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/time.md): Local time of the computer as hhmmss, 24-hour clock. - [#TP](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/tp.md): Your character’s tithing points. - [#True](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/true.md): The value true: -1. - [#WaitRes](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/waitres.md): How the last waitfor ended: #true if its condition was met, #false if the time ran out. - [#Weight](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/variables/weight.md): Weight your character carries, in stones. ## Guides - [Beginner's tutorial](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/guides/beginners-tutorial.md): A first walk through writing and running EasyUO scripts: speaking, walking and opening your backpack. - [Containers and gumps](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/guides/containers-and-gumps.md): Gump names and the #ContName, #ContType and #ContSize values of the client's screens and containers. - [Script speed and #LPC](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/guides/execution-speed.md): How fast a script runs: cycles of #LPC lines, why GOTO is not faster than GOSUB, and how to speed scripts up. - [Introduction](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/guides/introduction.md): What EasyUO is, what scripts can do with it, and where to start. - [SQL or * variables?](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/guides/sql-or-persistent-variables.md): Two ways to keep data between runs: when * variables are all you need, and when the SQL command is worth it, with examples. - [Using SQL](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/guides/sql.md): How sql statements are written, how variables go in and come back out, saving variables, several scripts at once, and what SQLite build is used. - [Stat and skill gains on RunUO shards](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/guides/stat-and-skill-gains.md): How stat and skill gains work on RunUO-based free shards, and what that means for training scripts. - [#True and #False](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/guides/true-and-false.md): How to use #True and #False as on/off flags, and why if %flag only works with #True. ## Using EasyUO Reforged - [Editing and debugging](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/guide/debugging.md): Breakpoints, conditional breakpoints, stepping, run to cursor, the call stack, VarDump and the editor's autocomplete, code folding, Format Script, Ctrl+click to a sub or label and Find and Replace. - [Check and run scripts with EUOCli](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/guide/euocli.md): EUOCli is EasyUO Reforged from the command line: check reports what EasyUO would skip or misread in a script, run runs a script and prints what happens, vars and clients read the game, docs looks a command up, and mcp and init give all of it to an AI agent. - [Your first script](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/guide/first-script.md): The EasyUO Reforged window, running and stopping a script, working with several clients, and settings worth knowing. - [Install](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/guide/install.md): What you need to run EasyUO Reforged, where to download it, and what to expect from SmartScreen and antivirus software. - [Troubleshooting](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/guide/troubleshooting.md): What to do when the client is not found or freezes, and how to report a bug so it can be fixed. ## What Reforged adds and changes - [Known limitations](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/reforged/known-limitations.md): What is verified, what is not, and the known gaps of EasyUO Reforged. - [What's new in Reforged](https://ilpersi.github.io/EasyUOReforged/agent/euo-script/reference/reforged/whats-new.md): Everything EasyUO Reforged adds to EasyUO 1.5 or does differently, with links to the details.