rev185
This commit is contained in:
@@ -1,54 +1,160 @@
|
||||
import net.runelite.mapping.Export;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
import net.runelite.rs.ScriptOpcodes;
|
||||
|
||||
@ObfuscatedName("bu")
|
||||
@ObfuscatedName("bs")
|
||||
public class class65 extends RouteStrategy {
|
||||
class65() {
|
||||
}
|
||||
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IIILfa;B)Z",
|
||||
garbageValue = "27"
|
||||
signature = "(IIILfm;B)Z",
|
||||
garbageValue = "16"
|
||||
)
|
||||
@Export("hasArrived")
|
||||
protected boolean hasArrived(int var1, int var2, int var3, CollisionMap var4) {
|
||||
return var2 == super.approxDestinationX && var3 == super.approxDestinationY;
|
||||
}
|
||||
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IIIB)I",
|
||||
garbageValue = "42"
|
||||
signature = "(II)Lie;",
|
||||
garbageValue = "-921951444"
|
||||
)
|
||||
static int method1245(int var0, int var1, int var2) {
|
||||
if (var2 > 179) {
|
||||
var1 /= 2;
|
||||
}
|
||||
|
||||
if (var2 > 192) {
|
||||
var1 /= 2;
|
||||
}
|
||||
|
||||
if (var2 > 217) {
|
||||
var1 /= 2;
|
||||
}
|
||||
|
||||
if (var2 > 243) {
|
||||
var1 /= 2;
|
||||
}
|
||||
|
||||
int var3 = (var1 / 32 << 7) + (var0 / 4 << 10) + var2 / 2;
|
||||
return var3;
|
||||
@Export("WorldMapElement_get")
|
||||
public static WorldMapElement WorldMapElement_get(int var0) {
|
||||
return var0 >= 0 && var0 < GrandExchangeOfferTotalQuantityComparator.WorldMapElement_cached.length && GrandExchangeOfferTotalQuantityComparator.WorldMapElement_cached[var0] != null ? GrandExchangeOfferTotalQuantityComparator.WorldMapElement_cached[var0] : new WorldMapElement(var0);
|
||||
}
|
||||
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lkl;I)Ljava/lang/String;",
|
||||
garbageValue = "-714921437"
|
||||
signature = "(ILcj;ZB)I",
|
||||
garbageValue = "0"
|
||||
)
|
||||
public static String method1250(Buffer var0) {
|
||||
return TilePaint.method3042(var0, 32767);
|
||||
static int method1321(int var0, Script var1, boolean var2) {
|
||||
int var3;
|
||||
int var4;
|
||||
if (var0 == ScriptOpcodes.CC_CREATE) {
|
||||
Interpreter.Interpreter_intStackSize -= 3;
|
||||
var3 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize];
|
||||
var4 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1];
|
||||
int var5 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 2];
|
||||
if (var4 == 0) {
|
||||
throw new RuntimeException();
|
||||
} else {
|
||||
Widget var6 = PacketBufferNode.getWidget(var3);
|
||||
if (var6.children == null) {
|
||||
var6.children = new Widget[var5 + 1];
|
||||
}
|
||||
|
||||
if (var6.children.length <= var5) {
|
||||
Widget[] var7 = new Widget[var5 + 1];
|
||||
|
||||
for (int var8 = 0; var8 < var6.children.length; ++var8) {
|
||||
var7[var8] = var6.children[var8];
|
||||
}
|
||||
|
||||
var6.children = var7;
|
||||
}
|
||||
|
||||
if (var5 > 0 && var6.children[var5 - 1] == null) {
|
||||
throw new RuntimeException("" + (var5 - 1));
|
||||
} else {
|
||||
Widget var12 = new Widget();
|
||||
var12.type = var4;
|
||||
var12.parentId = var12.id = var6.id;
|
||||
var12.childIndex = var5;
|
||||
var12.isIf3 = true;
|
||||
var6.children[var5] = var12;
|
||||
if (var2) {
|
||||
class96.field1301 = var12;
|
||||
} else {
|
||||
ReflectionCheck.field1310 = var12;
|
||||
}
|
||||
|
||||
GrandExchangeOfferAgeComparator.invalidateWidget(var6);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Widget var9;
|
||||
if (var0 == ScriptOpcodes.CC_DELETE) {
|
||||
var9 = var2 ? class96.field1301 : ReflectionCheck.field1310;
|
||||
Widget var10 = PacketBufferNode.getWidget(var9.id);
|
||||
var10.children[var9.childIndex] = null;
|
||||
GrandExchangeOfferAgeComparator.invalidateWidget(var10);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_DELETEALL) {
|
||||
var9 = PacketBufferNode.getWidget(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
||||
var9.children = null;
|
||||
GrandExchangeOfferAgeComparator.invalidateWidget(var9);
|
||||
return 1;
|
||||
} else if (var0 != ScriptOpcodes.CC_FIND) {
|
||||
if (var0 == ScriptOpcodes.IF_FIND) {
|
||||
var9 = PacketBufferNode.getWidget(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
||||
if (var9 != null) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 1;
|
||||
if (var2) {
|
||||
class96.field1301 = var9;
|
||||
} else {
|
||||
ReflectionCheck.field1310 = var9;
|
||||
}
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
} else {
|
||||
Interpreter.Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize];
|
||||
var4 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1];
|
||||
Widget var11 = ArchiveLoader.getWidgetChild(var3, var4);
|
||||
if (var11 != null && var4 != -1) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 1;
|
||||
if (var2) {
|
||||
class96.field1301 = var11;
|
||||
} else {
|
||||
ReflectionCheck.field1310 = var11;
|
||||
}
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)I",
|
||||
garbageValue = "732649186"
|
||||
)
|
||||
@Export("Messages_getLastChatID")
|
||||
static int Messages_getLastChatID(int var0) {
|
||||
Message var1 = (Message)Messages.Messages_hashTable.get((long)var0);
|
||||
if (var1 == null) {
|
||||
return -1;
|
||||
} else {
|
||||
return var1.nextDual == Messages.Messages_queue.sentinel ? -1 : ((Message)var1.nextDual).count;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("it")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)Ljava/lang/String;",
|
||||
garbageValue = "1231454629"
|
||||
)
|
||||
static String method1316(int var0) {
|
||||
if (var0 < 0) {
|
||||
return "";
|
||||
} else {
|
||||
return Client.menuTargets[var0].length() > 0 ? Client.menuActions[var0] + " " + Client.menuTargets[var0] : Client.menuActions[var0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user