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.

How to disable the automatic session start?

Featured Replies

I understand that I start the "execute" function and start the session.
How do I disable it?
For what? What do I try to do?
I have a "Timer" that checks a valid time to play, at a certain time it indicates that I stop playing, but when it enters this range the bot starts and starts indefinitely without doing anything, so I would like to disable this function until it is time to play again.
I was investigating the tool:
A Simple Login Handler
Personalize this to my liking, the problem is that I do not know how to place the conditional to stop the automatic.

EYE: Do not "stop (true)" because it stops the script.

18 minutes ago, trainux said:

I understand that I start the "execute" function and start the session.
How do I disable it?
For what? What do I try to do?
I have a "Timer" that checks a valid time to play, at a certain time it indicates that I stop playing, but when it enters this range the bot starts and starts indefinitely without doing anything, so I would like to disable this function until it is time to play again.
I was investigating the tool:
A Simple Login Handler
Personalize this to my liking, the problem is that I do not know how to place the conditional to stop the automatic.

EYE: Do not "stop (true)" because it stops the script.

you need to launch osbot in CLI with the -allow norandoms argument

  • Author
17 hours ago, FrostBug said:

You could override the break manager and have it break whenever it isn't a "valid time to play"

Thank you, solve it with something like this:

int onLoop() {
	if (client.isLoggedIn()) 
		doTasks();
	else
		initLoginHandler();
}

 

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.