project: Rev update

This commit is contained in:
Owain van Brakel
2019-11-28 16:31:53 +01:00
parent 34f8560da9
commit 74726ae17a
343 changed files with 41411 additions and 41094 deletions

View File

@@ -1,47 +1,501 @@
import net.runelite.mapping.Export;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import net.runelite.rs.ScriptOpcodes;
@ObfuscatedName("r")
@ObfuscatedName("c")
public class class16 {
@ObfuscatedName("hi")
@ObfuscatedGetter(
intValue = -71438851
)
@Export("cameraY")
static int cameraY;
@ObfuscatedName("ad")
@ObfuscatedName("ai")
@ObfuscatedSignature(
signature = "(ILcj;ZI)I",
garbageValue = "2052755977"
signature = "(ILci;ZB)I",
garbageValue = "1"
)
static int method224(int var0, Script var1, boolean var2) {
if (var0 == ScriptOpcodes.SOUND_SYNTH) {
Interpreter.Interpreter_intStackSize -= 3;
class185.queueSoundEffect(Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize], Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1], Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 2]);
static int method195(int var0, Script var1, boolean var2) {
if (var0 == ScriptOpcodes.FRIEND_COUNT) {
if (VertexNormal.friendSystem.field1061 == 0) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = -2;
} else if (VertexNormal.friendSystem.field1061 == 1) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = -1;
} else {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = VertexNormal.friendSystem.friendsList.getSize();
}
return 1;
} else if (var0 == ScriptOpcodes.SOUND_SONG) {
AbstractWorldMapIcon.playSong(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
} else {
int var3;
if (var0 == ScriptOpcodes.FRIEND_GETNAME) {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
if (VertexNormal.friendSystem.method1870() && var3 >= 0 && var3 < VertexNormal.friendSystem.friendsList.getSize()) {
Friend var8 = (Friend)VertexNormal.friendSystem.friendsList.get(var3);
Interpreter.Interpreter_stringStack[++class43.Interpreter_stringStackSize - 1] = var8.getName();
Interpreter.Interpreter_stringStack[++class43.Interpreter_stringStackSize - 1] = var8.getPreviousName();
} else {
Interpreter.Interpreter_stringStack[++class43.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_stringStack[++class43.Interpreter_stringStackSize - 1] = "";
}
return 1;
} else if (var0 == ScriptOpcodes.FRIEND_GETWORLD) {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
if (VertexNormal.friendSystem.method1870() && var3 >= 0 && var3 < VertexNormal.friendSystem.friendsList.getSize()) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = ((Buddy)VertexNormal.friendSystem.friendsList.get(var3)).world;
} else {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else if (var0 == ScriptOpcodes.FRIEND_GETRANK) {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
if (VertexNormal.friendSystem.method1870() && var3 >= 0 && var3 < VertexNormal.friendSystem.friendsList.getSize()) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = ((Buddy)VertexNormal.friendSystem.friendsList.get(var3)).rank;
} else {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else {
String var5;
if (var0 == ScriptOpcodes.FRIEND_SETRANK) {
var5 = Interpreter.Interpreter_stringStack[--class43.Interpreter_stringStackSize];
int var6 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
class216.method4118(var5, var6);
return 1;
} else if (var0 == ScriptOpcodes.FRIEND_ADD) {
var5 = Interpreter.Interpreter_stringStack[--class43.Interpreter_stringStackSize];
VertexNormal.friendSystem.addFriend(var5);
return 1;
} else if (var0 == ScriptOpcodes.FRIEND_DEL) {
var5 = Interpreter.Interpreter_stringStack[--class43.Interpreter_stringStackSize];
VertexNormal.friendSystem.removeFriend(var5);
return 1;
} else if (var0 == ScriptOpcodes.IGNORE_ADD) {
var5 = Interpreter.Interpreter_stringStack[--class43.Interpreter_stringStackSize];
VertexNormal.friendSystem.addIgnore(var5);
return 1;
} else if (var0 == ScriptOpcodes.IGNORE_DEL) {
var5 = Interpreter.Interpreter_stringStack[--class43.Interpreter_stringStackSize];
VertexNormal.friendSystem.removeIgnore(var5);
return 1;
} else if (var0 == ScriptOpcodes.FRIEND_TEST) {
var5 = Interpreter.Interpreter_stringStack[--class43.Interpreter_stringStackSize];
var5 = VertexNormal.method3017(var5);
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = VertexNormal.friendSystem.isFriended(new Username(var5, WorldMapLabelSize.loginType), false) ? 1 : 0;
return 1;
} else if (var0 == ScriptOpcodes.CLAN_GETCHATDISPLAYNAME) {
if (InterfaceParent.clanChat != null) {
Interpreter.Interpreter_stringStack[++class43.Interpreter_stringStackSize - 1] = InterfaceParent.clanChat.name;
} else {
Interpreter.Interpreter_stringStack[++class43.Interpreter_stringStackSize - 1] = "";
}
return 1;
} else if (var0 == ScriptOpcodes.CLAN_GETCHATCOUNT) {
if (InterfaceParent.clanChat != null) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = InterfaceParent.clanChat.getSize();
} else {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else if (var0 == ScriptOpcodes.CLAN_GETCHATUSERNAME) {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
if (InterfaceParent.clanChat != null && var3 < InterfaceParent.clanChat.getSize()) {
Interpreter.Interpreter_stringStack[++class43.Interpreter_stringStackSize - 1] = InterfaceParent.clanChat.get(var3).getUsername().getName();
} else {
Interpreter.Interpreter_stringStack[++class43.Interpreter_stringStackSize - 1] = "";
}
return 1;
} else if (var0 == ScriptOpcodes.CLAN_GETCHATUSERWORLD) {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
if (InterfaceParent.clanChat != null && var3 < InterfaceParent.clanChat.getSize()) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = ((Buddy)InterfaceParent.clanChat.get(var3)).getWorld();
} else {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else if (var0 == ScriptOpcodes.CLAN_GETCHATUSERRANK) {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
if (InterfaceParent.clanChat != null && var3 < InterfaceParent.clanChat.getSize()) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = ((Buddy)InterfaceParent.clanChat.get(var3)).rank;
} else {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else if (var0 == ScriptOpcodes.CLAN_GETCHATMINKICK) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = InterfaceParent.clanChat != null ? InterfaceParent.clanChat.minKick : 0;
return 1;
} else if (var0 == ScriptOpcodes.CLAN_KICKUSER) {
var5 = Interpreter.Interpreter_stringStack[--class43.Interpreter_stringStackSize];
UserComparator3.clanKickUser(var5);
return 1;
} else if (var0 == ScriptOpcodes.CLAN_GETCHATRANK) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = InterfaceParent.clanChat != null ? InterfaceParent.clanChat.rank : 0;
return 1;
} else if (var0 == ScriptOpcodes.CLAN_JOINCHAT) {
var5 = Interpreter.Interpreter_stringStack[--class43.Interpreter_stringStackSize];
WorldMapAreaData.Clan_joinChat(var5);
return 1;
} else if (var0 == ScriptOpcodes.CLAN_LEAVECHAT) {
class290.Clan_leaveChat();
return 1;
} else if (var0 == ScriptOpcodes.IGNORE_COUNT) {
if (!VertexNormal.friendSystem.method1870()) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = -1;
} else {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = VertexNormal.friendSystem.ignoreList.getSize();
}
return 1;
} else if (var0 == ScriptOpcodes.IGNORE_GETNAME) {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
if (VertexNormal.friendSystem.method1870() && var3 >= 0 && var3 < VertexNormal.friendSystem.ignoreList.getSize()) {
Ignored var4 = (Ignored)VertexNormal.friendSystem.ignoreList.get(var3);
Interpreter.Interpreter_stringStack[++class43.Interpreter_stringStackSize - 1] = var4.getName();
Interpreter.Interpreter_stringStack[++class43.Interpreter_stringStackSize - 1] = var4.getPreviousName();
} else {
Interpreter.Interpreter_stringStack[++class43.Interpreter_stringStackSize - 1] = "";
Interpreter.Interpreter_stringStack[++class43.Interpreter_stringStackSize - 1] = "";
}
return 1;
} else if (var0 == ScriptOpcodes.IGNORE_TEST) {
var5 = Interpreter.Interpreter_stringStack[--class43.Interpreter_stringStackSize];
var5 = VertexNormal.method3017(var5);
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = VertexNormal.friendSystem.isIgnored(new Username(var5, WorldMapLabelSize.loginType)) ? 1 : 0;
return 1;
} else if (var0 == ScriptOpcodes.CLAN_ISSELF) {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
if (InterfaceParent.clanChat != null && var3 < InterfaceParent.clanChat.getSize() && InterfaceParent.clanChat.get(var3).getUsername().equals(class215.localPlayer.username)) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = 1;
} else {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else if (var0 == ScriptOpcodes.CLAN_GETCHATOWNERNAME) {
if (InterfaceParent.clanChat != null && InterfaceParent.clanChat.owner != null) {
Interpreter.Interpreter_stringStack[++class43.Interpreter_stringStackSize - 1] = InterfaceParent.clanChat.owner;
} else {
Interpreter.Interpreter_stringStack[++class43.Interpreter_stringStackSize - 1] = "";
}
return 1;
} else if (var0 == ScriptOpcodes.CLAN_ISFRIEND) {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
if (InterfaceParent.clanChat != null && var3 < InterfaceParent.clanChat.getSize() && ((ClanMate)InterfaceParent.clanChat.get(var3)).isFriend()) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = 1;
} else {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else if (var0 != ScriptOpcodes.CLAN_ISIGNORE) {
if (var0 == 3628) {
VertexNormal.friendSystem.friendsList.removeComparator();
return 1;
} else {
boolean var7;
if (var0 == 3629) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
VertexNormal.friendSystem.friendsList.addComparator(new UserComparator1(var7));
return 1;
} else if (var0 == 3630) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
VertexNormal.friendSystem.friendsList.addComparator(new UserComparator2(var7));
return 1;
} else if (var0 == 3631) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
VertexNormal.friendSystem.friendsList.addComparator(new UserComparator3(var7));
return 1;
} else if (var0 == 3632) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
VertexNormal.friendSystem.friendsList.addComparator(new UserComparator4(var7));
return 1;
} else if (var0 == 3633) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
VertexNormal.friendSystem.friendsList.addComparator(new UserComparator5(var7));
return 1;
} else if (var0 == 3634) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
VertexNormal.friendSystem.friendsList.addComparator(new UserComparator6(var7));
return 1;
} else if (var0 == 3635) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
VertexNormal.friendSystem.friendsList.addComparator(new UserComparator7(var7));
return 1;
} else if (var0 == 3636) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
VertexNormal.friendSystem.friendsList.addComparator(new UserComparator8(var7));
return 1;
} else if (var0 == 3637) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
VertexNormal.friendSystem.friendsList.addComparator(new UserComparator9(var7));
return 1;
} else if (var0 == 3638) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
VertexNormal.friendSystem.friendsList.addComparator(new UserComparator10(var7));
return 1;
} else if (var0 == 3639) {
VertexNormal.friendSystem.friendsList.sort();
return 1;
} else if (var0 == 3640) {
VertexNormal.friendSystem.ignoreList.removeComparator();
return 1;
} else if (var0 == 3641) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
VertexNormal.friendSystem.ignoreList.addComparator(new UserComparator1(var7));
return 1;
} else if (var0 == 3642) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
VertexNormal.friendSystem.ignoreList.addComparator(new UserComparator2(var7));
return 1;
} else if (var0 == 3643) {
VertexNormal.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[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator1(var7));
}
return 1;
} else if (var0 == 3646) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator2(var7));
}
return 1;
} else if (var0 == 3647) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator3(var7));
}
return 1;
} else if (var0 == 3648) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator4(var7));
}
return 1;
} else if (var0 == 3649) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator5(var7));
}
return 1;
} else if (var0 == 3650) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator6(var7));
}
return 1;
} else if (var0 == 3651) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator7(var7));
}
return 1;
} else if (var0 == 3652) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator8(var7));
}
return 1;
} else if (var0 == 3653) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new UserComparator9(var7));
}
return 1;
} else if (var0 == 3654) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.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[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
VertexNormal.friendSystem.friendsList.addComparator(new BuddyRankComparator(var7));
return 1;
} else if (var0 == 3657) {
var7 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] == 1;
if (InterfaceParent.clanChat != null) {
InterfaceParent.clanChat.addComparator(new BuddyRankComparator(var7));
}
return 1;
} else {
return 2;
}
}
} else {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
if (InterfaceParent.clanChat != null && var3 < InterfaceParent.clanChat.getSize() && ((ClanMate)InterfaceParent.clanChat.get(var3)).isIgnored()) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = 1;
} else {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = 0;
}
return 1;
}
}
}
}
@ObfuscatedName("ar")
@ObfuscatedSignature(
signature = "(ILci;ZI)I",
garbageValue = "1316998037"
)
static int method196(int var0, Script var1, boolean var2) {
int var3;
if (var0 == ScriptOpcodes.CAM_FORCEANGLE) {
GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
int var4 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize + 1];
if (!Client.isCameraLocked) {
Client.camAngleX = var3;
Client.camAngleY = var4;
}
return 1;
} else if (var0 == ScriptOpcodes.SOUND_JINGLE) {
Interpreter.Interpreter_intStackSize -= 2;
WorldMapEvent.playSoundJingle(Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize], Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1]);
} else if (var0 == ScriptOpcodes.CAM_GETANGLE_XA) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.camAngleX;
return 1;
} else if (var0 == ScriptOpcodes.CAM_GETANGLE_YA) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.camAngleY;
return 1;
} else if (var0 == ScriptOpcodes.CAM_SETFOLLOWHEIGHT) {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
if (var3 < 0) {
var3 = 0;
}
Client.camFollowHeight = var3;
return 1;
} else if (var0 == ScriptOpcodes.CAM_GETFOLLOWHEIGHT) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.camFollowHeight;
return 1;
} else {
return 2;
}
}
@ObfuscatedName("iw")
@ObfuscatedName("az")
@ObfuscatedSignature(
signature = "(B)I",
garbageValue = "1"
signature = "(ILci;ZB)I",
garbageValue = "-33"
)
@Export("getNewestMenuIdx")
static final int getNewestMenuIdx() {
return Client.menuOptionsCount - 1;
static int method197(int var0, Script var1, boolean var2) {
if (var0 == ScriptOpcodes.VIEWPORT_SETFOV) {
GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize -= 2;
Client.field880 = (short)WorldMapIcon_1.method309(Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize]);
if (Client.field880 <= 0) {
Client.field880 = 256;
}
Client.field893 = (short)WorldMapIcon_1.method309(Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize + 1]);
if (Client.field893 <= 0) {
Client.field893 = 256;
}
return 1;
} else if (var0 == ScriptOpcodes.VIEWPORT_SETZOOM) {
GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize -= 2;
Client.zoomHeight = (short)Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
if (Client.zoomHeight <= 0) {
Client.zoomHeight = 256;
}
Client.zoomWidth = (short)Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize + 1];
if (Client.zoomWidth <= 0) {
Client.zoomWidth = 320;
}
return 1;
} else if (var0 == ScriptOpcodes.VIEWPORT_CLAMPFOV) {
GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize -= 4;
Client.field896 = (short)Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
if (Client.field896 <= 0) {
Client.field896 = 1;
}
Client.field897 = (short)Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize + 1];
if (Client.field897 <= 0) {
Client.field897 = 32767;
} else if (Client.field897 < Client.field896) {
Client.field897 = Client.field896;
}
Client.field785 = (short)Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize + 2];
if (Client.field785 <= 0) {
Client.field785 = 1;
}
Client.field679 = (short)Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize + 3];
if (Client.field679 <= 0) {
Client.field679 = 32767;
} else if (Client.field679 < Client.field785) {
Client.field679 = Client.field785;
}
return 1;
} else if (var0 == ScriptOpcodes.VIEWPORT_GETEFFECTIVESIZE) {
if (Client.viewportWidget != null) {
FileSystem.setViewportShape(0, 0, Client.viewportWidget.width, Client.viewportWidget.height, false);
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.viewportWidth;
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.viewportHeight;
} else {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = -1;
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = -1;
}
return 1;
} else if (var0 == ScriptOpcodes.VIEWPORT_GETZOOM) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.zoomHeight;
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.zoomWidth;
return 1;
} else if (var0 == ScriptOpcodes.VIEWPORT_GETFOV) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = FileSystem.method3551(Client.field880);
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = FileSystem.method3551(Client.field893);
return 1;
} else if (var0 == 6220) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = 0;
return 1;
} else if (var0 == 6221) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = 0;
return 1;
} else if (var0 == 6222) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = BoundaryObject.canvasWidth;
return 1;
} else if (var0 == 6223) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = WorldMapCacheName.canvasHeight;
return 1;
} else {
return 2;
}
}
}