Files
runelite/runescape-client/src/main/java/class22.java
therealunull 8f587826ee chore: rev 193
2020-12-09 11:07:26 -05:00

70 lines
2.2 KiB
Java

import net.runelite.mapping.Export;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import net.runelite.rs.ScriptOpcodes;
@ObfuscatedName("s")
public class class22 {
@ObfuscatedName("ac")
static String field107;
@ObfuscatedName("h")
@ObfuscatedSignature(
descriptor = "(Lbb;I)V",
garbageValue = "-1301160950"
)
@Export("runScriptEvent")
public static void runScriptEvent(ScriptEvent var0) {
AttackOption.runScript(var0, 500000);
}
@ObfuscatedName("r")
@ObfuscatedSignature(
descriptor = "(ILcs;ZI)I",
garbageValue = "-1990395743"
)
static int method221(int var0, Script var1, boolean var2) {
Widget var3 = CollisionMap.getWidget(Interpreter.Interpreter_intStack[--VarcInt.Interpreter_intStackSize]);
if (var0 == ScriptOpcodes.IF_GETX) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.x;
return 1;
} else if (var0 == ScriptOpcodes.IF_GETY) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.y;
return 1;
} else if (var0 == ScriptOpcodes.IF_GETWIDTH) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.width;
return 1;
} else if (var0 == ScriptOpcodes.IF_GETHEIGHT) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.height;
return 1;
} else if (var0 == ScriptOpcodes.IF_GETHIDE) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.isHidden ? 1 : 0;
return 1;
} else if (var0 == ScriptOpcodes.IF_GETLAYER) {
Interpreter.Interpreter_intStack[++VarcInt.Interpreter_intStackSize - 1] = var3.parentId;
return 1;
} else {
return 2;
}
}
@ObfuscatedName("ly")
@ObfuscatedSignature(
descriptor = "(Ljava/lang/String;I)Ljava/lang/String;",
garbageValue = "-1865855416"
)
static String method220(String var0) {
PlayerType[] var1 = class234.PlayerType_values();
for (int var2 = 0; var2 < var1.length; ++var2) {
PlayerType var3 = var1[var2];
if (var3.modIcon != -1 && var0.startsWith(class25.method248(var3.modIcon))) {
var0 = var0.substring(6 + Integer.toString(var3.modIcon).length());
break;
}
}
return var0;
}
}