CUO
The CUO_Functions class contains invocation of CUO code using reflection
DANGER !!
TODO: CUO Constructors
Methods
CUO.CloseGump(serial)
Invokes the Method close a gump
CUO.CloseMobileHealthBar(mobileserial)
CUO.CloseMobileHealthBar(mobileserial)
Closes a Mobile Status Gump of an Entity
Closes a Mobile Status Gump of an Entity
Parameters
mobileserialUInt32
Int32
CUO.CloseMyStatusBar()
Invokes the Method to close your status bar gump inside the CUO code
CUO.CloseTMap()
Invokes the CloseWithRightClick function inside the CUO code
First T-Map is retrieved, and then only closed if it is a map
Returns True if a map was closed, else False
CUO.FollowMobile(mobileserial)
CUO.FollowMobile(mobileserial)
Make the ClassicUO client follow the specific mobile.
This is the same behavior as alt + left-clicking, which normally
shows the overhead message "Now following."
Parameters
mobileserialUInt32
CUO.FollowOff()
Stop the ClassicUO client from following, if it was following a
mobile.
CUO.Following()
Returns the status and target of the ClassicUO client's follow
behavior.
Return
ValueTuple[Boolean, UInt32]bool followingMode, uint followingTarget
CUO.FreeView(free)
Invokes the FreeView function inside the CUO code
First value is retrieved, and then only set if its not correct
CUO.GetSetting(settingName)
CUO.GetSetting(settingName)
Retrieve Current CUO Setting
Parameters
settingNameString
CUO.GoToMarker(x, y)
Invokes the GoToMarker function inside the CUO code
Map must be open for this to work
CUO.LoadMarkers()
Invokes the LoadMarkers function inside the CUO code
Map must be open for this to work
CUO.MoveGump(serial, x, y)
CUO.MoveGump(serial, x, y)
Invokes the Method move a gump or container if open.
Parameters
serialUInt32
xInt32
yInt32
CUO.OpenContainerAt(bag, x, y)
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
Parameters
bagUInt32
Item
xInt32
yInt32
CUO.OpenMobileHealthBar(mobileserial, x, y, custom)
CUO.OpenMobileHealthBar(mobileserial, x, y, custom)
Open a mobiles health bar at a specified location on the screen
Invokes the Method to open your status bar gump inside the CUO code
Parameters
mobileserialUInt32
Int32
xInt32
yInt32
customBoolean
CUO.OpenMyStatusBar(x, y)
CUO.OpenMyStatusBar(x, y)
Invokes the Method to open your status bar gump inside the CUO code
CUO.PlayMacro(macroName)
Play a CUO macro by name
Warning, limited testing !!
Parameters
macroNameString
CUO.ProfilePropertySet(propertyName, enable)
CUO.ProfilePropertySet(propertyName, enable)
Set a bool Config property in CUO by name
Set a int Config property in CUO by name
Set a string Config property in CUO by name
Parameters
propertyNameString
enableString
Boolean
Int32
CUO.SetGumpOpenLocation(gumpserial, x, y)
CUO.SetGumpOpenLocation(gumpserial, x, y)
Set a location that CUO will open the next gump or container at
Parameters
gumpserialUInt32
xInt32
yInt32