Jump to content

Breaking handleNextObstacle and completeDialogue loops


Micka99

Recommended Posts

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?

Link to comment
Share on other sites

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
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.
Note: Your post will require moderator approval before it will be visible.

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