chore: rev 190

This commit is contained in:
ThatGamerBlue
2020-06-18 12:15:38 +01:00
parent c97f7b196e
commit 655106b9df
351 changed files with 41484 additions and 41558 deletions

View File

@@ -1,385 +1,25 @@
import net.runelite.mapping.Export;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import net.runelite.rs.ScriptOpcodes;
@ObfuscatedName("u")
@ObfuscatedName("h")
public final class class13 {
@ObfuscatedName("l")
@ObfuscatedName("sz")
@ObfuscatedSignature(
signature = "Lkb;"
signature = "Lmc;"
)
@Export("NetCache_reference")
public static Buffer NetCache_reference;
@ObfuscatedName("ab")
@Export("platformInfo")
static PlatformInfo platformInfo;
@ObfuscatedName("p")
@ObfuscatedSignature(
signature = "(ILce;ZI)I",
garbageValue = "1707746438"
signature = "[Lch;"
)
static int method132(int var0, Script var1, boolean var2) {
if (var0 == ScriptOpcodes.FRIEND_COUNT) {
if (Projectile.friendSystem.field1092 == 0) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -2;
} else if (Projectile.friendSystem.field1092 == 1) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
} else {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Projectile.friendSystem.friendsList.getSize();
}
return 1;
} else {
int var3;
if (var0 == ScriptOpcodes.FRIEND_GETNAME) {
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
if (Projectile.friendSystem.method1952() && var3 >= 0 && var3 < Projectile.friendSystem.friendsList.getSize()) {
Friend var8 = (Friend)Projectile.friendSystem.friendsList.get(var3);
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var8.getName();
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var8.getPreviousName();
} else {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
}
return 1;
} else if (var0 == ScriptOpcodes.FRIEND_GETWORLD) {
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
if (Projectile.friendSystem.method1952() && var3 >= 0 && var3 < Projectile.friendSystem.friendsList.getSize()) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = ((Buddy)Projectile.friendSystem.friendsList.get(var3)).world;
} else {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else if (var0 == ScriptOpcodes.FRIEND_GETRANK) {
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
if (Projectile.friendSystem.method1952() && var3 >= 0 && var3 < Projectile.friendSystem.friendsList.getSize()) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = ((Buddy)Projectile.friendSystem.friendsList.get(var3)).rank;
} else {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else {
String var5;
if (var0 == ScriptOpcodes.FRIEND_SETRANK) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
int var6 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
class52.method902(var5, var6);
return 1;
} else if (var0 == ScriptOpcodes.FRIEND_ADD) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
Projectile.friendSystem.addFriend(var5);
return 1;
} else if (var0 == ScriptOpcodes.FRIEND_DEL) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
Projectile.friendSystem.removeFriend(var5);
return 1;
} else if (var0 == ScriptOpcodes.IGNORE_ADD) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
Projectile.friendSystem.addIgnore(var5);
return 1;
} else if (var0 == ScriptOpcodes.IGNORE_DEL) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
Projectile.friendSystem.removeIgnore(var5);
return 1;
} else if (var0 == ScriptOpcodes.FRIEND_TEST) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
var5 = Occluder.method3400(var5);
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Projectile.friendSystem.isFriended(new Username(var5, WorldMapIcon_0.loginType), false) ? 1 : 0;
return 1;
} else if (var0 == ScriptOpcodes.CLAN_GETCHATDISPLAYNAME) {
if (InterfaceParent.clanChat != null) {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = InterfaceParent.clanChat.name;
} else {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
}
return 1;
} else if (var0 == ScriptOpcodes.CLAN_GETCHATCOUNT) {
if (InterfaceParent.clanChat != null) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = InterfaceParent.clanChat.getSize();
} else {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else if (var0 == ScriptOpcodes.CLAN_GETCHATUSERNAME) {
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
if (InterfaceParent.clanChat != null && var3 < InterfaceParent.clanChat.getSize()) {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = InterfaceParent.clanChat.get(var3).getUsername().getName();
} else {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
}
return 1;
} else if (var0 == ScriptOpcodes.CLAN_GETCHATUSERWORLD) {
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
if (InterfaceParent.clanChat != null && var3 < InterfaceParent.clanChat.getSize()) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = ((Buddy)InterfaceParent.clanChat.get(var3)).getWorld();
} else {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else if (var0 == ScriptOpcodes.CLAN_GETCHATUSERRANK) {
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
if (InterfaceParent.clanChat != null && var3 < InterfaceParent.clanChat.getSize()) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = ((Buddy)InterfaceParent.clanChat.get(var3)).rank;
} else {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else if (var0 == ScriptOpcodes.CLAN_GETCHATMINKICK) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = InterfaceParent.clanChat != null ? InterfaceParent.clanChat.minKick : 0;
return 1;
} else if (var0 == ScriptOpcodes.CLAN_KICKUSER) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
PlayerAppearance.clanKickUser(var5);
return 1;
} else if (var0 == ScriptOpcodes.CLAN_GETCHATRANK) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = InterfaceParent.clanChat != null ? InterfaceParent.clanChat.rank * 1347537209 * -1076865783 : 0;
return 1;
} else if (var0 == ScriptOpcodes.CLAN_JOINCHAT) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
GrandExchangeEvent.Clan_joinChat(var5);
return 1;
} else if (var0 == ScriptOpcodes.CLAN_LEAVECHAT) {
WorldMapDecoration.Clan_leaveChat();
return 1;
} else if (var0 == ScriptOpcodes.IGNORE_COUNT) {
if (!Projectile.friendSystem.method1952()) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = -1;
} else {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Projectile.friendSystem.ignoreList.getSize();
}
return 1;
} else if (var0 == ScriptOpcodes.IGNORE_GETNAME) {
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
if (Projectile.friendSystem.method1952() && var3 >= 0 && var3 < Projectile.friendSystem.ignoreList.getSize()) {
Ignored var4 = (Ignored)Projectile.friendSystem.ignoreList.get(var3);
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var4.getName();
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var4.getPreviousName();
} else {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
}
return 1;
} else if (var0 == ScriptOpcodes.IGNORE_TEST) {
var5 = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
var5 = Occluder.method3400(var5);
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = Projectile.friendSystem.isIgnored(new Username(var5, WorldMapIcon_0.loginType)) ? 1 : 0;
return 1;
} else if (var0 == ScriptOpcodes.CLAN_ISSELF) {
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
if (InterfaceParent.clanChat != null && var3 < InterfaceParent.clanChat.getSize() && InterfaceParent.clanChat.get(var3).getUsername().equals(ByteArrayPool.localPlayer.username)) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 1;
} else {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else if (var0 == ScriptOpcodes.CLAN_GETCHATOWNERNAME) {
if (InterfaceParent.clanChat != null && InterfaceParent.clanChat.owner != null) {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = InterfaceParent.clanChat.owner;
} else {
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = "";
}
return 1;
} else if (var0 == ScriptOpcodes.CLAN_ISFRIEND) {
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
if (InterfaceParent.clanChat != null && var3 < InterfaceParent.clanChat.getSize() && ((ClanMate)InterfaceParent.clanChat.get(var3)).isFriend()) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 1;
} else {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else if (var0 != ScriptOpcodes.CLAN_ISIGNORE) {
if (var0 == 3628) {
Projectile.friendSystem.friendsList.removeComparator();
return 1;
} else {
boolean var7;
if (var0 == 3629) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
Projectile.friendSystem.friendsList.addComparator(new UserComparator1(var7));
return 1;
} else if (var0 == 3630) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
Projectile.friendSystem.friendsList.addComparator(new UserComparator2(var7));
return 1;
} else if (var0 == 3631) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
Projectile.friendSystem.friendsList.addComparator(new UserComparator3(var7));
return 1;
} else if (var0 == 3632) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
Projectile.friendSystem.friendsList.addComparator(new UserComparator4(var7));
return 1;
} else if (var0 == 3633) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
Projectile.friendSystem.friendsList.addComparator(new UserComparator5(var7));
return 1;
} else if (var0 == 3634) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
Projectile.friendSystem.friendsList.addComparator(new UserComparator6(var7));
return 1;
} else if (var0 == 3635) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
Projectile.friendSystem.friendsList.addComparator(new UserComparator7(var7));
return 1;
} else if (var0 == 3636) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
Projectile.friendSystem.friendsList.addComparator(new UserComparator8(var7));
return 1;
} else if (var0 == 3637) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
Projectile.friendSystem.friendsList.addComparator(new UserComparator9(var7));
return 1;
} else if (var0 == 3638) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
Projectile.friendSystem.friendsList.addComparator(new UserComparator10(var7));
return 1;
} else if (var0 == 3639) {
Projectile.friendSystem.friendsList.sort();
return 1;
} else if (var0 == 3640) {
Projectile.friendSystem.ignoreList.removeComparator();
return 1;
} else if (var0 == 3641) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
Projectile.friendSystem.ignoreList.addComparator(new UserComparator1(var7));
return 1;
} else if (var0 == 3642) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
Projectile.friendSystem.ignoreList.addComparator(new UserComparator2(var7));
return 1;
} else if (var0 == 3643) {
Projectile.friendSystem.ignoreList.sort();
return 1;
} else if (var0 == 3644) {
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.removeComparator();
}
return 1;
} else if (var0 == 3645) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator1(var7));
}
return 1;
} else if (var0 == 3646) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator2(var7));
}
return 1;
} else if (var0 == 3647) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator3(var7));
}
return 1;
} else if (var0 == 3648) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator4(var7));
}
return 1;
} else if (var0 == 3649) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator5(var7));
}
return 1;
} else if (var0 == 3650) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator6(var7));
}
return 1;
} else if (var0 == 3651) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator7(var7));
}
return 1;
} else if (var0 == 3652) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator8(var7));
}
return 1;
} else if (var0 == 3653) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator9(var7));
}
return 1;
} else if (var0 == 3654) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator10(var7));
}
return 1;
} else if (var0 == 3655) {
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.sort();
}
return 1;
} else if (var0 == 3656) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
Projectile.friendSystem.friendsList.addComparator(new BuddyRankComparator(var7));
return 1;
} else if (var0 == 3657) {
var7 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new BuddyRankComparator(var7));
}
return 1;
} else {
return 2;
}
}
} else {
var3 = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
if (InterfaceParent.clanChat != null && var3 < InterfaceParent.clanChat.getSize() && ((ClanMate)InterfaceParent.clanChat.get(var3)).isIgnored()) {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 1;
} else {
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
}
return 1;
}
}
}
}
@ObfuscatedName("ek")
@Export("World_worlds")
static World[] World_worlds;
@ObfuscatedName("bo")
@ObfuscatedSignature(
signature = "(I)Lml;",
garbageValue = "637526899"
signature = "Llh;"
)
@Export("getWorldMap")
static WorldMap getWorldMap() {
return GrandExchangeOfferAgeComparator.worldMap;
}
@Export("worldSelectLeftSprite")
static IndexedSprite worldSelectLeftSprite;
}