text/microsoft-resx
2.0
System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
#To move a type to another container...
MoveType(0x170f, "backpack", "bank")
#Destination can be the ground by specifying destination container to -1 and specifying the coordinates...
MoveType(0x170f, "backpack", -1, 1928, 2526, 0)
#Optional parameters exist for Hue and Amount, to move 10 maximum with the a Hue of 50...
MoveType(0x170f, "backpack", "bank", -1, -1, 0, 50, 10)
Clear weapon ability.
ClearAbility()
(Garoyle) Start flying if not already flying.
Fly()
Returns true if mobile is currently flying.
if Flying("self"):
(Garoyle) Stop flying if currently flying.
Land()
Set weapon ability, parameter "primary" / "secondary".
SetAbility("primary")
Attack mobile (parameter can be serial or alias).
Attack("last")
Applies a bandage to the player.
BandageSelf()
Clear hands, "left", "right", or "both"
ClearHands("both")
Clear UseOnce list.
ClearUseOnce()
Single click object (parameter can be serial or alias).
ClickObject("last")
Returns the item count for given container.
if Contents("backpack") > 120:
Request a context menu option.
ContextMenu(0x00aabbcc, 1)
Equip a specific item into a given layer. Use object inspector to determine layer value.
EquipItem("axe", "TwoHanded")
Send quick switch weapon packet (probably not supported on pre-AoS servers.
EquipLastWeapon()
Equip a specific type into a given layer. Use object inspector to determine layer value.
EquipType(0xff, "TwoHanded")
Feed a given alias or serial with graphic.
Feed("mount", 0xff)
Returns true and updates found alias if an item exists in the specified layer, option serial/alias for mobile to check.
if FindLayer("OneHanded"):
Returns true if the region of the target has the specified attribute.
if InRegion("Guarded", "self")
Retrieve an approximated ping with server. -1 on failure.
Ping()
Sends rename request.
Rename("mount", "Snoopy")
Display corpses and/or mobiles names (parameter "mobiles" or "corpses".
ShowNames("corpses")
Unmounts if mounted, or mounts if unmounted, will prompt for mount if no "mount" alias.
ToggleMounted()
Sends use (doubleclick) request for given object (parameter can be serial or alias).
UseObject("mount")
Use a specific item type (graphic) from your backpack, only once
UseOnce(0xff)
Sends use (doubleclick) request for given type, optional parameters of hue and container object (defaults to player backpack) (parameters can be serial or alias).
UseType(0xff)
Wait for container contents for given container.
WaitForContents("backpack", 5000)
Request or wait for a context menu option.
WaitForContext(0x00aabbcc, 1, 5000)
Returns the count of the given counter agent.
Counter("bm")
Dress all items in the specified dress agent.
Dress("Dress-1")
Adds all equipped items to a temporary list that isn't persisted on client close.
DressConfig()
Returns true if the Dress agent is currently dressing or undressing.
if Dressing():
Executes the named Organizer agent.
Organize("Organizer-1")
Returns true if currently running an organizer agent, or false if not.
if Organizing():
Undress all items in the specified dress agent.
Undress("Dress-1")
Returns true if alias serial can be found on screen, false if not.
if FindAlias("mount"):
Gets the value of the given alias name.
GetAlias("mount")
Prompt with an in-game target cursor to supply value for given alias name.
PromptAlias("mount")
Sets the value of the given alias name.
SetAlias("mount", 0x40000001)
Sets the value of the given alias name, alias is valid only in the current macro.
SetMacroAlias("mount", 0x40000001)
Removes the alias name given.
UnsetAlias("mount")
Adds a mobile to friends list, will display target cursor if no serial/alias supplied.
AddFriend()
Returns true if the mobile's notoriety is Ally
if Criminal("mount"):
Check for a specific buff
if BuffExists("Blood Oath"):
Clears the ignore list.
ClearIgnoreList()
Amount comparison of item type inside a container.
CountType(0xff, "backpack")
Amount comparison of item or mobile type on the ground.
if CountGround(0xff, 0, 10) < 1:
Returns true if the mobile's notoriety is Criminal
if Criminal("mount"):
Returns true if given mobile is dead, false if not, if parameter is null, then returns the value from the player (parameter can be serial or alias).
if Dead("self"):
Returns the dexterity of the player
if Str() < 100:
Returns the given mobiles difference between max and current hits, if parameter is null, then returns the value from the player (parameter can be serial or alias).
if DiffHits("self") > 50:
Returns the difference between max weight and weight.
if DiffWeight() > 50:
Returns the Direction the entity is in relative to the player.
Run(DirectionTo("enemy"))
Returns the distance to the given entity.
if Distance("mount") < 4:
Returns true if the mobile's notoriety is Enemy
if Criminal("mount"):
Searches for entity by serial and sets found alias, defaults to ground if no source given.
FindObject("mount")
Searches for entity by graphic ID and sets found alias, defaults to ground if no source given.
FindType(0xff)
Returns the number of current followers as per status bar data.
if Followers() < 1:
Returns the gold value as per status bar data.
if Gold() < 2000:
Returns Item ID of given object (parameter can be serial or alias).
Graphic("mount")
Returns true if the mobile's notoriety is Attackable
if Criminal("mount"):
Returns true if given mobile is hidden, false if not, if parameter is null, then returns the value from the player (parameter can be serial or alias).
if Hidden("self"):
Returns the given mobiles hitpoints, if parameter is null, then returns the value from the player (parameter can be serial or alias).
hits = Hits("self")
Returns Hue of given object (parameter can be serial or alias).
if Hue("mount") == 0:
Ignores the given object from find commands
IgnoreObject("self")
Returns true if supplied mobile exists in the friends list.
if InFriendList("last"):
Returns true if the mobile's notoriety is Innocent
if Criminal("mount"):
Return the true if the given serial/alias is in party with you.
if InParty("friend"):
Check for range between your character and another mobile or an item
if InRange("enemy", 10):
Returns the intelligence of the player
if Str() < 100:
Returns true if the mobile's notoriety is Invulnerable
if Criminal("mount"):
Returns the luck value as per status bar data.
if Luck() < 800:
Returns the given mobiles mana, if parameter is null, then returns the value from the player (parameter can be serial or alias).
if Mana("self") < 25:
Returns the number of max followers as per status bar data.
if Followers() == MaxFollowers():
Returns the given mobiles max hitpoints, if parameter is null, then returns the value from the player (parameter can be serial or alias).
hits = MaxHits("self")
Returns the given mobiles max mana, if parameter is null, then returns the value from the player (parameter can be serial or alias).
mana = MaxMana("self")
Returns the given mobiles max stamina, if parameter is null, then returns the value from the player (parameter can be serial or alias).
stam = MaxStam("self")
Returns the max weight as per status bar data.
if MaxWeight() < 300:
Returns true if the specified mobile is mounted.
if Mounted("self"):
Move item to container (parameters can be serials or aliases).
MoveItem("source", "destination")
Move the given serial/alias to the specified x,y,z offset of the player, no amount specified or -1 will move the full stack.
MoveItemOffset("trashitem", 0, 1, 0, -1)
Move a type from source to destintion.
MoveType(0xff, "backpack", "bank")
Move the given type from the specified source container to the specified x,y,z offset of the player, no amount specified or -1 will move the full stack.
MoveTypeOffset(0xf0e, "backpack", 0, 1, 0, -1)
Returns true if the mobile's notoriety is Murderer
if Criminal("mount"):
Return the name of the given mobile.
if Name("self") == "Shmoo":
Returns true if the specified mobile is frozen.
if Paralyzed("self"):
Returns true if the specified mobile is poisoned.
if Poisoned("self"):
Removes a mobile from the friends list, will display target cursor if no serial/alias supplied.
RemoveFriend()
Check for a specific special move
if SpecialMoveExists("Death Strike"):
Returns the given mobiles stamina, if parameter is null, then returns the value from the player (parameter can be serial or alias).
if Stam("self") < 25:
Returns the strength of the player
if Str() < 100:
Returns the current players' tithing points.
if TithingPoints() < 1000:
Checks whether a mobile is in war mode.
if War("self"):
Returns the current weight as as per status bar data.
if Weight() > 300:
Returns X coordinate of given object (parameter can be serial or alias).
x = X("self")
Returns Y coordinate of given object (parameter can be serial or alias).
y = Y("self")
Returns true if the specified mobile is yellowhits.
if YellowHits("self"):
Returns Z coordinate of given object (parameter can be serial or alias).
y = Y("self")
Close a specified gump serial
CloseGump(0x454ddef)
Checks if a gump id exists or not.
if GumpExists(0xff):
Check for a text in gump.
if InGump(0xf00f, "lethal darts"):
Sends a button reply to server gump, parameters are gumpID and buttonID.
ReplyGump(0xff, 0)
Pauses until incoming gump packet is received, optional paramters of gump ID and timeout
WaitForGump(0xff, 5000)
Clear all journal texts.
ClearJournal()
Check for a text in journal, optional source name.
if InJournal("town guards", "system"):
Wait the given timeout for the journal text to appear.
if WaitForJournal("town guards", 5000, "system"):
Clear a list by name.
ClearList("list")
Create list with given name, if list already exists, it is overwritten.
CreateList("list")
Returns array of all entries in the list, for use with for loop etc.
GetList("list")
Checks whether a list contains a given element.
if InList("shmoo", 1):
Returns the number of entries in the list.
if List("list") < 5:
Returns true if list exist, or false if not.
if ListExists("list"):
Pushes a value to the end of the list, will create list if it doesn't exist.
PushList("list", 1)
Removes the list with the given name.
RemoveList("list")
Plays the given macro name.
PlayMacro("beep")
Stops the current macro.
Stop()
Enable and disable hotkeys.
Hotkeys()
Show object inspector for supplied serial / alias, will prompt for target if no parameter given.
Info("self")
Use a virtue by name.
InvokeVirtue("Honor")
Show a simple message box with a custom title and body.
MessageBox("title", "message")
Pauses execution for the given amount in milliseconds.
Pause(1000)
Returns true if there is a macro, use in background macros.
if Playing():
Play sound by id or system .wav file.
PlaySound("Bike Horn.wav")
Sends Resync request to server.
Resync()
Set quiet mode True/False, True reduces the number of messages macro commands emit.
SetQuietMode(True)
Send a text message.
SysMessage("hello")
Sets war mode status, parameter on, off, or toggle, defaults to toggle if no parameter given.
WarMode("on")
Sends given message to alliance chat.
AllyMsg("alert")
Cancels the current prompt.
CancelPrompt()
Emotes the given message
EmoteMsg("hi")
Sends given message to guild chat.
GuildMsg("alert")
Displays overhead message above given mobile / item.
HeadMsg("hi", "backpack")
Speaks the given message, Optional hue
Msg("hi")
Sends given message to party chat.
PartyMsg("alert")
Sends the specified message as a prompt response
PromptMsg("hello")
Wait the specified timeout for a prompt packet to be received
WaitForPrompt(5000)
Whispers the given message
WhisperMsg("hi")
Yells the given message
YellMsg("hi")
Run in the given direction.
Run("east")
Set force walk, True or False
SetForceWalk(True)
Toggle Force Walk
ToggleForceWalk()
Turn in the given direction.
Turn("east")
Walk in the given direction.
Walk("east")
Returns true if the given text appears in the items item properties.
if Property("item", "Defense Chance Increase"):
Returns the argument value of the given property name. Optional argument index.
val = PropertyValue[int]("backpack", "Contents")
Wait for item properties to be received for specified item.
WaitForProperties("backpack", 5000)
Sets the lock state of the given skill, up, down or locked.
SetSkill("hiding", "locked")
Returns the base value of the given skill name.
if Skill("hiding") < 100:
Returns the lock status of the given skill, up, down, or locked.
if SkillState("hiding') == "locked":
Invokes the given skill name.
UseSkill("Hiding")
Cast the given named spell and automatically target given object.
Cast("Recall", "runebook")
Cancel an existing cursor/target.
CancelTarget()
Clears the target queue when queue last target/target self is enabled.
ClearTargetQueue()
Get mobile and set enemy alias.
GetEnemy(["Murderer"])
Get mobile and set friend alias.
GetFriend(["Murderer"])
Get friend that only exists in the friends list, parameter distance 'Closest'/'Nearest'/'Next'
GetFriendListOnly("Closest")
Targets the given object (parameter can be serial or alias).
Target("self")
Returns true if a target cursor is displayed and the notoriety matches the supplied value, defaults to 'Any', options are 'Any', 'Beneficial', 'Harmful' or 'Neutral'
if TargetExists("Harmful"):
Target the specified type on the ground, optional parameters for hue and distance.
TargetGround(0x190, -1, 10)
Target tile the given distance relative to the specified alias/serial, optional boolean for reverse mode.
TargetTileRelative("self", 1, False)
Target specified type in player backpack, optional parameters for hue and search level.
TargetType(0xff, 0, 3)
Wait for target packet from server, optional timeout parameter (default 5000 milliseconds).
WaitForTarget(5000)
Returns true whenever the core is internally waiting for a server target
if WaitingForTarget():
Create a new named timer.
CreateTimer("shmoo")
Removes the named timer.
RemoveTimer("shmoo")
Set a timer value and create in case it does not exist.
SetTimer("shmoo", 0)
Check for a named timer value.
if Timer("shmoo") > 10000:
Returns true if the timer exists.
if TimerExists("shmoo"):
Outputs the elapsed timer value as a SystemMessage
TimerMsg("shmoo")
Search for a wand and set alias "found".
FindWand("fireball", "backpack", 10)
Search for a wand inside your backpack and equip it
EquipWand("fireball", 10)
#Equip a fireball wand if one can be found in our backpack..
if FindWand("fireball", "backpack", 5):
#Remove current item in hand
if FindLayer("OneHanded"):
ClearHands("left")
#Equip the wand
EquipWand("fireball")
Sets the container for the Autoloot agent to put items into...
SetAutolootContainer("backpack")
# Look for a food item from a list and eat 1 if found.
if not ListExists("food"):
CreateList("food")
PushList("food", 0x9b7) #bird
PushList("food", 0x9d3) #ham
PushList("food", 0x97d) #cheese
PushList("food", 0x9d0) #apple
PushList("food", 0x9eb) #muffin
PushList("food", 0x97b) #fishsteak
PushList("food", 0x9c0) #sausage
PushList("food", 0x9f2) #ribs
PushList("food", 0x9d1) #grapes
PushList("food", 0x9d2) #peach
for i in GetList("food"):
if FindType(i, -1, "backpack"):
UseObject("found")
break
Replay the current macro
Replay()
Check whether the given serial / alias exists in the ignore list.
if InIgnoreList("mount"):
Sets the friend to the given serial/alias.
SetFriend("mount")
Sets the enemy to the given serial/alias.
SetEnemy("mount")
Sets the last target to the given serial/alias.
SetLastTarget("mount")
Waits the specified timeout for target cursor whilst returning false if the spell is fizzled / uncastable beforehand.
WaitForTargetOrFizzle(5000)
# default hue
SysMessage("Hello")
# specifying hue
SysMessage("Hello", 35)
# Find on ground
FindObject("mount")
# Find on ground with range
FindObject("mount", 10)
# Find in container, must specify search level or -1
FindObject("weapon", -1, "backpack")
Sends a chat message.
ChatMsg("Mary had a little lamb")
Opens the Virtue gump of the given serial/alias (defaults to current player)
OpenVirtueGump("enemy")
Opens the Guild gump
Opens the Quests gump
OpenGuildGump()
OpenQuestsGump()
#get murderer
GetEnemy(['Murderer'])
#get closest murderer, any body type
GetEnemy(['Murderer'], 'Any', 'Closest')
#get next any notoriety, humanoid or transformation - unmounted
GetEnemy(['Any'], 'Both', 'Next', 'Unmounted')
Targets the ground at the given coordinates.
TargetXYZ(1000, 1000, 0)
Rehue an item/mobile the specified hue value, set to 0 to remove. (Experimental)
Rehue("mount", 1176)
Stops all running macros including background macros.
StopAll()
Sets the lock state of the given stat, up, down or locked.
SetStatus('str', 'locked')
Targets the tile at the given offsets relative to the player
TargetTileOffset(0, 1, 0)
#Targets the tile at the current Y coordinate + 1
TargetTileOffset(0, 1, 0)
Returns milliseconds remaining for given buff name, or 0 if expired/not enabled.
if BuffTime('Enemy Of One') < 5000:
if not BuffExists('Enemy Of One') or BuffTime('Enemy Of One') < 5000:
Cast('Enemy Of One')
Uses tool and targets specified resource type (Requires server support (OSI / ServUO))
TargetByResource('pickaxe', 'Ore')
Pauses until incoming menu packet is received, optional paramters of gump ID and timeout
WaitForMenu(0x1d0, 5000)
Sends a button reply to server menu
ReplyMenu(0x1d0, 3, 0x2106, 0)
Returns True if the menu title or entry titles contains the given text.
if InMenu(0x1d1, 'Omar'):
Return true if the given menu id exists.
if MenuExists(0x1d1):
UseSkill('Tracking')
WaitForMenu(0x1d0, 5000)
ReplyMenu(0x1d0, 3, 0x2106, 0)
WaitForMenu(0x1d1, 5000)
if InMenu(0x1d1, 'Omar'):
HeadMsg('Omar is in range', 'self')
CloseMenu(0x1d1)
UseSkill('Tracking')
WaitForMenu(0x1d0, 5000)
ReplyMenu(0x1d0, 3, 0x2106, 0)
WaitForMenu(0x1d1, 5000)
Closes the specified menu id
CloseMenu(0x1d1)
Returns the skill cap for the specified skill
if SkillCap("Blacksmithy") == 120:
Displays an ingame prompt with the specified message, returns True if Okay was pressed, False if not.
ConfirmPrompt("Self Destruct?")
res = ConfirmPrompt("Play macro?")
if res:
PlayMacro("Macro")
# Stop the current macro
Stop()
# Stop a macro by name
Stop("Background Macro")
Targets the tile at the given offsets relative to the player (automatically targeting trees/cave tiles/water if present)
TargetTileOffsetResource(0, -1, 0)
Remove an item/mobile from the screen
HideEntity('corpse')
ClearIgnoreList()
# Hide all corpses on screen
while FindType(0x2006):
HideEntity('found')
IgnoreObject('found')
Uses specified item and targets target in one action. Requires server support (OSI / ServUO)
UseTargetedItem('bandage', 'pet')
Uses object in the specified layer, optional parameter for mobile
UseLayer("Talisman")
Setup an automated reply to the incoming dye color gump, allowing you to define dye tubs color.
That command should be added prior to the action that opens the color pick gump.
AutoColorPick(35)
AutoColorPick(666)
UseObject('dyes')
WaitForTarget(1000)
Target('tub')
Display quest arrow pointer to specified coordinates
DisplayQuestPointer(1000, 1000, True)
# add pointer
DisplayQuestPointer(1000, 1000, True)
Pause(2000)
# remove pointer
DisplayQuestPointer(1000, 1000, False)
Requests client to pathfind to given coordinates / entity
Pathfind(1000, 1000, 0)
#Pathfind to coordinates
Pathfind(1438, 1630, 20)
#Pathfind to entity
SetEnemy(0x3c9)
Pathfind('enemy')