- Joined
- Mar 13, 2018
- Messages
- 7,301
- Thread Author
- #1
Just looking for a way to make a simple break handler.
What I was doing before was something like:
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?
What I was doing before was something like:
Code:
Execution.delay(x,y);
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?