DylanSRT Posted November 17, 2018 Share Posted November 17, 2018 (edited) Hi everyone, I'm trying to get my farming/birdhouse scripts to logout and sleep for a certain amount of time before re initializing the AutoLogin function. At the current moment I have just been having it chill in bank and change tabs every few minutes. So I tried using something like this: logoutTab.logout(); sleep(3000000); //3m is 50mins in milliseconds So right after it logs out, it tries to log back in with the auto logger (before completing the rest of the loop with the sleep). Has anyone done this successfully? Am I missing something? Edit: would be great if we could get a logoutSleep(int seconds) method for the logoutTab api. Seems like something that would be useful to most scripters Edited November 17, 2018 by DylanSRT Quote Link to comment Share on other sites More sharing options...
jca Posted November 17, 2018 Share Posted November 17, 2018 11 minutes ago, DylanSRT said: Hi everyone, I'm trying to get my farming/birdhouse scripts to logout and sleep for a certain amount of time before re initializing the AutoLogin function. At the current moment I have just been having it chill in bank and change tabs every few minutes. So I tried using something like this: logoutTab.logout(); sleep(3000000); //3m is 50mins in milliseconds So right after it logs out, it tries to log back in with the auto logger (before completing the rest of the loop with the sleep). Has anyone done this successfully? Am I missing something? Edit: would be great if we could get a logoutSleep(int seconds) method for the logoutTab api. Seems like something that would be useful to most scripters You have to override the default login handler with something like this Then use the CLI to launch the script with -allow norandoms 3 Quote Link to comment Share on other sites More sharing options...
Juggles Posted November 18, 2018 Share Posted November 18, 2018 Yes as @jca pointed out, you will need to use CLI and then create your own login handler to log back in after X amount of time. Here is the full CLI table 1 Quote Link to comment Share on other sites More sharing options...
DylanSRT Posted November 20, 2018 Author Share Posted November 20, 2018 @jca @Juggles Unfortunately, I only use mirror mode. There is no way to launch a mirror mode client through cli is there? wish they supported mirror mode more Quote Link to comment Share on other sites More sharing options...
Tom Posted November 20, 2018 Share Posted November 20, 2018 26 minutes ago, DylanSRT said: @jca @Juggles Unfortunately, I only use mirror mode. There is no way to launch a mirror mode client through cli is there? wish they supported mirror mode more Correct, mirror mode does not support CLI. Quote Link to comment Share on other sites More sharing options...