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.

Make the bot idle in login screen

Featured Replies

Hey guys,

I'm trying to make the bot go to the login screen and wait a few minutes and then log back in. While it's idling I want to be able to poll a variable to check if it needs to login or not. I've searched and found things about custom login/break handlers etc etc but what would be the best option in this case?

 

 

  • Author
1 hour ago, FrostBug said:

Solution to similar problem was reached here https://osbot.org/forum/topic/145813-pausing-autologin/

I'm doing exactly that but it's throwing me one error which I can't figure out:

 

java.lang.NullPointerException
 at org.osbot.rs07.script.RandomPainter.onPaint(uf:63)
 at org.osbot.rs07.canvas.WrappedCanvas.IiiiIiiIiiiI(se:158)
 at org.osbot.rs07.canvas.WrappedCanvas.getGraphics(se:65)
 at av.q(av.java:39)
 at client.an(client.java:1673)
 at am.ah(am.java:392)
 at am.run(am.java:346)
 at java.lang.Thread.run(Unknown Source)

 

53 minutes ago, OELABOELA2 said:

I'm doing exactly that but it's throwing me one error which I can't figure out:

 


java.lang.NullPointerException
 at org.osbot.rs07.script.RandomPainter.onPaint(uf:63)
 at org.osbot.rs07.canvas.WrappedCanvas.IiiiIiiIiiiI(se:158)
 at org.osbot.rs07.canvas.WrappedCanvas.getGraphics(se:65)
 at av.q(av.java:39)
 at client.an(client.java:1673)
 at am.ah(am.java:392)
 at am.run(am.java:346)
 at java.lang.Thread.run(Unknown Source)

 

Did you exchange bot context with your break manager?

  • Author
33 minutes ago, FrostBug said:

Did you exchange bot context with your break manager?

Seems like exchanging the context fixed it. The method was depricated though?

 

3 hours ago, OELABOELA2 said:

Seems like exchanging the context fixed it. The method was depricated though?

 

It's generally for internal use. The deprecation in this case does not imply that the method will be removed.
Though since this is how you override a break manager, I would argue that the method should no longer be deprecated.

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.