Welcome to PenUltima Online. Click to login or register.

Functions:

SelectColor( character, item )
Parameters:
Name Type
character Character Reference
item Item Reference
Explanation
Sends a color chooser gump to character.
Notes: Function blocks until character cancels or selects a color from the chooser gump. No validation is done by the core. Might be useful to check if the color returned is >1001 (out of range for the chooser gump).
Return values
Integer of selected color. use item.color = return_value to set.
Errors
"Invalid parameter type"
"No client attached"
"Client is already selecting a color"
Related
Character
Item