Heiz Posted November 16, 2021 Share Posted November 16, 2021 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? Quote Link to comment Share on other sites More sharing options...
minewarriors Posted November 16, 2021 Share Posted November 16, 2021 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. 1 Quote Link to comment Share on other sites More sharing options...
Heiz Posted November 16, 2021 Author Share Posted November 16, 2021 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/ Quote Link to comment Share on other sites More sharing options...
Gunman Posted November 16, 2021 Share Posted November 16, 2021 @Heiz If you just want to override the break manager then you can try this 3 Quote Link to comment Share on other sites More sharing options...
Czar Posted November 17, 2021 Share Posted November 17, 2021 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. 3 2 Quote Link to comment Share on other sites More sharing options...