Jump to content

Wilderness ditch


Recommended Posts

Posted

I'm making a script for new accounts that requires walking into the wilderness. I'm using webwalk to get to that location, however the wilderness ditch warning stops it. I have code to click Enter wilderness but will not run because web walk hasn't reached the destination. Is there a more optimal solution than making two Areas and web walking to ditch and then web walking to wilderness location? Anything to interrupt the one webwalk method? or something similar

Posted
47 minutes ago, rjames94 said:

I'm making a script for new accounts that requires walking into the wilderness. I'm using webwalk to get to that location, however the wilderness ditch warning stops it. I have code to click Enter wilderness but will not run because web walk hasn't reached the destination. Is there a more optimal solution than making two Areas and web walking to ditch and then web walking to wilderness location? Anything to interrupt the one webwalk method? or something similar

WebWalkEvent and set break condition
https://osbot.org/api/org/osbot/rs07/event/WebWalkEvent.html

  • Like 1
Posted
1 hour ago, Gunman said:

So I have it working, but there's quite a big delay before clicking. I found some other threads on this about setting the event mode to async, I did that but the mouse moves rapidly and double clicks and not very reliable. Here's the code I have so far.

if (state == 1 && !isMyWidgetWorking()) {
            WebWalkEvent webWalkEvent = new WebWalkEvent(obeliskArea);
            webWalkEvent.setBreakCondition(new Condition() {
                @Override
                public boolean evaluate() {
                    return isMyWidgetWorking();
                }
            });
            execute(webWalkEvent);

        } else {
                getMyWidget().interact();
            }

https://imgur.com/afyCFDL

Posted
21 minutes ago, rjames94 said:

So I have it working, but there's quite a big delay before clicking. I found some other threads on this about setting the event mode to async, I did that but the mouse moves rapidly and double clicks and not very reliable. Here's the code I have so far.

if (state == 1 && !isMyWidgetWorking()) {
            WebWalkEvent webWalkEvent = new WebWalkEvent(obeliskArea);
            webWalkEvent.setBreakCondition(new Condition() {
                @Override
                public boolean evaluate() {
                    return isMyWidgetWorking();
                }
            });
            execute(webWalkEvent);

        } else {
                getMyWidget().interact();
            }

https://imgur.com/afyCFDL

https://osbot.org/api/org/osbot/rs07/event/WebWalkEvent.html#setHighBreakPriority-boolean-

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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