Jump to content
imancity

Help with Wilderness Walking + HP %!

Recommended Posts

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 #. :D

 

Thanks!

Link to comment
Share on other sites

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 #. biggrin.png

 

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 by Imateamcape
  • Like 1
Link to comment
Share on other sites

 

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 :)

Link to comment
Share on other sites

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. QwPha8E.png

 

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 :)

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...