cuo_func
This is an old revision of the document!
Table of Contents
Scripting - CUO Specific Functions
Here can find some information about Scripting functions that work with CUO
Map Related
| Load Map Markers | |
| Syntax | CUO.LoadMarkers() |
| Description: | |
Calls the LoadMarkers function on the CUO world map. The map must be open for this to work.
use in your code like:
# CUO.LoadMarkers() #
|
|
| Returns | nothing |
| In Object: | CUO |
| Parameters: | |
| Go to Map Marker | |
| Syntax | CUO.GoToMarker(x, y) |
| Description: | |
Executes the GoToMarker function on the CUO world map passing the x and y you provided. The map must be open for this to work.
use in your code like:
# CUO.GoToMarker(100, 200) #
|
|
| Returns | nothing |
| In Object: | CUO |
| Parameters: | |
| FreeView for CUO Map | |
| Syntax | CUO.FreeView(bool) |
| Description: | |
Executes the FreeView function on the CUO world map passing the bool you provided. The map must be open for this to work.
use in your code like:
# CUO.FreeView(True) #
|
|
| Returns | nothing |
| In Object: | CUO |
| Parameters: | |
| Close Treasure Map | |
| Syntax | CUO.CloseTMap() |
| Description: | |
Finds the first Treasure Map gump on your screen and closes it. If a Treasure Map gump was found returns True, otherwise returns False.
use in your code like:
# CUO.CloseTMap() #
|
|
| Returns | True if a Treasure map was closed, otherwise False |
| In Object: | CUO |
| Parameters: | |
CUO Profile Option Changes
| Sets an option in the CUO Profile | |
| Syntax | CUO.ProfilePropertySet(string propertyName, bool enable) |
| Description: | |
This was just an experiment to see if I could automate the changing of CUO properties.
use in your code like:
#
CUO.ProfilePropertySet("fps", "80")
#
|
|
| Returns | Nothing |
| In Object: | CUO |
| Parameters: | |
CUO Container Gump Functions
| Opens a Container at a specific location | |
| Syntax | CUO.OpenContainerAt(Item bag, int x, int y) |
| Description: | |
Opens the specified container with the gump at the x, y provided. If already open nothing is done.
use in your code like:
#
CUO.ProfilePropertySet("fps", "80")
#
|
|
| Returns | Nothing |
| In Object: | CUO |
| Parameters: | |
| Sets the location the specified gump will open at | |||
| Syntax | CUO.SetGumpOpenLocation(uint gumpserial, int x, int y) | ||
| Description: | |||
Changes the location the gump will open at
use in your code like:
# CUO.SetGumpOpenLocation(0x456789, 100, 200) #
|
|||
| Returns | Nothing | ||
| In Object: | CUO | ||
| Parameters: | gumpserial - the Serial id of the container | x - x coordinate on screen | y - y coordinate on screen |
| Moves a gump to a specified location | |||
| Syntax | CUO.MoveGump(uint serial, int x, int y) | ||
| Description: | |||
Moves a gump on the screen.. Note: I dont think this is working.
use in your code like:
# CUO.MoveGump(0x456789, 100, 200) #
|
|||
| Returns | Nothing | ||
| In Object: | CUO | ||
| Parameters: | serial - the Serial id of the container | x - x coordinate on screen | y - y coordinate on screen |
Player Status Gump Functions
| Show the player status bar at a specific location | ||
| Syntax | CUO.OpenMyStatusBar(int x, int y) | |
| Description: | ||
Opens the player status bar at the specified location.
use in your code like:
# CUO.OpenMyStatusBar(100, 200) #
|
||
| Returns | Nothing | |
| In Object: | CUO | |
| Parameters: | x - x coordinate on screen | y - y coordinate on screen |
| Remove the player status bar | |
| Syntax | CUO.CloseMyStatusBar() |
| Description: | |
Closes the player status bar.
use in your code like:
# CUO.CloseMyStatusBar() #
|
|
| Returns | Nothing |
| In Object: | CUO |
| Parameters: | |
cuo_func.1696827452.txt.gz · Last modified: 2023/10/09 04:57 by credzba