Jump to content

Keeping script logged out


Recommended Posts

Posted

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;
			}
		});

	}

  • Like 2
Posted

 

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

Posted (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 boge.png 

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 emote3.png

option 2) create a "login manager" thread which checks when to log in.

Edited by House
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...