Jump to content

bypass osbot's stopping script because you've tried to login too many times?


Recommended Posts

Posted

 

You can prevent the AUTO_LOGIN Random event from activating via response codes.

You may have to play around with shouldActivate & onResponseCode.

I 've done this before so it's deffo possible,  but not sure if this kinda stuff is allowed for SDN scripts.

		getBot().getRandomExecutor().registerHook(new RandomBehaviourHook(RandomEvent.AUTO_LOGIN) {
			private RandomSolver solver = getBot().getRandomExecutor().forEvent(RandomEvent.AUTO_LOGIN);
			@Override
			public void onResponseCode(int c) throws InterruptedException {
				//INSERT WORK_AROUND HERE
			}
			@Override
			public void onStart() throws InterruptedException {
				super.onStart();
				solver.onStart();
			}
			@Override
			public boolean shouldActivate() {
				return solver.shouldActivate(); //Play around with this
			}
			@Override
			public int onLoop() throws InterruptedException {
				super.onLoop();
				return solver.onLoop();
			}
			@Override
			public void onExit() throws InterruptedException {
				super.onExit();
				solver.onExit();
			}
		});
		
	}

why wouldn't it be allowed? alek looks through the code right?

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