Skip 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 sometimes break?

Featured Replies

Hey, I'm having issue with dialogs. dialogues.clickContinue(); sometimes just doesn't want to continue the conversation. Its like it doesn't find the widget or something.

Here's my code to finish a dialogue.

private void FinishDialogue() throws InterruptedException
{
    while (true)
    {
        boolean isPending = new ConditionalSleep(6*1000)
        {
            @Override
            public boolean condition() throws InterruptedException
            {
                return dialogues.isPendingContinuation();
            }
        }.sleep();

        if (isPending)
        {
            dialogues.clickContinue();
            sleep(650, 1050);

            continue;
        }

        break;
    }
}

 

Any directions to help solve this would be appreciated, thanks!

Edited by Johnxtrem

You on tutorial island? Tutorial island is a bit different since I believe you are always in dialogue

  • Author
2 minutes ago, k9thebeast said:

You on tutorial island? Tutorial island is a bit different since I believe you are always in dialogue

I am indeed :D Interesting, I'll check a couple of things then. But what could be the reason just dialogues.clickContinue() doesn't work? Thanks!

Edited by Johnxtrem

Not 100% sure, havent really editted my tut script in a while. Try sending a space. getKeyboard().typeString(" ");

Edited by k9thebeast

  • Author
2 minutes ago, k9thebeast said:

Not 100% sure, havent really editted my tut script in a while. Try sending a space. getKeyboard().typeString(" ");

I just checked and isPendingContinuation and inDialogue always returns true, so its kinda "annoying" to detect every part when exactly it is done. I've already tried the keyboard method, works but, yeah... :/

  • Author
3 minutes ago, Juggles said:

youre always in dialogue on tut island

Hey, I know, but does that mean that clickContinue shoudln't work? :) 

  • Author

Solved it like this:

 

private void FinishDialogue() throws InterruptedException
{
    while (IsPendingContinue())
    {
        ClickContinue();
        sleep(650, 1050);
    }
}

private boolean ClickContinue()
{
    if (!IsPendingContinue())
        return false;

    keyboard.pressKey(32);
    return true;
}

private boolean IsPendingContinue()
{
    List<RS2Widget> widgetsList = widgets.getAll().stream().filter
            (w -> w.getMessage().equals("Click here to continue")).collect(Collectors.toList());

    return widgetsList.size() > 0;
}

Edited by Johnxtrem

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.