this yielded an error of getGameName not defined (assuming its because of the fact i didnt put (lastGameString)
will retry in 5-10
case 26: // Lobby - Game Name Exists Already
game = getGameName();
controlData.click(controlData.controls.lobby.button.join);
Delay(1000);
controlData.setText( controlData.controls.lobby.join.editBox.gameName, game - 1);
Delay(1000);
controlData.click(controlData.controls.lobby.join.button.joinGame);
check = 1;
function getGameName(lastGameString)
{
if(!lastGameString)
return "";
else
return (lastGameString.split("-")[0] + "-");
}
function getGameCounter(lastGameString, simple)
{
var myCount;
if(!lastGameString)
return "-1";
else
{
switch(lastGameString.split("-")[1])
{
case "08":
myCount = 9;
break;
case "09":
myCount = 10;
break;
default:
myCount = parseInt(lastGameString.split("-")[1]) + 1;
break;
}
if(!simple)
{
if(myCount <= 9)
return ('0' + myCount);
}
return myCount;
}
}
controlData.click(controlData.controls.lobby.button.join);
Delay(1000);
controlData.setText( controlData.controls.lobby.join.editBox.gameName, game - 1);
Delay(1000);
controlData.click(controlData.controls.lobby.join.button.joinGame);
check = 1;
// inGameAt = 0;
// lastGameStatus = 0;
// setNextGameMake();
locationTimeout(5000, location);
break;