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.

Dialog section of my script slows to a crawl over time but fixes if I pause/unpause

Featured Replies

public int onLoop() throws InterruptedException {
    if(getDialogues().inDialogue()) {
        if(getDialogues().isPendingContinuation()) {
            getDialogues().clickContinue();
        } else if(getDialogues().isPendingOption()) {
            getDialogues().selectOption(1);
        }
    }

    return random(1000, 1500);

 

I cut out the part where it talks to the NPC, but this is the gist of it. After like 5 minutes the dialog click through slows down to doing the interaction like once every 5-10 seconds. If I pause and unpause the script it goes back to regular speed. Just trying to figure out why it slows down so much. Is there something wrong with this?

Edited by aeikonic

Your onLoop return value is quite high, have you considered a more responsive value, e.g. ~200?

As for your issue, I can't see any immediate issue with your code, so the issue may be stemming from a different area in your code. Do you have any errors logged in your console?

-Apa

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.