Jump to content

I have a problem with the tool "A Simple Login Handler" by "Explv"


Recommended Posts

Posted
6 minutes ago, trainux said:

my script only works without problem, and the script "A Simple Login Handler" copy and paste it.
I do not understand what could cause one to harm the other.

It's your script that is causing the error. Where are you using getTabs().open()?

Show me the code. Unless you are not properly calling the Login code.

 

Es tu script el que está causando el error. ¿Dónde estás usando getTabs (). Open ()?

Muéstrame el código. A menos que no esté llamando correctamente al código de inicio de sesión.

Posted
5 minutes ago, Chris said:

It's your script that is causing the error. Where are you using getTabs().open()?

Show me the code. Unless you are not properly calling the Login code.

 

Es tu script el que está causando el error. ¿Dónde estás usando getTabs (). Open ()?

Muéstrame el código. A menos que no esté llamando correctamente al código de inicio de sesión.

I call the login code like this:

LoginEvent loginEvent = new LoginEvent("user mail", "password");
getBot().addLoginListener(loginEvent);
execute(loginEvent);

The call I use it in the "onLoop()" in the following way:

@Override
public int onLoop() throws InterruptedException{
	if (client.isLoggedIn()) {
		doTasks();
	}else {
		LoginEvent loginEvent = new LoginEvent("user mail", "password");
        getBot().addLoginListener(loginEvent);
        execute(loginEvent);
	}
	return 1000;
}

As a result, I get this:

https://photos.app.goo.gl/KH25G5oSHPhdbnsC3

Posted
3 minutes ago, trainux said:

I call the login code like this:


LoginEvent loginEvent = new LoginEvent("user mail", "password");
getBot().addLoginListener(loginEvent);
execute(loginEvent);

The call I use it in the "onLoop()" in the following way:


@Override
public int onLoop() throws InterruptedException{
	if (client.isLoggedIn()) {
		doTasks();
	}else {
		LoginEvent loginEvent = new LoginEvent("user mail", "password");
        getBot().addLoginListener(loginEvent);
        execute(loginEvent);
	}
	return 1000;
}

As a result, I get this:

https://photos.app.goo.gl/KH25G5oSHPhdbnsC3

remove from "onLoop()"

getBot().addLoginListener(loginEvent);

 

 

 

What does your "onStart" look like

Posted
22 minutes ago, trainux said:

I call the login code like this:


LoginEvent loginEvent = new LoginEvent("user mail", "password");
getBot().addLoginListener(loginEvent);
execute(loginEvent);

The call I use it in the "onLoop()" in the following way:


@Override
public int onLoop() throws InterruptedException{
	if (client.isLoggedIn()) {
		doTasks();
	}else {
		LoginEvent loginEvent = new LoginEvent("user mail", "password");
        getBot().addLoginListener(loginEvent);
        execute(loginEvent);
	}
	return 1000;
}

As a result, I get this:

https://photos.app.goo.gl/KH25G5oSHPhdbnsC3

 

client.isLoggedIn() returns true on the welcome screen (don't know what its called but after you login there's the "Click here to play" thing), your script is trying to run the doTasks() on that screen and that's where your issues I think are coming from. 

Posted
1 hour ago, Chris said:

remove from "onLoop()"


getBot().addLoginListener(loginEvent);

 

 

 

What does your "onStart" look like

The "comprobacion()" function changes the state of a Boolean:

@Override
public void onStart(){
	log("Arranco");
	runTime = new Timer(0);
	comprobacion();
	mensaje = "Inicio";
}

____________________________________________________________________________________________

1 hour ago, Nimmogel said:

 

client.isLoggedIn() returns true on the welcome screen (don't know what its called but after you login there's the "Click here to play" thing), your script is trying to run the doTasks() on that screen and that's where your issues I think are coming from. 

Modify my "onLoop ()" to the following:

@Override
public int onLoop() throws InterruptedException{
	if(sleep) {
		log("work time");
		LoginEvent loginEvent = new LoginEvent("user mail", "password");
        getBot().addLoginListener(loginEvent);
        execute(loginEvent);
	}
	return 500;
}

As a result, I get this:

https://photos.app.goo.gl/yoOTCk0zId54PweS2

 

 

 

 

 

 

 

 

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