imancity Posted August 24, 2016 Posted August 24, 2016 Hey! I need some help with when webWalking to the Wilderness. The Wilderness ditch is supported, but the Wilderness Warning isn't. You can toggle it after a few hops but I wanna be able to run it on a fresh account. I tried adding this in my walk State: webWalk.getWalking(destination); if (RS2Widget.isVisible(###,###)) { (RS2Widget.Interact("Ok", ###, ###);} or something along those lines. Thing is, it does nothing :P I also am wondering if there is any snippets for detecting HP % so I can set it to heal below a % rather than fixed #. Thanks!
Precise Posted August 24, 2016 Posted August 24, 2016 (edited) RS2Widget widget = getWidgets().get(PARENT, CHILD); if(widget != null) if(widget.isVisible() && widget.interact(ACTION HERE)) [Sleep here] Edited August 24, 2016 by Precise 1
Team Cape Posted August 24, 2016 Posted August 24, 2016 (edited) Hey! I need some help with when webWalking to the Wilderness. The Wilderness ditch is supported, but the Wilderness Warning isn't. You can toggle it after a few hops but I wanna be able to run it on a fresh account. I tried adding this in my walk State: webWalk.getWalking(destination); if (RS2Widget.isVisible(###,###)) { (RS2Widget.Interact("Ok", ###, ###);} or something along those lines. Thing is, it does nothing :P I also am wondering if there is any snippets for detecting HP % so I can set it to heal below a % rather than fixed #. Thanks! Would report this to @@Alek . There's a section for reporting walker bugs. If you need something in the meantime, here's this (had this from awhile ago) @@Alek public boolean crossDitch() throws InterruptedException { if(objects.closest("Wilderness Ditch") != null) { if(objects.closest("Wilderness Ditch").interact("Cross")) { if(si.widgets.get(382, 24) != null) { return si.widgets.get(382, 24).interact(); } } } return false; } Edited August 24, 2016 by Imateamcape 1
Precise Posted August 24, 2016 Posted August 24, 2016 Would report this to @@Alek . There's a section for reporting walker bugs. If you need something in the meantime, here's this (had this from awhile ago) @@Alek public boolean crossDitch() throws InterruptedException { if(objects.closest("Wilderness Ditch") != null) { if(objects.closest("Wilderness Ditch").interact("Cross")) { if(si.widgets.get(382, 24) != null) { return si.widgets.get(382, 24).interact(); } } } return false; } The walking isnt the issue, but he wasn't sure how to handle widgets
imancity Posted August 24, 2016 Author Posted August 24, 2016 RS2Widget widget = getWidgets().get(PARENT, CHILD); if(widget != null) if(widget.isVisible() && widget.interact(ACTION HERE)) [Sleep here] Thanks man! Will try this as soon as I get home. Would report this to @@Alek . There's a section for reporting walker bugs. If you need something in the meantime, here's this (had this from awhile ago) @@Alek public boolean crossDitch() throws InterruptedException { if(objects.closest("Wilderness Ditch") != null) { if(objects.closest("Wilderness Ditch").interact("Cross")) { if(si.widgets.get(382, 24) != null) { return si.widgets.get(382, 24).interact(); } } } return false; } Yeah the widget is the problem, but thanks anyways! The snippet still may be useful 1
Acerd Posted August 24, 2016 Posted August 24, 2016 double hpPercent = getSkills().getDynamic(Skill.HITPOINTS) * 100 / getSkills().getStatic(Skill.HITPOINTS); for hp percent 1
imancity Posted August 24, 2016 Author Posted August 24, 2016 double hpPercent = getSkills().getDynamic(Skill.HITPOINTS) * 100 / getSkills().getStatic(Skill.HITPOINTS); for hp percent much thanks !!!
Alek Posted August 24, 2016 Posted August 24, 2016 Someone had the bright idea to add thousands of links without considering quests and settings such as Doom Slayer warnings. I already added the warning message for the Shantay Pass, might as well add one for the Wilderness Ditch too. 4