November 16, 20214 yr How to create a custom "BREAK HANDLER" for my script? Is there any functionality that allows me to log off and pause the script for a certain amount of time?
November 16, 20214 yr 20 minutes ago, Heiz said: How to create a custom "BREAK HANDLER" for my script? Is there any functionality that allows me to log off and pause the script for a certain amount of time? yeah explv has written some base code for this. You should be able to find it when you google search for it.
November 16, 20214 yr Author 1 hour ago, minewarriors said: yeah explv has written some base code for this. You should be able to find it when you google search for it. Found it, thanks https://osbot.org/forum/topic/109560-a-simple-login-handler/
November 17, 20214 yr Alternatively if you don't want to make a custom break manager, you can simply tell the bot to go to an area before breaks are triggered by using this method that based pat improved recently: getBot().getTimeUntilNextBreak() this will tell you the time (in seconds now) until breaks will trigger. So if getBot().getTimeUntilNextBreak() < 20, walk to bank or walk to a safe area.
Create an account or sign in to comment