Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

dialogues.completeDialogue() failed.

Featured Replies

I have been using dialogues.completeDialogueU() to talk to NPC's. For instance, for Rune Mysteries when talking to the Head Wizard I have this line:

 

sedridor.interact("Talk-to");
dialogues.completeDialogue("I'm looking for the head wizard.", "Ok, here you are.", "Yes, certainly.");

After the line finishes, it walks all the way to Varrock to Aubury. However, before the dialogue is completed, the script alright goes to the next line, which is walking to Aubury. This should not happen, right?

25 minutes ago, feggit said:

I have been using dialogues.completeDialogueU() to talk to NPC's. For instance, for Rune Mysteries when talking to the Head Wizard I have this line:

 


sedridor.interact("Talk-to");
dialogues.completeDialogue("I'm looking for the head wizard.", "Ok, here you are.", "Yes, certainly.");

After the line finishes, it walks all the way to Varrock to Aubury. However, before the dialogue is completed, the script alright goes to the next line, which is walking to Aubury. This should not happen, right?

http://osbot.org/api

read the docs on the method. I believe it returns true when it selects the option.

  • Author
16 minutes ago, Chris said:

http://osbot.org/api

read the docs on the method. I believe it returns true when it selects the option.

I did read it. By saying it returns true, are you suggesting me to use an if-statement or anything?

9 minutes ago, superuser said:

Oh wow, I didn't know this exists. Thanks

1 hour ago, feggit said:

I have been using dialogues.completeDialogueU() to talk to NPC's. For instance, for Rune Mysteries when talking to the Head Wizard I have this line:

 


sedridor.interact("Talk-to");
dialogues.completeDialogue("I'm looking for the head wizard.", "Ok, here you are.", "Yes, certainly.");

After the line finishes, it walks all the way to Varrock to Aubury. However, before the dialogue is completed, the script alright goes to the next line, which is walking to Aubury. This should not happen, right?

my guess would be that it's interacting with sedridor, before the dialogue actually loads it tries to complete it, notices no dialogue is complete so the completeDialogue returns true

try adding a conditional sleep between there & see if it fixes it.

EDIT: "WARNING - This method loops until either the player is not in a dialogue", definitely seems to be your problem, next time try looking through the javadocs, might help you! :)

Edited by Slut

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.