Welcome to PenUltima Online. Click to login or register.

Functions:

SelectMenuItem2( character, menuname )
Parameters:
Name Type
character Character Reference
menuname String name of the static menu in menus.cfg, or a dynamic menu reference
Explanation
Displays an object menu on the character's client for the player to select from.
Notes: Can take a static or dynamic menu.
Return values
0 if the menu was cancelled, or the character's client disconnected.
A Structure on success: .objtype = Integer object type of the selection. .index = 1-based index within the menu of the selection. .graphic = Integer graphic of the object. .color = color of the object.
Errors
"Invalid parameter"
"Client is busy, or menu is empty"
"Menu too large"
Related
Character
Related Configs
menus.cfg