chore: rev 190
This commit is contained in:
@@ -7,27 +7,33 @@ import java.util.LinkedList;
|
||||
import java.util.Queue;
|
||||
import net.runelite.mapping.Export;
|
||||
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("ey")
|
||||
@ObfuscatedName("eh")
|
||||
@Implements("UrlRequester")
|
||||
public class UrlRequester implements Runnable {
|
||||
@ObfuscatedName("fx")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Llt;"
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 735302127
|
||||
)
|
||||
static AbstractSocket field1960;
|
||||
@ObfuscatedName("gb")
|
||||
@Export("xteaKeys")
|
||||
static int[][] xteaKeys;
|
||||
@ObfuscatedName("x")
|
||||
@Export("Interpreter_intStackSize")
|
||||
static int Interpreter_intStackSize;
|
||||
@ObfuscatedName("gk")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Llz;"
|
||||
)
|
||||
@Export("redHintArrowSprite")
|
||||
static Sprite redHintArrowSprite;
|
||||
@ObfuscatedName("m")
|
||||
@Export("thread")
|
||||
final Thread thread;
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("o")
|
||||
@Export("isClosed")
|
||||
volatile boolean isClosed;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("q")
|
||||
@Export("requests")
|
||||
Queue requests;
|
||||
|
||||
@@ -38,10 +44,10 @@ public class UrlRequester implements Runnable {
|
||||
this.thread.start();
|
||||
}
|
||||
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Ljava/net/URL;B)Lew;",
|
||||
garbageValue = "81"
|
||||
signature = "(Ljava/net/URL;I)Leb;",
|
||||
garbageValue = "1883643384"
|
||||
)
|
||||
@Export("request")
|
||||
public UrlRequest request(URL var1) {
|
||||
@@ -53,10 +59,10 @@ public class UrlRequester implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)V",
|
||||
garbageValue = "0"
|
||||
garbageValue = "1"
|
||||
)
|
||||
@Export("close")
|
||||
public void close() {
|
||||
@@ -119,9 +125,154 @@ public class UrlRequester implements Runnable {
|
||||
|
||||
}
|
||||
} catch (Exception var17) {
|
||||
WorldMapDecorationType.RunException_sendStackTrace((String)null, var17);
|
||||
class197.RunException_sendStackTrace((String)null, var17);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("ao")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILcs;ZB)I",
|
||||
garbageValue = "23"
|
||||
)
|
||||
static int method3424(int var0, Script var1, boolean var2) {
|
||||
if (var0 == ScriptOpcodes.CLIENTCLOCK) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = Client.cycle;
|
||||
return 1;
|
||||
} else {
|
||||
int var3;
|
||||
int var4;
|
||||
if (var0 == ScriptOpcodes.INV_GETOBJ) {
|
||||
Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[Interpreter_intStackSize];
|
||||
var4 = Interpreter.Interpreter_intStack[Interpreter_intStackSize + 1];
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = HealthBarDefinition.method4673(var3, var4);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.INV_GETNUM) {
|
||||
Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[Interpreter_intStackSize];
|
||||
var4 = Interpreter.Interpreter_intStack[Interpreter_intStackSize + 1];
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = UserComparator6.ItemContainer_getCount(var3, var4);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.INV_TOTAL) {
|
||||
Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[Interpreter_intStackSize];
|
||||
var4 = Interpreter.Interpreter_intStack[Interpreter_intStackSize + 1];
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = ArchiveLoader.method1212(var3, var4);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.INV_SIZE) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = class247.getInvDefinition(var3).size;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.STAT) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = Client.currentLevels[var3];
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.STAT_BASE) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = Client.levels[var3];
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.STAT_XP) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = Client.experience[var3];
|
||||
return 1;
|
||||
} else {
|
||||
int var5;
|
||||
if (var0 == ScriptOpcodes.COORD) {
|
||||
var3 = TileItemPile.Client_plane;
|
||||
var4 = (class60.localPlayer.x >> 7) + class182.baseX;
|
||||
var5 = (class60.localPlayer.y >> 7) + SecureRandomFuture.baseY;
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = (var4 << 14) + var5 + (var3 << 28);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.COORDX) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = var3 >> 14 & 16383;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.COORDZ) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = var3 >> 28;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.COORDY) {
|
||||
var3 = Interpreter.Interpreter_intStack[--Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = var3 & 16383;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.MAP_MEMBERS) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = Client.isMembersWorld ? 1 : 0;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.INVOTHER_GETOBJ) {
|
||||
Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[Interpreter_intStackSize] + 32768;
|
||||
var4 = Interpreter.Interpreter_intStack[Interpreter_intStackSize + 1];
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = HealthBarDefinition.method4673(var3, var4);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.INVOTHER_GETNUM) {
|
||||
Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[Interpreter_intStackSize] + 32768;
|
||||
var4 = Interpreter.Interpreter_intStack[Interpreter_intStackSize + 1];
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = UserComparator6.ItemContainer_getCount(var3, var4);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.INVOTHER_TOTAL) {
|
||||
Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[Interpreter_intStackSize] + 32768;
|
||||
var4 = Interpreter.Interpreter_intStack[Interpreter_intStackSize + 1];
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = ArchiveLoader.method1212(var3, var4);
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.STAFFMODLEVEL) {
|
||||
if (Client.staffModLevel >= 2) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = Client.staffModLevel;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.REBOOTTIMER) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = Client.rebootTimer;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.MAP_WORLD) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = Client.worldId;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.RUNENERGY_VISIBLE) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = Client.runEnergy;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.RUNWEIGHT_VISIBLE) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = Client.weight;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.PLAYERMOD) {
|
||||
if (Client.playerMod) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = 1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.WORLDFLAGS) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = Client.worldProperties;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.MOVECOORD) {
|
||||
Interpreter_intStackSize -= 4;
|
||||
var3 = Interpreter.Interpreter_intStack[Interpreter_intStackSize];
|
||||
var4 = Interpreter.Interpreter_intStack[Interpreter_intStackSize + 1];
|
||||
var5 = Interpreter.Interpreter_intStack[Interpreter_intStackSize + 2];
|
||||
int var6 = Interpreter.Interpreter_intStack[Interpreter_intStackSize + 3];
|
||||
var3 += var4 << 14;
|
||||
var3 += var5 << 28;
|
||||
var3 += var6;
|
||||
Interpreter.Interpreter_intStack[++Interpreter_intStackSize - 1] = var3;
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("ia")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(S)I",
|
||||
garbageValue = "-5481"
|
||||
)
|
||||
static final int method3421() {
|
||||
return Client.menuOptionsCount - 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user