Daviyow Posted April 29, 2015 Share Posted April 29, 2015 Hi, im trying to make the bot press Accept in this interface: RS2InterfaceChild accept = interfaces.get(187).getChild(1); if (accept != null) { interfaces.interactWithChild(187, 1, "Continue"); sleep(random(700, 1400)); } it doesnt press continue on the accept button but when i drag my mouse over the accept button it presses accept i have no idea why it won't drag the mouse to the accept button and i had another question how do i make my bot run in the middle of the fightground of nmz when i just enter? do i grab my position when i enter and make the bot run to that position but +10 to my current Y or X position or can it be done way simpler? thanks for reading Quote Link to comment Share on other sites More sharing options...
FrostBug Posted April 29, 2015 Share Posted April 29, 2015 (edited) RS2Widget accept = getWidgets().get(187, 1, 9); if(accept != null) { accept.interact("Continue"); } To get to the middle of the instance, find the localX and localY coordinates of where you want to go. With these you can create valid positions like so: new Position(getMap().getBaseX() + localX, getMap().getBaseY() + localY, zCoord) Edited April 29, 2015 by FrostBug 2 Quote Link to comment Share on other sites More sharing options...
Botre Posted April 29, 2015 Share Posted April 29, 2015 Widgets have replaced interfaces Quote Link to comment Share on other sites More sharing options...