Team Cape Posted October 3, 2016 Posted October 3, 2016 (edited) As far as I've heard, unregistering the hook for the login random event is impossible now because unregistering hooks was taken out. 2 questions: 1. Will the randomeventhandler override a sleep? 2. If not, is there any way to manually create a 'break' within the script? Edited October 3, 2016 by Imateamcape
Team Cape Posted October 3, 2016 Author Posted October 3, 2016 (edited) didnt mean overriding in that sense. was asking if it takes priority over sleeping. don't know why you would assume that type of overriding because it clearly has nothing to do with this (??) Edited October 3, 2016 by Imateamcape
House Posted October 3, 2016 Posted October 3, 2016 didnt mean overriding in that sense. was asking if it takes priority over sleeping. don't know why you would assume that type of overriding because it clearly has nothing to do with this (??) if u feel like acting smart though, might as well actually help? I think you have the wrong idea. Although your reaction of self defense might be a result of some insecurities. I was pointing out that those two words you used are the solution. You need to override the break handler. public void enableLoginManager() { script.log("Enabling Login Manager!"); script.getBot().getRandomExecutor().registerHook(new RandomBehaviourHook(RandomEvent.AUTO_LOGIN) { public boolean shouldActivate() { return super.shouldActivate(); } public boolean shouldActivatePreLoop() { return super.shouldActivatePreLoop(); } public boolean shouldActivatePostLoop() { return super.shouldActivatePreLoop(); } }); } public void disableLoginManager() { script.log("Disabled Login Manager!"); script.bot.getRandomExecutor().registerHook(new RandomBehaviourHook(RandomEvent.AUTO_LOGIN) { public boolean shouldActivate() { return false; } public boolean shouldActivatePreLoop() { return false; } public boolean shouldActivatePostLoop() { return false; } }); } 2
Team Cape Posted October 3, 2016 Author Posted October 3, 2016 I think you have the wrong idea. Although your reaction of self defense might be a result of some insecurities. I was pointing out that those two words you used are the solution. You need to override the break handler. my bad m8. that was my point though. as far as i know, doing that has been disabled. at least that was what i was told on a similar thread around a month ago
House Posted October 3, 2016 Posted October 3, 2016 (edited) my bad m8. that was my point though. as far as i know, doing that has been disabled. at least that was what i was told on a similar thread around a month ago works as of today It was something else they changed i have read about it too, don't remember what exactly Note: from my experience when you tell the script to log out with the osbot api the actualy loop will pause too meaning to re-enable login manager to log in you have to find a way to check when to re-enable. option 1) use your paint loop to check option 2) create a "login manager" thread which checks when to log in. Edited October 3, 2016 by House 1