J jonny16 Joined May 4, 2020 Messages 1 Jun 17, 2020 Thread Author #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
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
snufalufugus Joined Aug 23, 2015 Messages 1,970 Jun 18, 2020 #2 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");
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");