Jump to content

Delay login HELP


Recommended Posts

Posted (edited)
public int onLoop() throws InterruptedException {
		NPC monster=npcs.closest("monster");
		if(monster.isVisible()){
			Time=System.currentTimeMillis();
			logoutTab.logOut;//logout game
		}
		return 0;
	}
public void onStart() {
		bot.getRandomExecutor().registerHook(new RandomBehaviourHook(
				RandomEvent.AUTO_LOGIN) {
                        public boolean shouldActivate() {
				if(this.client.getLoginStateValue()==10&&System.currentTimeMillis()-Time>20000){//Delay login
					return true;
				}
				return false;
			}
		});
	}
Before 2.4.96 is perfect.
 
2.4.99 Removed "RandomBehaviourHook".
 
What should I do?(please give the sample)
 

 

Edited by AngryKey

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