CUO
The CUO_Functions class contains invocation of CUO code using Harmony's AccessTools and Traverse instead of raw reflection.
Table of Contents
Methods
CloseGump
CUO.CloseGump(serial)Close a container gump by serial.
serial(UInt32)
VoidCloseMobileHealthBar
CUO.CloseMobileHealthBar(mobileserial)Close a mobile's health bar gump. Close a mobile's health bar gump.
mobileserial(Int32)
VoidCloseMyStatusBar
CUO.CloseMyStatusBar()Close the player's status bar gump.
VoidCloseTMap
CUO.CloseTMap()Closes a treasure map gump if open. Returns true if a map was closed.
BooleanFollowMobile
CUO.FollowMobile(mobileserial)Make the ClassicUO client follow a specific mobile. Same as alt + left-clicking.
mobileserial(UInt32)
VoidFollowOff
CUO.FollowOff()Stop following the current mobile.
VoidFollowing
CUO.Following()Returns the status and target of the follow behavior.
ValueTuple[Boolean, UInt32]FreeView
CUO.FreeView(free)Sets FreeView mode on the world map.
free(Boolean)
VoidGetSetting
CUO.GetSetting(settingName)Retrieve a current CUO setting by name.
settingName(String)
StringGoToMarker
CUO.GoToMarker(x, y)Invokes the GoToMarker function inside the CUO code. Map must be open for this to work.
x(Int32)y(Int32)
VoidLoadMarkers
CUO.LoadMarkers()Invokes the LoadMarkers function inside the CUO code. Map must be open for this to work.
VoidMoveGump
CUO.MoveGump(serial, x, y)Move an open gump or container to a new position.
serial(UInt32)x(Int32)y(Int32)
VoidOpenContainerAt
CUO.OpenContainerAt(bag, x, y)Set a location that CUO will open the container at. Set a location that CUO will open the container at.
bag(Item)x(Int32)y(Int32)
VoidOpenMobileHealthBar
CUO.OpenMobileHealthBar(mobileserial, x, y, custom)Open a mobile's health bar at a position. Open a mobile's health bar at a position.
mobileserial(Int32)x(Int32)y(Int32)custom(Boolean)
VoidOpenMyStatusBar
CUO.OpenMyStatusBar(x, y)Open the player's status bar gump at a position.
x(Int32)y(Int32)
VoidPlayMacro
CUO.PlayMacro(macroName)Play a CUO macro by name.
macroName(String)
VoidProfilePropertySet
CUO.ProfilePropertySet(propertyName, value)Set a bool property on the current CUO profile by name. Set an int property on the current CUO profile by name. Set a string property on the current CUO profile by name.
propertyName(String)value(Boolean)
VoidSetAutoOpenDoors
CUO.SetAutoOpenDoors(enabled)Push the "auto open doors" and "open doors while pathfinding" settings to the ClassicUO profile. Fail-safe — no-ops if reflection is disabled or the properties don't exist (standard CUO lacks TazUO sub-options).
enabled(Boolean)
VoidSetGumpOpenLocation
CUO.SetGumpOpenLocation(gumpserial, x, y)Set a location that CUO will open the next gump or container at.
gumpserial(UInt32)x(Int32)y(Int32)
VoidTryGetGumpLocation
CUO.TryGetGumpLocation(serverSerial)Reads the current screen position of an open gump by its ServerSerial. Returns null if the gump isn't open or on OSI client.
serverSerial(UInt32)
Nullable[ValueTuple[Int32, Int32]]