jarred788 9 Share Posted August 28, 2017 Hello i am trying to interact with the Sawmill operator outside varrock. I am able to get to him and click buy-planks from him but when the menu for which logs pop up i cant get past it . This is what i got so far. i would appreciate all the help getWalking().walk(planktile);NPC sawmill = getNpcs().closest(npc -> npc != null && npc.getName().equals("Sawmill operator"));if (sawmill.interact("Buy-plank")) ; {WidgetChild mill = getWidgets().getWidgetChild(403, 97);if (mill != null); {if (mill.interact("Buy All")) {}}} Link to comment Share on other sites More sharing options...
Dinh 496 Share Posted August 28, 2017 Hey there, currently in a league match. Come back here within 60 minutes and I'll have some code for you Link to comment Share on other sites More sharing options...
jarred788 9 Author Share Posted August 28, 2017 ! Link to comment Share on other sites More sharing options...
Dinh 496 Share Posted August 28, 2017 ! Try the Widget 403,93 if that doesnt work try Buy <col=ff7000>All instead of Buy All Link to comment Share on other sites More sharing options...
jarred788 9 Author Share Posted August 28, 2017 Try the Widget 403,93 if that doesnt work try Buy <col=ff7000>All instead of Buy All thanks for this, but it still dosen't interact Link to comment Share on other sites More sharing options...
Dinh 496 Share Posted August 28, 2017 thanks for this, but it still dosen't interact if (sawmill.interact("Buy-plank")) ; { WidgetChild mill = getWidgets().getWidgetChild(403, 97); if (mill != null); { if (mill.interact("Buy All")) { } } } you currently instantly try to find the widget and click buy all if you successfully click Buy planks, maybe move the code outside of the if and check if the interface is open, if it is buy the planks else talk to the guy to open it Link to comment Share on other sites More sharing options...
jarred788 9 Author Share Posted August 28, 2017 Got it thanks alot Link to comment Share on other sites More sharing options...
Rij 0 Share Posted December 4, 2017 @@Dinh what does this line mean: WidgetChild mill = getWidgets().getWidgetChild(403, 97);, and this one mill, thanks in advance currently developing a construction bot for ultimate ironman mode Link to comment Share on other sites More sharing options...
rocketmn333 1 Share Posted December 4, 2017 @@Dinh what does this line mean: WidgetChild mill = getWidgets().getWidgetChild(403, 97);, and this one mill, thanks in advance currently developing a construction bot for ultimate ironman mode Check out this link: https://dreambot.org/forums/index.php/topic/7901-ciphers-guide-to-using-widgets/?hl=widgets There's widgets and child widgets Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.