Jump to content

Make the bot idle in login screen


OELABOELA2

Recommended Posts

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?

 

 

Link to comment
Share on other sites

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)

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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