Jump to content

Make the bot idle in login screen


Recommended Posts

Posted

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?

 

 

Posted
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)

 

Posted
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?

Posted
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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...