Zee Best Posted August 19, 2015 Share Posted August 19, 2015 Basically, the API has become so noob-friendly that methods such as entity#interact will attempt to rotate the camera/walk to the entity. I've tried using hover() followed by menu.selectAction however that seems to fail unless the menu is actually open. Anyone else got any ideas? Quote Link to comment Share on other sites More sharing options...
Extreme Scripts Posted August 19, 2015 Share Posted August 19, 2015 InteractionEvent, have a look into that. Quote Link to comment Share on other sites More sharing options...
Czar Posted August 19, 2015 Share Posted August 19, 2015 (edited) EntityDestination targetDest = new EntityDestination(getBot(), RS2OBJECTHERE); if (getMouse().click(targetDest)) { // opens menu, then use menu api } is the emergency back-up Edited August 19, 2015 by Czar Quote Link to comment Share on other sites More sharing options...
Zee Best Posted August 19, 2015 Author Share Posted August 19, 2015 (edited) InteractionEvent, have a look into that. Yeah, I've seen the events but are they executed on a different thread? EntityDestination targetDest = new EntityDestination(getBot(), RS2OBJECTHERE); if (getMouse().click(targetDest)) { // opens menu, then use menu api } is the emergency back-up Yeah, although that's a very hacky way. EDIT: I created a simple method that firsts hovers the entity, then checks the menu's tooltip to see if it's left click. If not it will right click and open the menu then try and select the action. Edited August 19, 2015 by Zee Best Quote Link to comment Share on other sites More sharing options...
FrostBug Posted August 20, 2015 Share Posted August 20, 2015 (edited) Yeah, I've seen the events but are they executed on a different thread? By default no; but if you call Event#setAsync on it before executing it, it will be executed on a different thread in a non-blocking way Edited August 20, 2015 by FrostBug Quote Link to comment Share on other sites More sharing options...