chore: rev 193

This commit is contained in:
therealunull
2020-12-09 11:07:26 -05:00
parent 5cd865f43f
commit 8f587826ee
358 changed files with 62074 additions and 62020 deletions

View File

@@ -3,131 +3,176 @@ 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("bm")
@ObfuscatedName("bk")
@Implements("ScriptFrame")
public class ScriptFrame {
@ObfuscatedName("ea")
@ObfuscatedName("nn")
@ObfuscatedGetter(
intValue = 1760304111
intValue = 1247485995
)
static int field552;
@ObfuscatedName("f")
@Export("widgetDragDuration")
static int widgetDragDuration;
@ObfuscatedName("h")
@ObfuscatedSignature(
descriptor = "Lco;"
descriptor = "Lcs;"
)
@Export("script")
Script script;
@ObfuscatedName("b")
@ObfuscatedName("v")
@ObfuscatedGetter(
intValue = 1649848391
intValue = 555040569
)
@Export("pc")
int pc;
@ObfuscatedName("l")
@ObfuscatedName("x")
@Export("intLocals")
int[] intLocals;
@ObfuscatedName("m")
@ObfuscatedName("w")
@Export("stringLocals")
String[] stringLocals;
ScriptFrame() {
this.pc = -1; // L: 5
} // L: 9
@ObfuscatedName("f")
@ObfuscatedSignature(
descriptor = "(Liw;I)V",
garbageValue = "181624025"
)
public static void method1224(AbstractArchive var0) {
FloorUnderlayDefinition.FloorUnderlayDefinition_archive = var0; // L: 21
} // L: 22
@ObfuscatedName("l")
public static int method1228(long var0) {
return (int)(var0 >>> 0 & 127L); // L: 52
this.pc = -1;
}
@ObfuscatedName("m")
@ObfuscatedName("p")
@ObfuscatedSignature(
descriptor = "(II)Z",
garbageValue = "-1190180925"
descriptor = "(ILcs;ZI)I",
garbageValue = "259452362"
)
@Export("loadInterface")
public static boolean loadInterface(int var0) {
if (Widget.Widget_loadedInterfaces[var0]) { // L: 212
return true;
} else if (!Decimator.Widget_archive.tryLoadGroup(var0)) { // L: 213
return false;
static int method1213(int var0, Script var1, boolean var2) {
boolean var3 = true;
Widget var4;
if (var0 >= 2000) {
var0 -= 1000;
var4 = CollisionMap.getWidget(Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]);
var3 = false;
} else {
int var1 = Decimator.Widget_archive.getGroupFileCount(var0); // L: 214
if (var1 == 0) { // L: 215
Widget.Widget_loadedInterfaces[var0] = true; // L: 216
return true; // L: 217
} else {
if (Widget.Widget_interfaceComponents[var0] == null) { // L: 219
Widget.Widget_interfaceComponents[var0] = new Widget[var1];
}
var4 = var2 ? PlayerAppearance.field2561 : VarcInt.field3264;
}
for (int var2 = 0; var2 < var1; ++var2) { // L: 220
if (Widget.Widget_interfaceComponents[var0][var2] == null) { // L: 221
byte[] var3 = Decimator.Widget_archive.takeFile(var0, var2); // L: 222
if (var3 != null) { // L: 223
Widget.Widget_interfaceComponents[var0][var2] = new Widget(); // L: 224
Widget.Widget_interfaceComponents[var0][var2].id = var2 + (var0 << 16); // L: 225
if (var3[0] == -1) { // L: 226
Widget.Widget_interfaceComponents[var0][var2].decode(new Buffer(var3));
} else {
Widget.Widget_interfaceComponents[var0][var2].decodeLegacy(new Buffer(var3)); // L: 227
int var11;
if (var0 == ScriptOpcodes.CC_SETOP) {
var11 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] - 1;
if (var11 >= 0 && var11 <= 9) {
var4.setAction(var11, Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]);
return 1;
} else {
--Interpreter.Interpreter_stringStackSize;
return 1;
}
} else {
int var6;
if (var0 == ScriptOpcodes.CC_SETDRAGGABLE) {
VarcInt.Interpreter_intStackSize -= 2;
var11 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize];
var6 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1];
var4.parent = class92.getWidgetChild(var11, var6);
return 1;
} else if (var0 == ScriptOpcodes.CC_SETDRAGGABLEBEHAVIOR) {
var4.isScrollBar = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
return 1;
} else if (var0 == ScriptOpcodes.CC_SETDRAGDEADZONE) {
var4.dragZoneSize = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
return 1;
} else if (var0 == ScriptOpcodes.CC_SETDRAGDEADTIME) {
var4.dragThreshold = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
return 1;
} else if (var0 == ScriptOpcodes.CC_SETOPBASE) {
var4.dataText = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
return 1;
} else if (var0 == ScriptOpcodes.CC_SETTARGETVERB) {
var4.spellActionName = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize];
return 1;
} else if (var0 == ScriptOpcodes.CC_CLEAROPS) {
var4.actions = null;
return 1;
} else if (var0 == 1308) {
var4.prioritizeMenuEntry = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] == 1;
return 1;
} else if (var0 == 1309) {
--VarcInt.Interpreter_intStackSize;
return 1;
} else {
int var7;
byte[] var8;
if (var0 != ScriptOpcodes.CC_SETOPKEY) {
byte var5;
if (var0 == ScriptOpcodes.CC_SETOPTKEY) {
VarcInt.Interpreter_intStackSize -= 2;
var5 = 10;
var8 = new byte[]{(byte)Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize]};
byte[] var9 = new byte[]{(byte)Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]};
ItemContainer.Widget_setKey(var4, var5, var8, var9);
return 1;
} else if (var0 == ScriptOpcodes.CC_SETOPKEYRATE) {
VarcInt.Interpreter_intStackSize -= 3;
var11 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize] - 1;
var6 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1];
var7 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 2];
if (var11 >= 0 && var11 <= 9) {
Player.Widget_setKeyRate(var4, var11, var6, var7);
return 1;
} else {
throw new RuntimeException();
}
} else if (var0 == ScriptOpcodes.CC_SETOPTKEYRATE) {
var5 = 10;
var6 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize];
Player.Widget_setKeyRate(var4, var5, var6, var7);
return 1;
} else if (var0 == ScriptOpcodes.CC_SETOPKEYIGNOREHELD) {
--VarcInt.Interpreter_intStackSize;
var11 = Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize] - 1;
if (var11 >= 0 && var11 <= 9) {
GrandExchangeOfferUnitPriceComparator.Widget_setKeyIgnoreHeld(var4, var11);
return 1;
} else {
throw new RuntimeException();
}
} else if (var0 == ScriptOpcodes.CC_SETOPTKEYIGNOREHELD) {
var5 = 10;
GrandExchangeOfferUnitPriceComparator.Widget_setKeyIgnoreHeld(var4, var5);
return 1;
} else {
return 2;
}
} else {
byte[] var10 = null;
var8 = null;
if (var3) {
VarcInt.Interpreter_intStackSize -= 10;
for (var7 = 0; var7 < 10 && Interpreter.Interpreter_intStack[var7 + VarcInt.Interpreter_intStackSize] >= 0; var7 += 2) {
}
if (var7 > 0) {
var10 = new byte[var7 / 2];
var8 = new byte[var7 / 2];
for (var7 -= 2; var7 >= 0; var7 -= 2) {
var10[var7 / 2] = (byte)Interpreter.Interpreter_intStack[var7 + VarcInt.Interpreter_intStackSize];
var8[var7 / 2] = (byte)Interpreter.Interpreter_intStack[var7 + VarcInt.Interpreter_intStackSize + 1];
}
}
} else {
VarcInt.Interpreter_intStackSize -= 2;
var10 = new byte[]{(byte)Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize]};
var8 = new byte[]{(byte)Interpreter.Interpreter_intStack[VarcInt.Interpreter_intStackSize + 1]};
}
var7 = Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize] - 1;
if (var7 >= 0 && var7 <= 9) {
ItemContainer.Widget_setKey(var4, var7, var10, var8);
return 1;
} else {
throw new RuntimeException();
}
}
Widget.Widget_loadedInterfaces[var0] = true; // L: 231
return true; // L: 232
}
}
}
@ObfuscatedName("an")
@ObfuscatedSignature(
descriptor = "(II)V",
garbageValue = "-398927315"
)
@Export("runWidgetOnLoadListener")
static void runWidgetOnLoadListener(int var0) {
if (var0 != -1) { // L: 3836
if (loadInterface(var0)) { // L: 3837
Widget[] var1 = Widget.Widget_interfaceComponents[var0]; // L: 3838
for (int var2 = 0; var2 < var1.length; ++var2) { // L: 3839
Widget var3 = var1[var2]; // L: 3840
if (var3.onLoad != null) { // L: 3841
ScriptEvent var4 = new ScriptEvent(); // L: 3842
var4.widget = var3; // L: 3843
var4.args = var3.onLoad; // L: 3844
class58.runScript(var4, 5000000); // L: 3845
}
}
}
}
} // L: 3848
@ObfuscatedName("jz")
@ObfuscatedSignature(
descriptor = "(Ljava/lang/String;I)V",
garbageValue = "-3110189"
)
@Export("clanKickUser")
static final void clanKickUser(String var0) {
if (DevicePcmPlayerProvider.clanChat != null) { // L: 11494
PacketBufferNode var1 = class4.getPacketBufferNode(ClientPacket.field2333, Client.packetWriter.isaacCipher); // L: 11495
var1.packetBuffer.writeByte(SpriteMask.stringCp1252NullTerminatedByteSize(var0)); // L: 11496
var1.packetBuffer.writeStringCp1252NullTerminated(var0); // L: 11497
Client.packetWriter.addNode(var1); // L: 11498
}
} // L: 11499
}