Skip to content

Commands

Every command a script can use. Type in the box to filter by name or description, pick a category, or show only the commands that are new or changed in Reforged. Press Ctrl K anywhere to search the whole site.

NameDescriptionCategory
BreakLeaves the loop it is in and goes on after the loop.Flow control
CallRuns another script file, then comes back when it exits.Flow control
ChooseSkillSelects the skill that #Skill, #SkillCap and #SkillLock report.Client
ClickClicks the mouse at a position in the client window.Client
CmpPixRuns a line or block depending on whether a saved pixel still has the same colour.Client
ContinueSkips the rest of the loop body and goes on with the next round of the loop.Flow control
ContPosMoves the top gump to a position on the screen.Client
DeleteJournalHides the journal lines read so far from later scanjournal calls.Client
DeleteVarobsoleteObsolete: empties a % variable; set %x with no value does the same.Obsolete
DisplayShows a message box and waits for the user; the answer goes to #DispRes.Miscellaneous
ElseRuns a line or a block when the if before it was false.Flow control
EventMakes the client do something with its own internal functions: macros, dragging, messages and more.Event
event ContTopBrings a gump to the front, counted from the top gump.Event
event DragPicks up an item, as if you dragged it with the mouse.Event
event ExMsgShows a message above an object, in a chosen font and colour.Event
event MacroRuns one of the client's built-in macros: speech, gumps, skills, spells, targeting, dress sets, potions.Event
event PathFindWalks to a nearby spot, letting the client find a way around obstacles.Event
event PropertyReads the property tooltip of an item or character into #Property.Event
event SkillLockSets the lock of a skill, or of all skills; the same as exevent SkillLock.Event
event SleepNot implemented in EasyUO Reforged: accepted, but does nothing.Event
event StatBarOpens the health bar of a character by its ID.Event
event SysMessageShows a system message in the client; only you see it.Event
ExecuteOpens a program, file or web address, as if you had double-clicked it.Miscellaneous
ExEventSends actions straight to the server as packets: drag, drop, context menus, locks and more.ExEvent
exevent DragPicks up an item, or a given amount of a stack, through the server.ExEvent
exevent DropCDrops the held item into a container, or onto a stack to combine them.ExEvent
exevent DropGDrops the held item on the ground at a world position.ExEvent
exevent DropPDPuts the held item on: drops it on your paperdoll.ExEvent
exevent EquipAsks the server to equip one or more items by ID, in one request.ExEvent
exevent PopUpOpens the context menu of an item or character.ExEvent
exevent RenamePetRenames one of your pets.ExEvent
exevent SkillLockSets the lock of a skill, or of all skills.ExEvent
exevent StatLockSets the lock of strength, dexterity or intelligence.ExEvent
ExitEnds a called script, or starts the main script over from the top.Flow control
FindItemFinds items and characters by type or ID and fills the #Find… variables with the first match.Client
ForRepeats a line or block while a variable counts from one number to another.Flow control
GetShopInfoReads the entry shown at the top of the shop gump into the #Shop… variables.Client
GetUOTitlePuts the title of the client window in #StrRes.Client
GosubRuns a sub and comes back when it returns, optionally passing parameters.Flow control
GotoJumps to a label; the nearest label with that name wins.Flow control
HaltStops the script.Flow control
HideItemHides an item from your screen; nothing changes on the server.Client
IfRuns a line or a block only when a condition is true.Flow control
IgnoreContMakes the #Cont… variables skip a gump, by name or kind; reset empties the list.Client
IgnoreItemMakes FindItem skip items by ID or type; the same call again un-ignores them.Client
InitEventsobsoleteObsolete: event commands set themselves up; the line is ignored.Obsolete
KeyPresses a key in the client, optionally with Ctrl, Alt or Shift.Client
LabelMarks a line that goto can jump to.Flow control
LinesPerCycleSets how many lines the script runs before each 50 ms pause; the same as set #LPC.Miscellaneous
MenuBuilds a window of buttons, text, fields, lists and images that a script can show and read.Menu
menu ActivateGives a control the keyboard focus.Menu
menu ButtonPlaces a button in the menu window; a click puts its name in #MenuButton.Menu
menu CheckPlaces a check box in the menu window.Menu
menu ClearRemoves every control from the menu window and resets the font settings.Menu
menu ComboPlaces a drop-down list in the menu window, and fills or selects its entries.Menu
menu DeleteRemoves one control from the menu window.Menu
menu EditPlaces a one-line text field in the menu window.Menu
menu Font AlignSets how the text of labels and check boxes created after it is aligned.Menu
menu Font BGColorSets the background colour of the controls created after it.Menu
menu Font ColorSets the text colour of the controls created after it.Menu
menu Font NameSets the font of the controls created after it.Menu
menu Font SizeSets the font size of the controls created after it.Menu
menu Font StyleSets bold, italic, underline or strikeout for the controls created after it.Menu
menu Font TransparentDraws the labels created after it without a background.Menu
menu FormCreates another menu window, hidden, that the controls created after it go into.Menu
menu GetReads the value of a control into #MenuRes.Menu
menu GetDefReads one of the defaults new menu controls are created with into #MenuRes.Menu
menu GetNumReads a control into #MenuRes, with a default when it is not a number.Menu
menu GetPropReads a property of a menu control or window, such as its position, text or colour, into #MenuRes.Menu
menu HideHides the menu window, as if it had been closed.Menu
menu HideEUOMinimises the EasyUO Reforged window and shows only the menu window.Menu
menu Image CreatePlaces an empty, transparent image in the menu window to draw in.Menu
menu Image EllipseDraws an ellipse or circle in an image, outlined or filled.Menu
menu Image FileDraws a picture file into an image.Menu
menu Image FloodFillFills an area of one colour in an image with another, like a paint bucket.Menu
menu Image LineDraws a line in an image.Menu
menu Image PixPaints one pixel of an image.Menu
menu Image PixLinePaints a row of pixels of an image from a compact text code.Menu
menu Image PosMoves an image, and optionally resizes it, stretching what is drawn in it.Menu
menu Image RectangleDraws a rectangle in an image, outlined or filled.Menu
menu ListPlaces a list box in the menu window, and fills or selects its entries.Menu
menu MemonewCreates a multi-line, scrollable text field in the EasyUO menu window.Menu
menu PanelCreates a borderless area that holds other controls; the controls created after it go into it.Menu
menu PopDefBrings back defaults for new menu controls saved by menu PushDef.Menu
menu PushDefSaves a copy of the current defaults for new menu controls, for menu PopDef to bring back.Menu
menu RadioCreates a radio button; checking one unchecks the others in the same window or panel.Menu
menu Reforge IncludeCallnewMakes Reforged's choice of MENU system look at the files the script calls, too.Menu
menu Reforge ModenewChooses which MENU system the script runs under: EasyUO 1.5's or 1.6's.Menu
menu SetChanges the text or state of a control.Menu
menu SetDefChanges one of the defaults new menu controls are created with, such as the window or panel they go into.Menu
menu SetPropChanges a property of a menu control or window: show or hide it, move it, recolour it, give it a tooltip.Menu
menu ShapeDraws a rectangle, circle or other shape in the menu window.Menu
menu ShowShows the menu window, optionally at a position on the screen.Menu
menu TextPlaces a label in the menu window; $ starts a new line.Menu
menu Window ColorSets the background colour of the menu window.Menu
menu Window SizeSets the size of the menu window.Menu
menu Window TitleSets the title of the menu window.Menu
menu Window TransparentMakes the whole menu window see-through, from 0 to 100 percent opaque.Menu
MoveWalks the character towards a position with the arrow keys; no pathfinding.Client
MsgTypes text into the client as if on the keyboard; $ presses Enter.Client
NamespaceSwitches the set of ! variables a script uses: private to the script, or shared with other scripts.Namespace
namespace clearDeletes every ! variable of the current namespace.Namespace
namespace copyCopies variables matching a pattern between the current namespace and another.Namespace
namespace globalMakes a global namespace, shared with every running script, the current one.Namespace
namespace localMakes a local namespace, private to this script, the current one.Namespace
namespace popGoes back to the namespace last remembered with namespace push.Namespace
namespace pushRemembers the current namespace, to come back to it with namespace pop.Namespace
NextCPosSets where the next gump will open.Client
OnHotKeyRuns a line or block only if a key is held down at that moment.Client
PathnewPlans a walking route across the map, around walls, water and buildings, with stairs and bridges, and walks it.Pathfinding
path AvoidnewMarks an area routes should go around if they can: a guarded zone, a spawn.Pathfinding
path BlocknewMarks a place or a rectangle that routes must never use.Pathfinding
path CannewSays whether a character can stand at a place, and at what height.Pathfinding
path ChecknewAsks the client itself whether the character can take a step, and at what height it lands.Pathfinding
path ClearnewForgets the path blocks, avoid areas, links and refused places, or one kind of them.Pathfinding
path FindnewPlans a walking route from your character to a place on the same facet.Pathfinding
path FromnewPlans routes from another place instead of your character's position.Pathfinding
path GetnewLoads one step of the last planned route into #PathX, #PathY, #PathZ and #PathDir.Pathfinding
path GonewPlans a route to a place and walks it, waiting until the character gets there.Pathfinding
path LinknewAdds a teleporter, gate or ladder that routes may use: a one-way jump between two places.Pathfinding
path SetnewChanges an option of the pathfinder: accuracy, search limits, how to walk, doors, creatures and more.Pathfinding
path StepnewMoves a walk on and returns at once, so the script can do other things while the character walks.Pathfinding
path StopnewEnds the walk that path step is moving on.Pathfinding
path UnblocknewRemoves the path blocks that cover a place or a rectangle.Pathfinding
path WalknewWalks the route the last path find planned, waiting until the character gets there.Pathfinding
PausePauses the script until Play is pressed.Flow control
PlayCDobsoleteObsolete: a leftover from early EasyUO versions that does nothing.Obsolete
Repeat … UntilRepeats lines until a condition is true, testing it after each round.Flow control
ReturnEnds a sub and goes back to the line after its gosub, optionally with a value.Flow control
SavePixReads the colour of a pixel into #PixCol and a numbered slot for cmppix.Client
ScanBuffsnewReads the client's buff bar into the #Buff… variables, optionally only one buff icon.Client
ScanJournalReads one journal line into #Journal and #JColor.Client
SendSends an HTTP POST request and runs the reply as an EasyUO script.Miscellaneous
SetGives a variable a value, or the result of an expression.Miscellaneous
SetShopItemSets how many of an item to buy in the shop’s buy list.Client
SetUOTitleSets the title of the client window.Client
ShutDownShuts down and powers off the computer.Miscellaneous
SleepPauses the script for a number of milliseconds.Flow control
SoundPlays a .wav file, or the Windows default beep.Miscellaneous
SQLnewKeeps data in an SQLite database file: raw SQL, or a quick save and load of variables.Data (SQL)
sql ClosenewCloses the database; an open transaction is rolled back.Data (SQL)
sql DeletenewRemoves saved variables from the database.Data (SQL)
sql ExecnewRuns one SQL statement and discards any rows it returns.Data (SQL)
sql LoadnewRestores % and ! variables saved with sql save.Data (SQL)
sql OpennewOpens an SQLite database file, creating it if needed.Data (SQL)
sql QuerynewRuns one SQL statement, keeps its rows and loads row 1 into variables.Data (SQL)
sql RownewLoads one row of the last sql query into variables.Data (SQL)
sql SavenewStores the values of % and ! variables in the database.Data (SQL)
StopStops the script; exactly the same as halt.Flow control
StopCDobsoleteObsolete: a leftover from early EasyUO versions that does nothing.Obsolete
StrWorks on a piece of text (length, position, part, case, insert, delete, count); the result goes to #StrRes.Miscellaneous
SubStarts a named block of lines that gosub can call.Flow control
TargetWaits until a target cursor appears, or the timeout passes.Client
TerminateCloses the client, or the EasyUO Reforged window.Client
TileReads the map: how many tiles are at a spot, and the type, height, name and flags of each.Miscellaneous
UOXLStarts another client, or switches the script to the next running one.Client
WaitPauses the script for a time, in 50 ms ticks or seconds, plus an optional random extra.Flow control
WhileRepeats a line or block as long as a condition is true, testing it first.Flow control