Jump to content

Breaking handleNextObstacle and completeDialogue loops


Recommended Posts

Posted

I am stuck with handling these two methods provided by OSBot.

As I have an unstable connection and get disconnected frequently, whenever these two methods are getting called it is stuck in a loop.

 

getDoorHandler().handleNextObstacle(new Position(3071, 3090, 0))


getDialogues().completeDialogue("Yes");

 

I am running the client in lowcpu and norandoms mode as I need it to be that way.

Had the same issue for webwalking but solved it there with WebWalkEvent with checking !getClient().isLoggedIn() as a break condition. Can't seem to find it for these methods.

Any suggestions?

Posted

I've never personally used the DoorHandler API so I can't speak for it specifically but I know there's no way to stop completeDialogue from executing, it needs to reach the end of the current dialogue to stop. So instead of using completeDialogue just use a combination of isPendingContinuation and isPendingOption.

  • 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...