project: rev 200
This commit is contained in:
@@ -1,76 +1,70 @@
|
||||
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.Reflection;
|
||||
|
||||
@ObfuscatedName("bh")
|
||||
@ObfuscatedName("bc")
|
||||
@Implements("World")
|
||||
public class World {
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedName("ss")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 379964613
|
||||
intValue = -1010823159
|
||||
)
|
||||
static int field774;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -48833233
|
||||
)
|
||||
@Export("World_count")
|
||||
static int World_count;
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1774398663
|
||||
intValue = -2050249947
|
||||
)
|
||||
@Export("World_listCount")
|
||||
static int World_listCount;
|
||||
@ObfuscatedName("a")
|
||||
@Export("World_sortOption2")
|
||||
static int[] World_sortOption2;
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("e")
|
||||
@Export("World_sortOption1")
|
||||
static int[] World_sortOption1;
|
||||
@ObfuscatedName("bi")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "[Loi;"
|
||||
)
|
||||
@Export("worldSelectArrows")
|
||||
static IndexedSprite[] worldSelectArrows;
|
||||
@ObfuscatedName("eb")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lkx;"
|
||||
)
|
||||
@Export("archive8")
|
||||
static Archive archive8;
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 193044341
|
||||
intValue = -86238293
|
||||
)
|
||||
@Export("id")
|
||||
int id;
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1525718377
|
||||
intValue = 1958786797
|
||||
)
|
||||
@Export("properties")
|
||||
int properties;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 20105997
|
||||
intValue = -538729111
|
||||
)
|
||||
@Export("population")
|
||||
int population;
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("v")
|
||||
@Export("host")
|
||||
String host;
|
||||
@ObfuscatedName("s")
|
||||
@Export("activity")
|
||||
String activity;
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1040537499
|
||||
intValue = 669690355
|
||||
)
|
||||
@Export("location")
|
||||
int location;
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -479539557
|
||||
intValue = 388841903
|
||||
)
|
||||
@Export("index")
|
||||
int index;
|
||||
@@ -85,48 +79,48 @@ public class World {
|
||||
World() {
|
||||
}
|
||||
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)Z",
|
||||
garbageValue = "-311027457"
|
||||
garbageValue = "1340119949"
|
||||
)
|
||||
@Export("isMembersOnly")
|
||||
boolean isMembersOnly() {
|
||||
return (1 & this.properties) != 0;
|
||||
}
|
||||
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)Z",
|
||||
garbageValue = "-1475784103"
|
||||
)
|
||||
boolean method1614() {
|
||||
return (2 & this.properties) != 0;
|
||||
}
|
||||
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(B)Z",
|
||||
garbageValue = "1"
|
||||
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("v")
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)Z",
|
||||
garbageValue = "1562214326"
|
||||
garbageValue = "1652055615"
|
||||
)
|
||||
boolean method1619() {
|
||||
boolean method1594() {
|
||||
return (8 & this.properties) != 0;
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(B)Z",
|
||||
garbageValue = "23"
|
||||
garbageValue = "102"
|
||||
)
|
||||
@Export("isDeadman")
|
||||
boolean isDeadman() {
|
||||
@@ -136,71 +130,215 @@ public class World {
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)Z",
|
||||
garbageValue = "217290344"
|
||||
garbageValue = "2054012301"
|
||||
)
|
||||
@Export("isBeta")
|
||||
boolean isBeta() {
|
||||
return (33554432 & this.properties) != 0;
|
||||
}
|
||||
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)Z",
|
||||
garbageValue = "-2119870644"
|
||||
garbageValue = "2055128830"
|
||||
)
|
||||
boolean method1616() {
|
||||
boolean method1639() {
|
||||
return (1073741824 & this.properties) != 0;
|
||||
}
|
||||
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Ljava/lang/String;I)Ljava/lang/Class;",
|
||||
garbageValue = "1818446610"
|
||||
descriptor = "(Ljava/lang/String;Ljava/lang/String;ZB)Lnj;",
|
||||
garbageValue = "126"
|
||||
)
|
||||
@Export("loadClassFromDescriptor")
|
||||
static Class loadClassFromDescriptor(String var0) throws ClassNotFoundException {
|
||||
if (var0.equals("B")) {
|
||||
return Byte.TYPE;
|
||||
} else if (var0.equals("I")) {
|
||||
return Integer.TYPE;
|
||||
} else if (var0.equals("S")) {
|
||||
return Short.TYPE;
|
||||
} else if (var0.equals("J")) {
|
||||
return Long.TYPE;
|
||||
} else if (var0.equals("Z")) {
|
||||
return Boolean.TYPE;
|
||||
} else if (var0.equals("F")) {
|
||||
return Float.TYPE;
|
||||
} else if (var0.equals("D")) {
|
||||
return Double.TYPE;
|
||||
} else if (var0.equals("C")) {
|
||||
return Character.TYPE;
|
||||
} else {
|
||||
return var0.equals("void") ? Void.TYPE : Reflection.findClass(var0);
|
||||
@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) {
|
||||
}
|
||||
}
|
||||
|
||||
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) {
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
var6 = new AccessFile(var3, "rw", 10000L);
|
||||
return var6;
|
||||
} catch (IOException var7) {
|
||||
throw new RuntimeException();
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(ILbg;ZB)I",
|
||||
garbageValue = "46"
|
||||
descriptor = "(Lbc;B)V",
|
||||
garbageValue = "1"
|
||||
)
|
||||
static int method1661(int var0, Script var1, boolean var2) {
|
||||
int var3;
|
||||
if (var0 == 3500) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class240.Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = WorldMapCacheName.method3872(var3) ? 1 : 0;
|
||||
return 1;
|
||||
} else if (var0 == 3501) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class240.Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = NPCComposition.method2980(var3) ? 1 : 0;
|
||||
return 1;
|
||||
} else if (var0 == 3502) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class240.Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++class240.Interpreter_intStackSize - 1] = GraphicsObject.method1871(var3) ? 1 : 0;
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
@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 (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", "");
|
||||
} 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.", "");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
class17.setLoginResponseString("RuneScape has been updated!", "Please reload this page.", "");
|
||||
}
|
||||
|
||||
UserList.updateGameState(10);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user