Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Right Clicking Menus

Joined
May 4, 2020
Messages
1
Hi,

I am currently learning how to program using runemate, does anybody have the code for interacting with a menu. For example, right clicking an NPC and then selected attack from the menu list.

Thanks
 
Joined
Aug 23, 2015
Messages
1,970
Locatable thing = Npcs.newQuery().first();
if(thing != null){
if(Mouse.move(thing) && Mouse.click(Mouse.Button.Right){
Menuitem menuitem = Menu.getAt(#):
if(menuitem != null){
menuitem.click();
}
}

I think you can also do menuitem.interact("String");
 
Top