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.

Keeping script logged out

Featured Replies

As far as I've heard, unregistering the hook for the login random event is impossible now because unregistering hooks was taken out. 2 questions:

 

 

  1. Will the randomeventhandler override a sleep?

  2. If not, is there any way to manually create a 'break' within the script?

Edited by Imateamcape

 

 

randomeventhandler  overrideing

 

  • Author

 

 

didnt mean overriding in that sense. was asking if it takes priority over sleeping. don't know why you would assume that type of overriding because it clearly has nothing to do with this (??)

Edited by Imateamcape

didnt mean overriding in that sense. was asking if it takes priority over sleeping. don't know why you would assume that type of overriding because it clearly has nothing to do with this (??)

 

if u feel like acting smart though, might as well actually help?

 

I think you have the wrong idea. Although your reaction of self defense might be a result of some insecurities. 

I was pointing out that those two words you used are the solution.

You need to override the break handler.

public void enableLoginManager() {

		script.log("Enabling Login Manager!");

		script.getBot().getRandomExecutor().registerHook(new RandomBehaviourHook(RandomEvent.AUTO_LOGIN) {
			public boolean shouldActivate() {
				return super.shouldActivate();
			}

			public boolean shouldActivatePreLoop() {
				return super.shouldActivatePreLoop();
			}

			public boolean shouldActivatePostLoop() {
				return super.shouldActivatePreLoop();
			}
		});

	}

	public void disableLoginManager() {

		script.log("Disabled Login Manager!");

		script.bot.getRandomExecutor().registerHook(new RandomBehaviourHook(RandomEvent.AUTO_LOGIN) {
			public boolean shouldActivate() {
				return false;
			}

			public boolean shouldActivatePreLoop() {
				return false;
			}

			public boolean shouldActivatePostLoop() {
				return false;
			}
		});

	}

  • Author

 

I think you have the wrong idea. Although your reaction of self defense might be a result of some insecurities. 

I was pointing out that those two words you used are the solution.

You need to override the break handler.

 

my bad m8. that was my point though. as far as i know, doing that has been disabled. at least that was what i was told on a similar thread around a month ago

my bad m8. that was my point though. as far as i know, doing that has been disabled. at least that was what i was told on a similar thread around a month ago

 

works as of today boge.png 

It was something else they changed i have read about it too, don't remember what exactly

Note: from my experience when you tell the script to log out with the osbot api the actualy loop will pause too meaning to re-enable login manager to log in you have to find  a way to check when to re-enable.

 

option 1) use your paint loop to check emote3.png

option 2) create a "login manager" thread which checks when to log in.

Edited by House

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.