H0rn Posted January 21, 2018 Share Posted January 21, 2018 I've been looking through the API but I can't seem to find anything that would let me check when and how long the bot is set to break for? Quote Link to comment Share on other sites More sharing options...
Mad Casper Posted January 21, 2018 Share Posted January 21, 2018 You can look it up on the client itself, There's a special box setting. Just enable and set your breaks on, set time the bot should run from to. and set the amount it time it needs to break for. so let's say botting one hour break for 15 mins. You can also see the bot logger at client Quote Link to comment Share on other sites More sharing options...
H0rn Posted January 21, 2018 Author Share Posted January 21, 2018 1 minute ago, botty1 said: You can look it up on the client itself, There's a special box setting. Just enable and set your breaks on, set time the bot should run from to. and set the amount it time it needs to break for. so let's say botting one hour break for 15 mins. You can also see the bot logger at client No I mean within a script, I am looking to detect when the bot is going to break and then do something before it does if you know what I mean Quote Link to comment Share on other sites More sharing options...
Eagle Scripts Posted January 21, 2018 Share Posted January 21, 2018 (edited) s.getBot()#getRandomExecutor()#getTimeUntilBreak() If breaking is disabled this will return -1. Edited January 21, 2018 by Eagle Scripts 2 Quote Link to comment Share on other sites More sharing options...
H0rn Posted January 21, 2018 Author Share Posted January 21, 2018 Just now, Eagle Scripts said: s.getBot()#getRandomExecutor()#getTimeUntilBreak() If breaking is disabled this will return -1. Absolute legend mate thanks a bunch 1 Quote Link to comment Share on other sites More sharing options...
Apaec Posted January 21, 2018 Share Posted January 21, 2018 You can get the minutes until the next break as follows: int minsUntilBreak = getBot().getRandomExecutor().getTimeUntilBreak(); See: https://osbot.org/api/org/osbot/rs07/event/RandomExecutor.html#getTimeUntilBreak-- -Apa 1 Quote Link to comment Share on other sites More sharing options...
Mad Casper Posted January 21, 2018 Share Posted January 21, 2018 Aha didnt see the API stuff Quote Link to comment Share on other sites More sharing options...