Welcome to PenUltima Online. Click to login or register.


AddMenuItem( menu, objtype, text, color=:0 )
Name Type
menu Dynamic Menu Reference (from CreateMenu())
objtype Integer tile graphic to add to menu
text String description
color Integer
Adds a menu item to a dynamic menu.
Notes: The 'objtype' field of a mobile is not appropriate here. There is special art for mobiles for use in menus. Human Males (object type: 0x190) use 0x2106, females 0x2107. Use InsideUO to determine other values. Color defaults to 0 if no itemdesc.cfg entry exists. Hint: menus.cfg uses the color of the itemdesc entry of the objtype given.
0 for objtype creates a checkbox-style menu
Return values
1 if the item was added successfully
none (returns 0 on invalid parameters)