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.

disabling auto login

Featured Replies

Is there a way to disable the auto login?

 

I want my script to perform breaks on its own, because the bot doesnt break well with combat scripts. If the bot logins automatically right after logout it wont work.

 

Any way of overriding or changing something?

dont select an acc when you load the client and start script logged in

 

You can override shouldActivate to verify with your script whether or not now is a good time to start a break

try {
    this.bot.getRandomExecutor().registerHook(new RandomBehaviourHook(RandomEvent.BREAK_MANAGER) {
        @Override
        public boolean shouldActivate() {
            return super.shouldActivate() && canStartBreak();
        }
    });
} catch (Exception ex) {
    //Break manager is not enabled
    log("Failed to modify break handler");
}

It's up to you to implement the canStartBreak method

  • Author

You can override shouldActivate to verify with your script whether or not now is a good time to start a break

try {
    this.bot.getRandomExecutor().registerHook(new RandomBehaviourHook(RandomEvent.BREAK_MANAGER) {
        @Override
        public boolean shouldActivate() {
            return super.shouldActivate() && canStartBreak();
        }
    });
} catch (Exception ex) {
    //Break manager is not enabled
    log("Failed to modify break handler");
}

It's up to you to implement the canStartBreak method

 

I get this error if i try to do that:

The type org.osbot.rs07.event.RandomExecutor cannot be resolved. It is indirectly referenced from required .class files

I get this error if i try to do that:

The type org.osbot.rs07.event.RandomExecutor cannot be resolved. It is indirectly referenced from required .class files

 

Acquire a better IDE :boge:

#EclipseSux :boge:

 

I get this error if i try to do that:

The type org.osbot.rs07.event.RandomExecutor cannot be resolved. It is indirectly referenced from required .class files

 

Clean your project, remove osbot from buildpath and re add it, restart eclipse.

  • Author

Clean your project, remove osbot from buildpath and re add it, restart eclipse.

 

 

Acquire a better IDE boge.png

#EclipseSux boge.png

 

 

Okay thx, and should I implement it in onStart() or onLoop() ? Knowing that onStart() only gets executed after login.

Okay thx, and should I implement it in onStart() or onLoop() ? Knowing that onStart() only gets executed after login.

 

onStart since it only needs to be set once.

  • Author

@FrostBug @LoudPacks

Ok thanks guys, I've managed to override the auto login, now I've got my own break system that works.

Edited by dokato

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.