Variables
Every built-in #variable. Most are read-only and describe the client (your character, the last
target, the last FindItem search…); a few can be set to change what the script or the client
does. Type in the box to filter, pick a category, or show only read/write variables. Press
Ctrl K anywhere to search the whole site.
| Name | Description | Category |
|---|---|---|
#AR | Your character’s physical resistance (armour rating before Age of Shadows). | Status |
#BackpackID | ID of your character’s backpack. | Character |
#BuffBarOpennew | #true when the client’s buff bar window is open, #false when it is closed. | Buffs |
#BuffClilocnew | Cliloc number of the selected buff’s title. | Buffs |
#BuffCntnew | Number of buffs on the buff bar, counted live. | Buffs |
#BuffDescnew | Second line of the selected buff’s tooltip. | Buffs |
#BuffIDnew | Icon ID of the selected buff, a plain number (Bless is 30018). | Buffs |
#BuffIndexnew | Selects which buff the #Buff… variables describe; 1 is the first. | Buffs |
#BuffNamenew | Title of the selected buff, as its tooltip shows it. | Buffs |
#BuffTimenew | Seconds left on the selected buff; -1 when it has no timer. | Buffs |
#CharDir | Direction your character is facing, 0 (north) to 7. | Character |
#CharGhost | yes when your character is dead (a ghost), no otherwise. | Character |
#CharID | ID of your character. | Character |
#CharName | Your character’s name. | Status |
#CharPosX | Your character’s X position in the world (west–east). | Character |
#CharPosY | Your character’s Y position in the world (north–south). | Character |
#CharPosZ | Your character’s height (Z coordinate). | Character |
#CharStatus | Letters for your character’s states: frozen, female, flying or poisoned, yellow health bar, war mode, hidden. | Character |
#CharType | Body type of your character, as a Sys26 type. | Character |
#CliCnt | Number of supported UO clients running. | Client |
#CliLang | Language code of the client, such as ENU. | Client |
#CliLeft | X position of the game area inside the client window; set it to move the game area. | Client |
#CliLogged | 1 when a character is logged in, 0 at the login screens. | Client |
#CliNr | Which of the running clients the script drives, counting from 1. | Client |
#CliTitle | Title of the client window; set it to rename the window. | Client |
#CliTop | Y position of the game area inside the client window; set it to move the game area. | Client |
#CliVer | Version of the attached client, such as 7.0.117.1. | Client |
#CliXRes | Width of the game area in pixels; set it to resize the game area. | Client |
#CliYRes | Height of the game area in pixels; set it to resize the game area. | Client |
#ContHP | Health in percent of the creature whose health bar is the top gump. | Container |
#ContID | ID of the item a container gump on top belongs to. | Container |
#ContKind | Kind of the gump on top, as a code; tells crafting menus, runebooks and more apart. | Container |
#ContName | Name of the gump on top, such as container_gump or paperdoll_gump. | Container |
#ContPosX | X position of the gump on top; set it to move the gump. | Container |
#ContPosY | Y position of the gump on top; set it to move the gump. | Container |
#ContSize | Width and height of the gump on top, as width_height. | Container |
#ContSizeX | Width of the top gump in pixels. | Container |
#ContSizeY | Height of the top gump in pixels. | Container |
#ContType | Type of the item a container gump on top belongs to. | Container |
#CR | Your character’s cold resistance. | Status |
#CurPath | Folder of EasyUOReforged.exe, ending with a backslash. | Miscellaneous |
#CursKind | Facet you are on: 0 Felucca, 1 Trammel, 2 Ilshenar, 3 Malas, 4 Tokuno, 5 Ter Mur. | Extended |
#CursorX | Mouse cursor X position relative to the game area. | Miscellaneous |
#CursorY | Mouse cursor Y position relative to the game area. | Miscellaneous |
#Date | Local date of the computer as yymmdd. | Miscellaneous |
#Dex | Your character’s dexterity. | Status |
#DispRes | Button the user pressed in the last display box: Ok, Yes, No or Cancel. | Miscellaneous |
#DOT | A full stop, which could not be typed alone because . joins words. | Constants |
#EnemyHits | Health in percent of the enemy in #EnemyID. | Combat |
#EnemyID | ID of the enemy whose health bar the client shows, or N/A. | Combat |
#ER | Your character’s energy resistance. | Status |
#EUOVer | Always 1_50_00, the EasyUO version Reforged is ported from; see #ReforgedVer. | Miscellaneous |
#False | The value false: 0. | Constants |
#FindBagID | ID of the container holding the object FindItem selected. | FindItem |
#FindCnt | How many objects the last FindItem found. | FindItem |
#FindCol | Colour (hue) of the object FindItem selected. | FindItem |
#FindDist | Distance in tiles to the object FindItem selected, for objects on the ground. | FindItem |
#FindID | ID of the object FindItem selected, or X when nothing was found. | FindItem |
#FindIndex | Selects which FindItem match the #Find… variables describe, without searching again. | FindItem |
#FindKind | Where the object FindItem selected is: 0 in a container, 1 on the ground, -1 not found. | FindItem |
#FindLayernew | Layer a character wears the object FindItem selected in, or N/A when nobody wears it. | FindItem |
#FindMod | Offset added to #FindX and #FindY for objects in containers, written x_y. | FindItem |
#FindRep | Notoriety of the character FindItem selected: 1 innocent to 7 invulnerable. | FindItem |
#FindStack | Number of items in the stack FindItem selected; 0 for characters. | FindItem |
#FindType | Type of the object FindItem selected. | FindItem |
#FindX | X position of the object FindItem selected: world position on the ground, screen position in a container. | FindItem |
#FindY | Y position of the object FindItem selected: world position on the ground, screen position in a container. | FindItem |
#FindZ | Height of the object FindItem selected. | FindItem |
#Followers | How many follower slots your pets and summons use. | Status |
#FR | Your character’s fire resistance. | Status |
#Gold | Gold your character carries, as the status window shows it. | Status |
#Hits | Your character’s current hit points. | Status |
#Int | Your character’s intelligence. | Status |
#JColor | Colour of the journal line read by the last scanjournal. | Extended |
#JIndex | Running number of the newest journal line; follow it to read every new line once. | Extended |
#Journal | Journal line read by the last scanjournal. | Extended |
#LHandID | ID of the item for the left hand; set it, then event Macro 24 1 arms it. | Combat |
#LLiftedID | ID of the object last picked up (dragged). | Last action |
#LLiftedKind | 1 while something hangs on the cursor, 0 otherwise. | Last action |
#LLiftedType | Type of the object last picked up (dragged). | Last action |
#LObjectID | ID of the last object used; set it, then event Macro 17 uses that object. | Last action |
#LObjectType | Type of the last object used. | Last action |
#LPC | Lines run per 50 ms cycle; 10 by default. | Result |
#LShard | Number of the last shard chosen; set it before logging in to preselect a shard. | Miscellaneous |
#LSkill | Number of the last skill used; set it, then event Macro 14 uses that skill. | Last action |
#LSpell | Number of the last spell cast; set it, then event Macro 16 casts that spell. | Last action |
#LTargetID | ID of the last object targeted; set it, then event Macro 22 targets that object. | Last action |
#LTargetKind | What the last target was: 1 object, 2 ground, 3 resource such as a tree or water. | Last action |
#LTargetTile | Map graphic of the tile last targeted; used for resources such as trees. | Last action |
#LTargetX | World X position of the last target; used when targeting the ground or a resource. | Last action |
#LTargetY | World Y position of the last target; used when targeting the ground or a resource. | Last action |
#LTargetZ | World height of the last target; used when targeting the ground or a resource. | Last action |
#Luck | Your character’s luck. | Status |
#Mana | Your character’s current mana. | Status |
#MaxDmg | Most damage of the weapon in your hands. | Status |
#MaxFol | How many follower slots your character has. | Status |
#MaxHits | The most hit points your character can have. | Status |
#MaxMana | The most mana your character can have. | Status |
#MaxStam | The most stamina your character can have. | Status |
#MaxStats | Your character’s stat cap: the most strength, dexterity and intelligence together. | Status |
#MaxWeight | Most weight your character can carry, calculated from strength: 3.5 × Str + 40. | Status |
#MenuButton | Name of the last menu button clicked, in capitals; CLOSED when the menu window was closed. | Result |
#MenuRes | Value read by the last menu Get or menu GetNum. | Result |
#MinDmg | Least damage of the weapon in your hands. | Status |
#MountIDnew | ID of the mount item your character rides, or N/A while it is on foot. | Character |
#MountTypenew | Type of the mount item your character rides, or N/A while it is on foot. | Character |
#NextCPosX | X position where the next gump will open. | Container |
#NextCPosY | Y position where the next gump will open. | Container |
#NSName | Name of the current namespace; std when the script starts. | Namespace |
#NSType | Whether the current namespace is local or global. | Namespace |
#Opts | Active options: always SYS, EXEC and SEND, plus DMC when Don’t Move Cursor is on. | Result |
#OSVer | Windows version, as platform_major_minor. | Miscellaneous |
#PathCntnew | Number of steps of the route the last path find planned. | Pathfinding |
#PathDirnew | Direction of a step of the planned route, 0 (north) to 7, or 8 for a link. | Pathfinding |
#PathStatenew | How the last path command went: ok, how a walk ended, a reason no route was found, or the error. | Pathfinding |
#PathXnew | X position of a step of the planned route: the last one after path find, step n after path get. | Pathfinding |
#PathYnew | Y position of a step of the planned route: the last one after path find, step n after path get. | Pathfinding |
#PathZnew | Height of a step of the planned route, or where path can found a place to stand. | Pathfinding |
#PixCol | Colour of the pixel last read by savepix, a $BBGGRR number. | Miscellaneous |
#PR | Your character’s poison resistance. | Status |
#Property | Property tooltip read by the last event Property; lines end with $. | Result |
#Random | A new random number from 0 to 999 each time it is read. | Miscellaneous |
#ReforgedVernew | Build version of EasyUO Reforged, such as 26.10.22.3c144de. | Miscellaneous |
#Result | Value given to the last return; N/A when it had none. | Result |
#RHandID | ID of the item for the right hand; set it, then event Macro 24 2 arms it. | Combat |
#SCnt | A seconds counter; set it to start counting from that value. | Miscellaneous |
#SCnt2 | A tenths-of-a-second counter; set it to start counting from that value. | Miscellaneous |
#SendHeader | Extra HTTP header lines for send; end each line with $. | Result |
#Sex | Your character’s sex: 0 male, 1 female. | Status |
#Shard | Name of the shard the client is logged in to. | Miscellaneous |
#ShopCnt | Number of entries in the shop gump. | Shop |
#ShopCurPos | Position of the shop entry shown at the top, counting from 1. | Shop |
#ShopItemID | ID of the shop entry’s item, for setshopitem. | Shop |
#ShopItemMax | How many of the shop entry’s item the vendor has. | Shop |
#ShopItemName | Name of the shop entry shown at the top of the shop gump. | Shop |
#ShopItemPrice | Price of the shop entry shown at the top of the shop gump. | Shop |
#ShopItemType | Type of the shop entry’s item. | Shop |
#Skill | Value of the skill chosen with chooseskill, in tenths (700 = 70.0). | Extended |
#SkillCap | Cap of the skill chosen with chooseskill, in tenths. | Extended |
#SkillLock | Lock of the skill chosen with chooseskill: up, down or locked. | Extended |
#SMC | A semicolon, which could not be typed directly because ; starts a comment. | Constants |
#SPC | A space; glue it between words with commas. | Constants |
#SqlChangesnew | Rows changed by the last sql exec or query, or variables handled by save / load / delete. | SQL |
#SqlCntnew | Number of rows the last sql query returned. | SQL |
#SqlLastIDnew | Rowid of the last row inserted on this connection. | SQL |
#SqlResnew | OK after a successful sql command, otherwise the error text. | SQL |
#Stamina | Your character’s current stamina. | Status |
#Str | Your character’s strength. | Status |
#StrRes | Result of the last str command; also set by getuotitle. | Result |
#SysMsg | The last system message the client showed. | Extended |
#SysMsgCol | Colour that event SysMessage writes in. | Extended |
#SysTime | Milliseconds since 1 January 1980 UTC; for timing. | Miscellaneous |
#TargCurs | 1 while a target cursor is showing; set it to 1 to let the user pick a target. | Extended |
#TileCnt | Number of tiles at a map position, from tile cnt. | Tile |
#TileFlags | Properties of the tile read by tile get, as names joined by _. | Tile |
#TileName | Name of the tile read by tile get, such as tree or water. | Tile |
#TileType | Graphic number of the tile read by tile get. | Tile |
#TileZ | Height of the tile read by tile get. | Tile |
#Time | Local time of the computer as hhmmss, 24-hour clock. | Miscellaneous |
#TP | Your character’s tithing points. | Status |
#True | The value true: -1. | Constants |
#Weight | Weight your character carries, in stones. | Status |