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

Featured Replies

Hi,

been trying for sometime to make dialogue work in tutorial island, currently trying to make it work like below. I decompiled some questing script and found that it handles dialogues like this. But somehow it doesnt select "I am an experienced player". First time writing something to handle dialogues so hope you can help :) 

 

Entity cook = npcs.closest("Gielinor guide");
sleep(1000);
cook.interact();
sleep(1000);
if (cook != null) {
    if (!getDialogues().inDialogue()) {
        log("Not talking to guide. Starting conversation.");
        cook.interact(); //this is not working somehow, so added interaction event in beginning
        log("Sleeping until conversation starts!");
        new ConditionalSleep(5000,1000) {
            @Override
            public boolean condition() throws InterruptedException {
                return getDialogues().inDialogue();
            }
        }.sleep();
    }
    String[] options = new String[]{"Click here to continue",
            "I am an experienced player."};
    if (getDialogues().completeDialogue(options)) {
        log("Dialogue complete successfully!");
    } else {
        log("Dialogue failed!");
    }
    log("Just spoke with the guide!");
}
break;

 

@KramnikYou can't use that much of the dialogue API on tutorial island because if you use getDialogue.inDialogue() the bot will think you're always in dialogue when you're not. You gotta make you're own dialogue detection and handler. I think it's because the dialogue detection looks for blue text or something. I don't remember why it breaks on tut but it does.

If you want you can look at how Explv handled dialogue

https://osbot.org/forum/topic/84213-explvs-tutorial-island-free-random-characters/

  • Author
12 minutes ago, Gunman said:

@KramnikYou can't use that much of the dialogue API on tutorial island because if you use getDialogue.inDialogue() the bot will think you're always in dialogue when you're not. You gotta make you're own dialogue detection and handler. I think it's because the dialogue detection looks for blue text or something. I don't remember why it breaks on tut but it does.

If you want you can look at how Explv handled dialogue

https://osbot.org/forum/topic/84213-explvs-tutorial-island-free-random-characters/

Hmm, I thought that this is probably because you always see something in chatbox. Explvs stuff is very complicated to read because of different files and etc, but will give it a second look, thanks :D 

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.