more RSClient refactoring
This commit is contained in:
@@ -260,11 +260,11 @@ public final class IsaacCipher {
|
||||
)
|
||||
static void method4093(int var0) {
|
||||
if (var0 == -3) {
|
||||
class54.method1089("Connection timed out.", "Please try using a different world.", "");
|
||||
class54.setLoginResponseString("Connection timed out.", "Please try using a different world.", "");
|
||||
} else if (var0 == -2) {
|
||||
class54.method1089("", "Error connecting to server.", "");
|
||||
class54.setLoginResponseString("", "Error connecting to server.", "");
|
||||
} else if (var0 == -1) {
|
||||
class54.method1089("No response from server.", "Please try using a different world.", "");
|
||||
class54.setLoginResponseString("No response from server.", "Please try using a different world.", "");
|
||||
} else if (var0 == 3) {
|
||||
Login.loginIndex = 3;
|
||||
Login.field467 = 1;
|
||||
@@ -272,65 +272,65 @@ public final class IsaacCipher {
|
||||
class32.method578(0);
|
||||
} else if (var0 == 5) {
|
||||
Login.field467 = 2;
|
||||
class54.method1089("Your account has not logged out from its last", "session or the server is too busy right now.", "Please try again in a few minutes.");
|
||||
class54.setLoginResponseString("Your account has not logged out from its last", "session or the server is too busy right now.", "Please try again in a few minutes.");
|
||||
} else if (var0 != 68 && (Client.onMobile || var0 != 6)) {
|
||||
if (var0 == 7) {
|
||||
class54.method1089("This world is full.", "Please use a different world.", "");
|
||||
class54.setLoginResponseString("This world is full.", "Please use a different world.", "");
|
||||
} else if (var0 == 8) {
|
||||
class54.method1089("Unable to connect.", "Login server offline.", "");
|
||||
class54.setLoginResponseString("Unable to connect.", "Login server offline.", "");
|
||||
} else if (var0 == 9) {
|
||||
class54.method1089("Login limit exceeded.", "Too many connections from your address.", "");
|
||||
class54.setLoginResponseString("Login limit exceeded.", "Too many connections from your address.", "");
|
||||
} else if (var0 == 10) {
|
||||
class54.method1089("Unable to connect.", "Bad session id.", "");
|
||||
class54.setLoginResponseString("Unable to connect.", "Bad session id.", "");
|
||||
} else if (var0 == 11) {
|
||||
class54.method1089("We suspect someone knows your password.", "Press 'change your password' on front page.", "");
|
||||
class54.setLoginResponseString("We suspect someone knows your password.", "Press 'change your password' on front page.", "");
|
||||
} else if (var0 == 12) {
|
||||
class54.method1089("You need a members account to login to this world.", "Please subscribe, or use a different world.", "");
|
||||
class54.setLoginResponseString("You need a members account to login to this world.", "Please subscribe, or use a different world.", "");
|
||||
} else if (var0 == 13) {
|
||||
class54.method1089("Could not complete login.", "Please try using a different world.", "");
|
||||
class54.setLoginResponseString("Could not complete login.", "Please try using a different world.", "");
|
||||
} else if (var0 == 14) {
|
||||
class54.method1089("The server is being updated.", "Please wait 1 minute and try again.", "");
|
||||
class54.setLoginResponseString("The server is being updated.", "Please wait 1 minute and try again.", "");
|
||||
} else if (var0 == 16) {
|
||||
class54.method1089("Too many login attempts.", "Please wait a few minutes before trying again.", "");
|
||||
class54.setLoginResponseString("Too many login attempts.", "Please wait a few minutes before trying again.", "");
|
||||
} else if (var0 == 17) {
|
||||
class54.method1089("You are standing in a members-only area.", "To play on this world move to a free area first", "");
|
||||
class54.setLoginResponseString("You are standing in a members-only area.", "To play on this world move to a free area first", "");
|
||||
} else if (var0 == 18) {
|
||||
class32.method578(1);
|
||||
} else if (var0 == 19) {
|
||||
class54.method1089("This world is running a closed Beta.", "Sorry invited players only.", "Please use a different world.");
|
||||
class54.setLoginResponseString("This world is running a closed Beta.", "Sorry invited players only.", "Please use a different world.");
|
||||
} else if (var0 == 20) {
|
||||
class54.method1089("Invalid loginserver requested.", "Please try using a different world.", "");
|
||||
class54.setLoginResponseString("Invalid loginserver requested.", "Please try using a different world.", "");
|
||||
} else if (var0 == 22) {
|
||||
class54.method1089("Malformed login packet.", "Please try again.", "");
|
||||
class54.setLoginResponseString("Malformed login packet.", "Please try again.", "");
|
||||
} else if (var0 == 23) {
|
||||
class54.method1089("No reply from loginserver.", "Please wait 1 minute and try again.", "");
|
||||
class54.setLoginResponseString("No reply from loginserver.", "Please wait 1 minute and try again.", "");
|
||||
} else if (var0 == 24) {
|
||||
class54.method1089("Error loading your profile.", "Please contact customer support.", "");
|
||||
class54.setLoginResponseString("Error loading your profile.", "Please contact customer support.", "");
|
||||
} else if (var0 == 25) {
|
||||
class54.method1089("Unexpected loginserver response.", "Please try using a different world.", "");
|
||||
class54.setLoginResponseString("Unexpected loginserver response.", "Please try using a different world.", "");
|
||||
} else if (var0 == 26) {
|
||||
class54.method1089("This computers address has been blocked", "as it was used to break our rules.", "");
|
||||
class54.setLoginResponseString("This computers address has been blocked", "as it was used to break our rules.", "");
|
||||
} else if (var0 == 27) {
|
||||
class54.method1089("", "Service unavailable.", "");
|
||||
class54.setLoginResponseString("", "Service unavailable.", "");
|
||||
} else if (var0 == 31) {
|
||||
class54.method1089("Your account must have a displayname set", "in order to play the game. Please set it", "via the website, or the main game.");
|
||||
class54.setLoginResponseString("Your account must have a displayname set", "in order to play the game. Please set it", "via the website, or the main game.");
|
||||
} else if (var0 == 32) {
|
||||
class54.method1089("Your attempt to log into your account was", "unsuccessful. Don't worry, you can sort", "this out by visiting the billing system.");
|
||||
class54.setLoginResponseString("Your attempt to log into your account was", "unsuccessful. Don't worry, you can sort", "this out by visiting the billing system.");
|
||||
} else if (var0 == 37) {
|
||||
class54.method1089("Your account is currently inaccessible.", "Please try again in a few minutes.", "");
|
||||
class54.setLoginResponseString("Your account is currently inaccessible.", "Please try again in a few minutes.", "");
|
||||
} else if (var0 == 38) {
|
||||
class54.method1089("You need to vote to play!", "Visit runescape.com and vote,", "and then come back here!");
|
||||
class54.setLoginResponseString("You need to vote to play!", "Visit runescape.com and vote,", "and then come back here!");
|
||||
} else if (var0 == 55) {
|
||||
Login.loginIndex = 8;
|
||||
} else {
|
||||
if (var0 == 56) {
|
||||
class54.method1089("Enter the 6-digit code generated by your", "authenticator app.", "");
|
||||
class54.setLoginResponseString("Enter the 6-digit code generated by your", "authenticator app.", "");
|
||||
GameShell.updateGameState(11);
|
||||
return;
|
||||
}
|
||||
|
||||
if (var0 == 57) {
|
||||
class54.method1089("The code you entered was incorrect.", "Please try again.", "");
|
||||
class54.setLoginResponseString("The code you entered was incorrect.", "Please try again.", "");
|
||||
GameShell.updateGameState(11);
|
||||
return;
|
||||
}
|
||||
@@ -338,11 +338,11 @@ public final class IsaacCipher {
|
||||
if (var0 == 61) {
|
||||
Login.loginIndex = 7;
|
||||
} else {
|
||||
class54.method1089("Unexpected server response", "Please try using a different world.", "");
|
||||
class54.setLoginResponseString("Unexpected server response", "Please try using a different world.", "");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
class54.method1089("RuneScape has been updated!", "Please reload this page.", "");
|
||||
class54.setLoginResponseString("RuneScape has been updated!", "Please reload this page.", "");
|
||||
}
|
||||
|
||||
GameShell.updateGameState(10);
|
||||
|
||||
Reference in New Issue
Block a user