Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved Simple break handler?

cuppa.drink(java);
Joined
Mar 13, 2018
Messages
7,301
Just looking for a way to make a simple break handler.
What I was doing before was something like:
Code:
Execution.delay(x,y);
so the bot would pause and timeout via afk logout, but the problem is after afk logging out the runemate client login handler instantly sees "oh we're logged out" and logs back in. Then it continues to afk until it logs out again, repeat until Execution.delay(x,y) is over.

Should I be doing pause() for break handler, and then... have a second thread checking time and after X time unpause?

On a related note, if the bot performs stop(), can you later perform run() somehow so the bot doesn't waste time from the 200 hours while on a long break?
 
Joined
Aug 23, 2015
Messages
1,970
Just looking for a way to make a simple break handler.
What I was doing before was something like:
Code:
Execution.delay(x,y);
so the bot would pause and timeout via afk logout, but the problem is after afk logging out the runemate client login handler instantly sees "oh we're logged out" and logs back in. Then it continues to afk until it logs out again, repeat until Execution.delay(x,y) is over.

Should I be doing pause() for break handler, and then... have a second thread checking time and after X time unpause?

On a related note, if the bot performs stop(), can you later perform run() somehow so the bot doesn't waste time from the 200 hours while on a long break?
You have to disable login handler using GameEvents

There are lots of ways to make it, but the only way to unpause is by having the user click unpause.

No.
 
Top