client: rev 201
This commit is contained in:
@@ -1,344 +1,223 @@
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import net.runelite.mapping.Export;
|
||||
import net.runelite.mapping.Implements;
|
||||
import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
import net.runelite.rs.ScriptOpcodes;
|
||||
|
||||
@ObfuscatedName("bc")
|
||||
@ObfuscatedName("bw")
|
||||
@Implements("World")
|
||||
public class World {
|
||||
@ObfuscatedName("ss")
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1010823159
|
||||
)
|
||||
static int field774;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -48833233
|
||||
intValue = -219608595
|
||||
)
|
||||
@Export("World_count")
|
||||
static int World_count;
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -2050249947
|
||||
intValue = -1277834635
|
||||
)
|
||||
@Export("World_listCount")
|
||||
static int World_listCount;
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedName("p")
|
||||
@Export("World_sortOption2")
|
||||
static int[] World_sortOption2;
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("j")
|
||||
@Export("World_sortOption1")
|
||||
static int[] World_sortOption1;
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -86238293
|
||||
intValue = 695076639
|
||||
)
|
||||
@Export("id")
|
||||
int id;
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1958786797
|
||||
intValue = 1588910771
|
||||
)
|
||||
@Export("properties")
|
||||
int properties;
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -538729111
|
||||
intValue = 284961543
|
||||
)
|
||||
@Export("population")
|
||||
int population;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("t")
|
||||
@Export("host")
|
||||
String host;
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedName("l")
|
||||
@Export("activity")
|
||||
String activity;
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 669690355
|
||||
intValue = 1851136007
|
||||
)
|
||||
@Export("location")
|
||||
int location;
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 388841903
|
||||
intValue = -942792527
|
||||
)
|
||||
@Export("index")
|
||||
int index;
|
||||
|
||||
static {
|
||||
World_count = 0;
|
||||
World_listCount = 0;
|
||||
World_sortOption2 = new int[]{1, 1, 1, 1};
|
||||
World_sortOption1 = new int[]{0, 1, 2, 3};
|
||||
World_count = 0; // L: 14
|
||||
World_listCount = 0; // L: 15
|
||||
World_sortOption2 = new int[]{1, 1, 1, 1}; // L: 16
|
||||
World_sortOption1 = new int[]{0, 1, 2, 3}; // L: 17
|
||||
}
|
||||
|
||||
World() {
|
||||
}
|
||||
} // L: 27
|
||||
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)Z",
|
||||
garbageValue = "1340119949"
|
||||
descriptor = "(B)Z",
|
||||
garbageValue = "62"
|
||||
)
|
||||
@Export("isMembersOnly")
|
||||
boolean isMembersOnly() {
|
||||
return (1 & this.properties) != 0;
|
||||
return (1 & this.properties) != 0; // L: 257
|
||||
}
|
||||
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)Z",
|
||||
garbageValue = "2012442922"
|
||||
)
|
||||
boolean method1649() {
|
||||
return (2 & this.properties) != 0; // L: 261
|
||||
}
|
||||
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(B)Z",
|
||||
garbageValue = "71"
|
||||
)
|
||||
@Export("isPvp")
|
||||
boolean isPvp() {
|
||||
return (4 & this.properties) != 0; // L: 265
|
||||
}
|
||||
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(B)Z",
|
||||
garbageValue = "0"
|
||||
)
|
||||
boolean method1592() {
|
||||
return (2 & this.properties) != 0;
|
||||
}
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(B)Z",
|
||||
garbageValue = "-42"
|
||||
)
|
||||
@Export("isPvp")
|
||||
boolean isPvp() {
|
||||
return (4 & this.properties) != 0;
|
||||
}
|
||||
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)Z",
|
||||
garbageValue = "1652055615"
|
||||
garbageValue = "-1239609040"
|
||||
)
|
||||
boolean method1594() {
|
||||
return (8 & this.properties) != 0;
|
||||
boolean method1681() {
|
||||
return (8 & this.properties) != 0; // L: 269
|
||||
}
|
||||
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(B)Z",
|
||||
garbageValue = "102"
|
||||
garbageValue = "40"
|
||||
)
|
||||
@Export("isDeadman")
|
||||
boolean isDeadman() {
|
||||
return (536870912 & this.properties) != 0;
|
||||
return (536870912 & this.properties) != 0; // L: 273
|
||||
}
|
||||
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)Z",
|
||||
garbageValue = "2054012301"
|
||||
garbageValue = "1502884763"
|
||||
)
|
||||
@Export("isBeta")
|
||||
boolean isBeta() {
|
||||
return (33554432 & this.properties) != 0;
|
||||
return (33554432 & this.properties) != 0; // L: 277
|
||||
}
|
||||
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)Z",
|
||||
garbageValue = "2055128830"
|
||||
descriptor = "(B)Z",
|
||||
garbageValue = "0"
|
||||
)
|
||||
boolean method1639() {
|
||||
return (1073741824 & this.properties) != 0;
|
||||
boolean method1652() {
|
||||
return (1073741824 & this.properties) != 0; // L: 281
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Ljava/lang/String;Ljava/lang/String;ZB)Lnj;",
|
||||
garbageValue = "126"
|
||||
descriptor = "(ILbp;ZI)I",
|
||||
garbageValue = "-654094649"
|
||||
)
|
||||
@Export("getPreferencesFile")
|
||||
public static AccessFile getPreferencesFile(String var0, String var1, boolean var2) {
|
||||
File var3 = new File(JagexCache.cacheDir, "preferences" + var0 + ".dat");
|
||||
if (var3.exists()) {
|
||||
try {
|
||||
AccessFile var10 = new AccessFile(var3, "rw", 10000L);
|
||||
return var10;
|
||||
} catch (IOException var9) {
|
||||
static int method1668(int var0, Script var1, boolean var2) {
|
||||
int var3;
|
||||
int var6;
|
||||
int var9;
|
||||
if (var0 == ScriptOpcodes.ENUM_STRING) { // L: 2062
|
||||
class14.Interpreter_intStackSize -= 2; // L: 2063
|
||||
var3 = Interpreter.Interpreter_intStack[class14.Interpreter_intStackSize]; // L: 2064
|
||||
var9 = Interpreter.Interpreter_intStack[class14.Interpreter_intStackSize + 1]; // L: 2065
|
||||
EnumComposition var10 = FloorOverlayDefinition.getEnum(var3); // L: 2066
|
||||
if (var10.outputType != 's') { // L: 2067
|
||||
}
|
||||
}
|
||||
|
||||
String var4 = "";
|
||||
if (UserComparator10.cacheGamebuild == 33) {
|
||||
var4 = "_rc";
|
||||
} else if (UserComparator10.cacheGamebuild == 34) {
|
||||
var4 = "_wip";
|
||||
}
|
||||
|
||||
File var5 = new File(class272.userHomeDirectory, "jagex_" + var1 + "_preferences" + var0 + var4 + ".dat");
|
||||
AccessFile var6;
|
||||
if (!var2 && var5.exists()) {
|
||||
try {
|
||||
var6 = new AccessFile(var5, "rw", 10000L);
|
||||
return var6;
|
||||
} catch (IOException var8) {
|
||||
for (var6 = 0; var6 < var10.outputCount; ++var6) { // L: 2068
|
||||
if (var9 == var10.keys[var6]) { // L: 2069
|
||||
Interpreter.Interpreter_stringStack[++class295.Interpreter_stringStackSize - 1] = var10.strVals[var6]; // L: 2070
|
||||
var10 = null; // L: 2071
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
var6 = new AccessFile(var3, "rw", 10000L);
|
||||
return var6;
|
||||
} catch (IOException var7) {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Lbc;B)V",
|
||||
garbageValue = "1"
|
||||
)
|
||||
@Export("changeWorld")
|
||||
static void changeWorld(World var0) {
|
||||
if (var0.isMembersOnly() != Client.isMembersWorld) {
|
||||
Client.isMembersWorld = var0.isMembersOnly();
|
||||
boolean var1 = var0.isMembersOnly();
|
||||
if (var1 != ItemComposition.ItemDefinition_inMembersWorld) {
|
||||
WorldMapLabelSize.method3446();
|
||||
ItemComposition.ItemDefinition_inMembersWorld = var1;
|
||||
if (var10 != null) { // L: 2075
|
||||
Interpreter.Interpreter_stringStack[++class295.Interpreter_stringStackSize - 1] = var10.defaultStr;
|
||||
}
|
||||
}
|
||||
|
||||
if (var0.properties != Client.worldProperties) {
|
||||
Archive var3 = class176.archive8;
|
||||
int var2 = var0.properties;
|
||||
if ((var2 & 536870912) != 0) {
|
||||
ClanChannelMember.logoSprite = class131.SpriteBuffer_getIndexedSpriteByName(var3, "logo_deadman_mode", "");
|
||||
} else if ((var2 & 1073741824) != 0) {
|
||||
ClanChannelMember.logoSprite = class131.SpriteBuffer_getIndexedSpriteByName(var3, "logo_seasonal_mode", "");
|
||||
return 1; // L: 2076
|
||||
} else if (var0 != ScriptOpcodes.ENUM) { // L: 2078
|
||||
if (var0 == ScriptOpcodes.ENUM_GETOUTPUTCOUNT) { // L: 2104
|
||||
var3 = Interpreter.Interpreter_intStack[--class14.Interpreter_intStackSize]; // L: 2105
|
||||
EnumComposition var4 = FloorOverlayDefinition.getEnum(var3); // L: 2106
|
||||
Interpreter.Interpreter_intStack[++class14.Interpreter_intStackSize - 1] = var4.size(); // L: 2107
|
||||
return 1; // L: 2108
|
||||
} else {
|
||||
ClanChannelMember.logoSprite = class131.SpriteBuffer_getIndexedSpriteByName(var3, "logo", "");
|
||||
}
|
||||
}
|
||||
|
||||
EnumComposition.worldHost = var0.host;
|
||||
Client.worldId = var0.id;
|
||||
Client.worldProperties = var0.properties;
|
||||
WorldMapLabelSize.worldPort = Client.gameBuild == 0 ? 43594 : var0.id + 40000;
|
||||
UserList.js5Port = Client.gameBuild == 0 ? 443 : var0.id + 50000;
|
||||
RouteStrategy.currentPort = WorldMapLabelSize.worldPort;
|
||||
}
|
||||
|
||||
@ObfuscatedName("eo")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(II)V",
|
||||
garbageValue = "2015327255"
|
||||
)
|
||||
@Export("getLoginError")
|
||||
static void getLoginError(int var0) {
|
||||
if (var0 == -3) {
|
||||
class17.setLoginResponseString("Connection timed out.", "Please try using a different world.", "");
|
||||
} else if (var0 == -2) {
|
||||
class17.setLoginResponseString("Error connecting to server.", "Please try using a different world.", "");
|
||||
} else if (var0 == -1) {
|
||||
class17.setLoginResponseString("No response from server.", "Please try using a different world.", "");
|
||||
} else if (var0 == 3) {
|
||||
class112.method2474(3);
|
||||
Login.field869 = 1;
|
||||
} else if (var0 == 4) {
|
||||
class112.method2474(14);
|
||||
Login.field884 = 0;
|
||||
} else if (var0 == 5) {
|
||||
Login.field869 = 2;
|
||||
class17.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) {
|
||||
class17.setLoginResponseString("This world is full.", "Please use a different world.", "");
|
||||
} else if (var0 == 8) {
|
||||
class17.setLoginResponseString("Unable to connect.", "Login server offline.", "");
|
||||
} else if (var0 == 9) {
|
||||
class17.setLoginResponseString("Login limit exceeded.", "Too many connections from your address.", "");
|
||||
} else if (var0 == 10) {
|
||||
class17.setLoginResponseString("Unable to connect.", "Bad session id.", "");
|
||||
} else if (var0 == 11) {
|
||||
class17.setLoginResponseString("We suspect someone knows your password.", "Press 'change your password' on front page.", "");
|
||||
} else if (var0 == 12) {
|
||||
class17.setLoginResponseString("You need a members account to login to this world.", "Please subscribe, or use a different world.", "");
|
||||
} else if (var0 == 13) {
|
||||
class17.setLoginResponseString("Could not complete login.", "Please try using a different world.", "");
|
||||
} else if (var0 == 14) {
|
||||
class17.setLoginResponseString("The server is being updated.", "Please wait 1 minute and try again.", "");
|
||||
} else if (var0 == 16) {
|
||||
class17.setLoginResponseString("Too many login attempts.", "Please wait a few minutes before trying again.", "");
|
||||
} else if (var0 == 17) {
|
||||
class17.setLoginResponseString("You are standing in a members-only area.", "To play on this world move to a free area first", "");
|
||||
} else if (var0 == 18) {
|
||||
class112.method2474(14);
|
||||
Login.field884 = 1;
|
||||
} else if (var0 == 19) {
|
||||
class17.setLoginResponseString("This world is running a closed Beta.", "Sorry invited players only.", "Please use a different world.");
|
||||
} else if (var0 == 20) {
|
||||
class17.setLoginResponseString("Invalid loginserver requested.", "Please try using a different world.", "");
|
||||
} else if (var0 == 22) {
|
||||
class17.setLoginResponseString("Malformed login packet.", "Please try again.", "");
|
||||
} else if (var0 == 23) {
|
||||
class17.setLoginResponseString("No reply from loginserver.", "Please wait 1 minute and try again.", "");
|
||||
} else if (var0 == 24) {
|
||||
class17.setLoginResponseString("Error loading your profile.", "Please contact customer support.", "");
|
||||
} else if (var0 == 25) {
|
||||
class17.setLoginResponseString("Unexpected loginserver response.", "Please try using a different world.", "");
|
||||
} else if (var0 == 26) {
|
||||
class17.setLoginResponseString("This computers address has been blocked", "as it was used to break our rules.", "");
|
||||
} else if (var0 == 27) {
|
||||
class17.setLoginResponseString("", "Service unavailable.", "");
|
||||
} else if (var0 == 31) {
|
||||
class17.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) {
|
||||
class17.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) {
|
||||
class17.setLoginResponseString("Your account is currently inaccessible.", "Please try again in a few minutes.", "");
|
||||
} else if (var0 == 38) {
|
||||
class17.setLoginResponseString("You need to vote to play!", "Visit runescape.com and vote,", "and then come back here!");
|
||||
} else if (var0 == 55) {
|
||||
class112.method2474(8);
|
||||
} else {
|
||||
if (var0 == 56) {
|
||||
class17.setLoginResponseString("Enter the 6-digit code generated by your", "authenticator app.", "");
|
||||
UserList.updateGameState(11);
|
||||
return;
|
||||
}
|
||||
|
||||
if (var0 == 57) {
|
||||
class17.setLoginResponseString("The code you entered was incorrect.", "Please try again.", "");
|
||||
UserList.updateGameState(11);
|
||||
return;
|
||||
}
|
||||
|
||||
if (var0 == 61) {
|
||||
class112.method2474(7);
|
||||
} else {
|
||||
if (var0 == 62) {
|
||||
UserList.updateGameState(10);
|
||||
class112.method2474(9);
|
||||
class17.setLoginResponseString("Login attempt timed out.", "Please try again.", "");
|
||||
return;
|
||||
}
|
||||
|
||||
if (var0 == 63) {
|
||||
UserList.updateGameState(10);
|
||||
class112.method2474(9);
|
||||
class17.setLoginResponseString("You were signed out.", "Please sign in again.", "");
|
||||
return;
|
||||
}
|
||||
|
||||
if (var0 == 65 || var0 == 67) {
|
||||
UserList.updateGameState(10);
|
||||
class112.method2474(9);
|
||||
class17.setLoginResponseString("Failed to login.", "Please try again.", "");
|
||||
return;
|
||||
}
|
||||
|
||||
class17.setLoginResponseString("Unexpected server response", "Please try using a different world.", "");
|
||||
}
|
||||
return 2; // L: 2110
|
||||
}
|
||||
} else {
|
||||
class17.setLoginResponseString("RuneScape has been updated!", "Please reload this page.", "");
|
||||
}
|
||||
class14.Interpreter_intStackSize -= 4; // L: 2079
|
||||
var3 = Interpreter.Interpreter_intStack[class14.Interpreter_intStackSize]; // L: 2080
|
||||
var9 = Interpreter.Interpreter_intStack[class14.Interpreter_intStackSize + 1]; // L: 2081
|
||||
int var5 = Interpreter.Interpreter_intStack[class14.Interpreter_intStackSize + 2]; // L: 2082
|
||||
var6 = Interpreter.Interpreter_intStack[class14.Interpreter_intStackSize + 3]; // L: 2083
|
||||
EnumComposition var7 = FloorOverlayDefinition.getEnum(var5); // L: 2084
|
||||
if (var3 == var7.inputType && var9 == var7.outputType) { // L: 2085
|
||||
for (int var8 = 0; var8 < var7.outputCount; ++var8) { // L: 2090
|
||||
if (var6 == var7.keys[var8]) { // L: 2091
|
||||
if (var9 == 115) { // L: 2092
|
||||
Interpreter.Interpreter_stringStack[++class295.Interpreter_stringStackSize - 1] = var7.strVals[var8];
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++class14.Interpreter_intStackSize - 1] = var7.intVals[var8]; // L: 2093
|
||||
}
|
||||
|
||||
UserList.updateGameState(10);
|
||||
var7 = null; // L: 2094
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (var7 != null) { // L: 2098
|
||||
if (var9 == 115) { // L: 2099
|
||||
Interpreter.Interpreter_stringStack[++class295.Interpreter_stringStackSize - 1] = var7.defaultStr;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++class14.Interpreter_intStackSize - 1] = var7.defaultInt; // L: 2100
|
||||
}
|
||||
}
|
||||
|
||||
return 1; // L: 2102
|
||||
} else {
|
||||
if (var9 == 115) { // L: 2086
|
||||
Interpreter.Interpreter_stringStack[++class295.Interpreter_stringStackSize - 1] = "null";
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++class14.Interpreter_intStackSize - 1] = 0; // L: 2087
|
||||
}
|
||||
|
||||
return 1; // L: 2088
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user