User Tools

Site Tools


cuo_func

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
cuo_func [2023/10/09 04:28] – external edit 127.0.0.1cuo_func [2023/10/09 05:16] – external edit 127.0.0.1
Line 135: Line 135:
  
 |} |}
 +
 +===== CUO Container Gump Functions =====
 +
 +{|style="font-size:85%; border:solid 2px; width: 50%;"
 +|style="font-size:150%;  padding: 2px" colspan="2" | **Opens a Container at a specific location**
 +|- style="background-color:#f0f0f0;"
 +|**Syntax**
 +|style="width: 90%" | CUO.OpenContainerAt(Item bag, int x, int y)
 +|-
 +|colspan="2" |**Description:**
 +|-
 +|colspan="2" | Opens the specified container with the gump at the x, y provided. If already open nothing is done. 
 +use in your code like:
 +<code>
 +#
 +CUO.ProfilePropertySet("fps", "80")
 +#
 +</code>
 +|- style="background-color:#f0f0f0;"
 +|**Returns**
 +|Nothing
 +|-
 +|**In Object:**
 +|CUO
 +|- style="background-color:#f0f0f0;"
 +|**Parameters:**
 +
 +|}
 +
 +{|style="font-size:85%; border:solid 2px; width: 50%;"
 +|style="font-size:150%;  padding: 2px" colspan="2" | **Sets the location the specified gump will open at**
 +|- style="background-color:#f0f0f0;"
 +|**Syntax**
 +|style="width: 90%" | CUO.SetGumpOpenLocation(uint gumpserial, int x, int y)
 +|-
 +|colspan="2" |**Description:**
 +|-
 +|colspan="2" | Changes the location the gump will open at 
 +use in your code like:
 +<code>
 +#
 +CUO.SetGumpOpenLocation(0x456789, 100, 200)
 +#
 +</code>
 +|- style="background-color:#f0f0f0;"
 +|**Returns**
 +|Nothing
 +|-
 +|**In Object:**
 +|CUO
 +|- style="background-color:#f0f0f0;"
 +|**Parameters:**
 +| gumpserial - the Serial id of the container
 +| x - x coordinate on screen
 +| y - y coordinate on screen 
 +|}
 +
 +{|style="font-size:85%; border:solid 2px; width: 50%;"
 +|style="font-size:150%;  padding: 2px" colspan="2" | **Moves a gump to a specified location**
 +|- style="background-color:#f0f0f0;"
 +|**Syntax**
 +|style="width: 90%" | CUO.MoveGump(uint serial, int x, int y)
 +|-
 +|colspan="2" |**Description:**
 +|-
 +|colspan="2" | Moves a gump on the screen.. Note: I dont think this is working.
 +use in your code like:
 +<code>
 +#
 +CUO.MoveGump(0x456789, 100, 200)
 +#
 +</code>
 +|- style="background-color:#f0f0f0;"
 +|**Returns**
 +|Nothing
 +|-
 +|**In Object:**
 +|CUO
 +|- style="background-color:#f0f0f0;"
 +|**Parameters:**
 +| serial - the Serial id of the container
 +| x - x coordinate on screen
 +| y - y coordinate on screen 
 +|}
 +
 +===== Player Status Gump Functions =====
 +
 +{|style="font-size:85%; border:solid 2px; width: 50%;"
 +|style="font-size:150%;  padding: 2px" colspan="2" | **Show the player status bar at a specific location**
 +|- style="background-color:#f0f0f0;"
 +|**Syntax**
 +|style="width: 90%" | CUO.OpenMyStatusBar(int x, int y)
 +|-
 +|colspan="2" |**Description:**
 +|-
 +|colspan="2" | Opens the player status bar at the specified location.
 +use in your code like:
 +<code>
 +#
 +CUO.OpenMyStatusBar(100, 200)
 +#
 +</code>
 +|- style="background-color:#f0f0f0;"
 +|**Returns**
 +|Nothing
 +|-
 +|**In Object:**
 +|CUO
 +|- style="background-color:#f0f0f0;"
 +|**Parameters:**
 +| x - x coordinate on screen
 +| y - y coordinate on screen 
 +|}
 +
 +{|style="font-size:85%; border:solid 2px; width: 50%;"
 +|style="font-size:150%;  padding: 2px" colspan="2" | **Remove the player status bar**
 +|- style="background-color:#f0f0f0;"
 +|**Syntax**
 +|style="width: 90%" | CUO.CloseMyStatusBar()
 +|-
 +|colspan="2" |**Description:**
 +|-
 +|colspan="2" | Closes the player status bar.
 +use in your code like:
 +<code>
 +#
 +CUO.CloseMyStatusBar()
 +#
 +</code>
 +|- style="background-color:#f0f0f0;"
 +|**Returns**
 +|Nothing
 +|-
 +|**In Object:**
 +|CUO
 +|- style="background-color:#f0f0f0;"
 +|**Parameters:**
 +|}
 +
 +{|style="font-size:85%; border:solid 2px; width: 50%;"
 +|style="font-size:150%;  padding: 2px" colspan="2" | **Open the health bar of a mobile at a specified screen location**
 +|- style="background-color:#f0f0f0;"
 +|**Syntax**
 +|style="width: 90%" | CUO.OpenMobileHealthBar(uint mobileserial, int x, int y, bool custom)
 +|-
 +|colspan="2" |**Description:**
 +|-
 +|colspan="2" | Opens a health bar for a mobile and places the gump at the specified location.
 +use in your code like:
 +<code>
 +#
 +CUO.OpenMobileHealthBar(0x345678, 100, 200, False)
 +#
 +</code>
 +|- style="background-color:#f0f0f0;"
 +|**Returns**
 +|Nothing
 +|-
 +|**In Object:**
 +|CUO
 +|- style="background-color:#f0f0f0;"
 +|**Parameters:**
 +| uint mobileserial
 +| int x 
 +| int y
 +| bool custom - True - the CUO square "minimalist" gump vs False - the standard UO gump
 +|}
 +
 +{|style="font-size:85%; border:solid 2px; width: 50%;"
 +|style="font-size:150%;  padding: 2px" colspan="2" | **Close the health bar of a mobile**
 +|- style="background-color:#f0f0f0;"
 +|**Syntax**
 +|style="width: 90%" | CUO.CloseMobileHealthBar(uint mobileserial)
 +|-
 +|colspan="2" |**Description:**
 +|-
 +|colspan="2" | Closes a health bar for a mobile.
 +use in your code like:
 +<code>
 +#
 +CUO.CloseMobileHealthBar(0x345678)
 +#
 +</code>
 +|- style="background-color:#f0f0f0;"
 +|**Returns**
 +|Nothing
 +|-
 +|**In Object:**
 +|CUO
 +|- style="background-color:#f0f0f0;"
 +|**Parameters:**
 +| uint mobileserial
 +|}
 +
 +===== CUO Macro Function =====
 +
 +{|style="font-size:85%; border:solid 2px; width: 50%;"
 +|style="font-size:150%;  padding: 2px" colspan="2" | **Play a CUO macro by name**
 +|- style="background-color:#f0f0f0;"
 +|**Syntax**
 +|style="width: 90%" | CUO.PlayMacro(string macroName)
 +|-
 +|colspan="2" |**Description:**
 +|-
 +|colspan="2" | WARNING!! Limited Testing: Attempts to play a CUO macro given its name.
 +use in your code like:
 +<code>
 +#
 +CUO.PlayMacro("MyMacro")
 +#
 +</code>
 +|- style="background-color:#f0f0f0;"
 +|**Returns**
 +|Nothing
 +|-
 +|**In Object:**
 +|CUO
 +|- style="background-color:#f0f0f0;"
 +|**Parameters:**
 +| string macroName
 +|}
 +
cuo_func.txt · Last modified: 2023/10/09 05:17 by 127.0.0.1

Exception: Git command failed to perform periodic pull: From https://github.com/RazorEnhanced/razorenhanced.github.io * branch main -> FETCH_HEAD error

Exception: Git command failed to perform periodic pull: From https://github.com/RazorEnhanced/razorenhanced.github.io * branch main -> FETCH_HEAD error

An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the gitbacked plugin.

More info has been written to the DokuWiki error log.