-
-
Notifications
You must be signed in to change notification settings - Fork 54
Menus
Reetus edited this page Mar 10, 2026
·
296 revisions
Generated on 3/10/2026 3:07:34 AM
Version: 5.0.1+cb2bfafc8ca61e99043cebfbd4c89fcbe562551b
Method Signature:
Boolean InMenu(Int32, System.String)
- gumpid: ItemID / Graphic such as 0x3db.
- text: String value - See description for usage.
Description:
Returns True if the menu title or entry titles contains the given text.
Example:
UseSkill('Tracking')
WaitForMenu(0x1d0, 5000)
ReplyMenu(0x1d0, 3, 0x2106, 0)
WaitForMenu(0x1d1, 5000)
if InMenu(0x1d1, 'Omar'):
HeadMsg('Omar is in range', 'self')
CloseMenu(0x1d1) Method Signature:
Boolean MenuExists(Int32)
Description:
Return true if the given menu id exists.
Example:
if MenuExists(0x1d1): Method Signature:
Void ReplyMenu(Int32, Int32, Int32, Int32)
- gumpid: ItemID / Graphic such as 0x3db.
- buttonid: Gump button ID.
- itemid: ItemID / Graphic such as 0x3db. (Optional)
- hue: Item Hue or -1 for any. (Optional)
Description:
Sends a button reply to server menu
Example:
ReplyMenu(0x1d0, 3, 0x2106, 0) Method Signature:
Boolean WaitForMenu(Int32, Int32)
- gumpid: ItemID / Graphic such as 0x3db. (Optional)
- timeout: Timeout specified in milliseconds. (Optional)
Description:
Pauses until incoming menu packet is received, optional paramters of gump ID and timeout
Example:
UseSkill('Tracking')
WaitForMenu(0x1d0, 5000)
ReplyMenu(0x1d0, 3, 0x2106, 0)
WaitForMenu(0x1d1, 5000)