var clientBASE = new User();
var username = ["Username1","Username2"];
var password1 = ["Password1","Password2"];
var arrayLength = username.length;
var i;
for(i=0; i < arrayLength; i++){
client.logOn({
"accountName": username[i],
"password": password1[i],
});
{
clientBASE.on('loggedOn', function(details) {
console.log("Logged into Server as " + clientBASE.userID.getUserID());
clientBASE.setText("Logged in");
console.log("Logged In");
clientBASE.logOff();
});
}
At the moment the script just currently logs into Username2 and skips username1 The script should log into username1, run the code, pause, then log into username2 and run the same code.
Any help would be appreciated