MenuAction
Intermediatenet.runelite.api
Enum representing different types of menu actions. Use this to identify what type of action a menu entry represents.
Category
Utility
Methods
0
Properties
3
Properties (3)
NPC_FIRST_OPTION
MenuActionFirst option on an NPC (usually 'Attack' or 'Talk-to')
java
1if (event.getType() == MenuAction.NPC_FIRST_OPTION) {
2 // Handle first NPC option
3}ITEM_USE_ON_NPC
MenuActionUsing an item on an NPC
java
1if (event.getType() == MenuAction.ITEM_USE_ON_NPC) {
2 // Handle item use on NPC
3}WALK
MenuActionWalking to a location
java
1if (event.getType() == MenuAction.WALK) {
2 // Handle walk action
3}