project: Rev 182
This commit is contained in:
@@ -5,44 +5,51 @@ import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
import net.runelite.rs.ScriptOpcodes;
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("d")
|
||||
@Implements("GrandExchangeOffer")
|
||||
public class GrandExchangeOffer {
|
||||
@ObfuscatedName("ab")
|
||||
@ObfuscatedName("st")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1444342479
|
||||
intValue = 549974423
|
||||
)
|
||||
static int field65;
|
||||
@ObfuscatedName("q")
|
||||
@Export("foundItemIndex")
|
||||
static int foundItemIndex;
|
||||
@ObfuscatedName("se")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lbx;"
|
||||
)
|
||||
@Export("clientPreferences")
|
||||
static ClientPreferences clientPreferences;
|
||||
@ObfuscatedName("s")
|
||||
@Export("state")
|
||||
byte state;
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1838555809
|
||||
intValue = 416922963
|
||||
)
|
||||
@Export("id")
|
||||
public int id;
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -2108350067
|
||||
intValue = 1858157699
|
||||
)
|
||||
@Export("unitPrice")
|
||||
public int unitPrice;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -725683921
|
||||
intValue = -214524093
|
||||
)
|
||||
@Export("totalQuantity")
|
||||
public int totalQuantity;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 663706157
|
||||
intValue = 280180281
|
||||
)
|
||||
@Export("currentQuantity")
|
||||
public int currentQuantity;
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1954345153
|
||||
intValue = 24514895
|
||||
)
|
||||
@Export("currentPrice")
|
||||
public int currentPrice;
|
||||
@@ -51,7 +58,7 @@ public class GrandExchangeOffer {
|
||||
}
|
||||
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lkf;Z)V",
|
||||
signature = "(Lky;Z)V",
|
||||
garbageValue = "0"
|
||||
)
|
||||
public GrandExchangeOffer(Buffer var1, boolean var2) {
|
||||
@@ -63,42 +70,42 @@ public class GrandExchangeOffer {
|
||||
this.currentPrice = var1.readInt();
|
||||
}
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)I",
|
||||
garbageValue = "0"
|
||||
signature = "(I)I",
|
||||
garbageValue = "-1032509365"
|
||||
)
|
||||
@Export("status")
|
||||
public int status() {
|
||||
return this.state & 7;
|
||||
}
|
||||
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)I",
|
||||
garbageValue = "-1998926597"
|
||||
garbageValue = "-636010194"
|
||||
)
|
||||
@Export("type")
|
||||
public int type() {
|
||||
return (this.state & 8) == 8 ? 1 : 0;
|
||||
}
|
||||
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IB)V",
|
||||
garbageValue = "126"
|
||||
signature = "(II)V",
|
||||
garbageValue = "1701823469"
|
||||
)
|
||||
void method115(int var1) {
|
||||
void method108(int var1) {
|
||||
this.state &= -8;
|
||||
this.state = (byte)(this.state | var1 & 7);
|
||||
}
|
||||
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)V",
|
||||
garbageValue = "874487771"
|
||||
garbageValue = "-184114003"
|
||||
)
|
||||
void method100(int var1) {
|
||||
void method124(int var1) {
|
||||
this.state &= -9;
|
||||
if (var1 == 1) {
|
||||
this.state = (byte)(this.state | 8);
|
||||
@@ -106,488 +113,269 @@ public class GrandExchangeOffer {
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([Ljava/lang/String;[SIIB)V",
|
||||
garbageValue = "32"
|
||||
)
|
||||
@Export("sortItemsByName")
|
||||
static void sortItemsByName(String[] var0, short[] var1, int var2, int var3) {
|
||||
if (var2 >= var3) {
|
||||
return;
|
||||
}
|
||||
int var4 = (var3 + var2) / 2;
|
||||
int var5 = var2;
|
||||
String var6 = var0[var4];
|
||||
var0[var4] = var0[var3];
|
||||
var0[var3] = var6;
|
||||
short var7 = var1[var4];
|
||||
var1[var4] = var1[var3];
|
||||
var1[var3] = var7;
|
||||
|
||||
for (int var8 = var2; var8 < var3; ++var8) {
|
||||
if (var6 == null || var0[var8] != null && var0[var8].compareTo(var6) < (var8 & 1)) {
|
||||
String var9 = var0[var8];
|
||||
var0[var8] = var0[var5];
|
||||
var0[var5] = var9;
|
||||
short var10 = var1[var8];
|
||||
var1[var8] = var1[var5];
|
||||
var1[var5++] = var10;
|
||||
}
|
||||
}
|
||||
|
||||
var0[var3] = var0[var5];
|
||||
var0[var5] = var6;
|
||||
var1[var3] = var1[var5];
|
||||
var1[var5] = var7;
|
||||
sortItemsByName(var0, var1, var2, var5 - 1);
|
||||
sortItemsByName(var0, var1, var5 + 1, var3);
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IIIZIZB)V",
|
||||
garbageValue = "1"
|
||||
signature = "(Ljava/lang/String;II)Z",
|
||||
garbageValue = "-1475643333"
|
||||
)
|
||||
@Export("doWorldSorting")
|
||||
static void doWorldSorting(int var0, int var1, int var2, boolean var3, int var4, boolean var5) {
|
||||
if (var0 >= var1) {
|
||||
return;
|
||||
}
|
||||
int var6 = (var0 + var1) / 2;
|
||||
int var7 = var0;
|
||||
World var8 = World.World_worlds[var6];
|
||||
World.World_worlds[var6] = World.World_worlds[var1];
|
||||
World.World_worlds[var1] = var8;
|
||||
|
||||
for (int var9 = var0; var9 < var1; ++var9) {
|
||||
World var11 = World.World_worlds[var9];
|
||||
int var12 = DynamicObject.compareWorlds(var11, var8, var2, var3);
|
||||
int var10;
|
||||
if (var12 != 0) {
|
||||
if (var3) {
|
||||
var10 = -var12;
|
||||
} else {
|
||||
var10 = var12;
|
||||
}
|
||||
} else if (var4 == -1) {
|
||||
var10 = 0;
|
||||
} else {
|
||||
int var13 = DynamicObject.compareWorlds(var11, var8, var4, var5);
|
||||
if (var5) {
|
||||
var10 = -var13;
|
||||
} else {
|
||||
var10 = var13;
|
||||
}
|
||||
}
|
||||
|
||||
if (var10 <= 0) {
|
||||
World var14 = World.World_worlds[var9];
|
||||
World.World_worlds[var9] = World.World_worlds[var7];
|
||||
World.World_worlds[var7++] = var14;
|
||||
}
|
||||
}
|
||||
|
||||
World.World_worlds[var1] = World.World_worlds[var7];
|
||||
World.World_worlds[var7] = var8;
|
||||
doWorldSorting(var0, var7 - 1, var2, var3, var4, var5);
|
||||
doWorldSorting(var7 + 1, var1, var2, var3, var4, var5);
|
||||
|
||||
static boolean method109(String var0, int var1) {
|
||||
return WorldMapSection0.method232(var0, var1, "openjs");
|
||||
}
|
||||
|
||||
@ObfuscatedName("an")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILcx;ZI)I",
|
||||
garbageValue = "1926107602"
|
||||
signature = "(ILcr;ZB)I",
|
||||
garbageValue = "5"
|
||||
)
|
||||
static int method114(int var0, Script var1, boolean var2) {
|
||||
int var3;
|
||||
if (var0 == 6600) {
|
||||
var3 = class42.plane;
|
||||
int var9 = MusicPatchNode2.baseX * 64 + (Client.localPlayer.x >> 7);
|
||||
int var5 = class1.baseY * 64 + (Client.localPlayer.y >> 7);
|
||||
WorldMapID.getWorldMap().method6309(var3, var9, var5, true);
|
||||
return 1;
|
||||
}
|
||||
WorldMapArea var11;
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_GETMAPNAME) {
|
||||
var3 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
String var16 = "";
|
||||
var11 = WorldMapID.getWorldMap().getMapArea(var3);
|
||||
if (var11 != null) {
|
||||
var16 = var11.getExternalName();
|
||||
}
|
||||
|
||||
Interpreter.Interpreter_stringStack[++Skills.Interpreter_stringStackSize - 1] = var16;
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_SETMAP) {
|
||||
var3 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
WorldMapID.getWorldMap().setCurrentMapAreaId(var3);
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_GETZOOM) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = WorldMapID.getWorldMap().getZoomLevel();
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_SETZOOM) {
|
||||
var3 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
WorldMapID.getWorldMap().setZoomPercentage(var3);
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_ISLOADED) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = WorldMapID.getWorldMap().isCacheLoaded() ? 1 : 0;
|
||||
return 1;
|
||||
}
|
||||
Coord var15;
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_JUMPTODISPLAYCOORD) {
|
||||
var15 = new Coord(Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize]);
|
||||
WorldMapID.getWorldMap().setWorldMapPositionTarget(var15.x, var15.y);
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_JUMPTODISPLAYCOORD_INSTANT) {
|
||||
var15 = new Coord(Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize]);
|
||||
WorldMapID.getWorldMap().setWorldMapPositionTargetInstant(var15.x, var15.y);
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_JUMPTOSOURCECOORD) {
|
||||
var15 = new Coord(Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize]);
|
||||
WorldMapID.getWorldMap().jumpToSourceCoord(var15.plane, var15.x, var15.y);
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_JUMPTOSOURCECOORD_INSTANT) {
|
||||
var15 = new Coord(Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize]);
|
||||
WorldMapID.getWorldMap().jumpToSourceCoordInstant(var15.plane, var15.x, var15.y);
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_GETDISPLAYPOSITION) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = WorldMapID.getWorldMap().getDisplayX();
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = WorldMapID.getWorldMap().getDisplayY();
|
||||
return 1;
|
||||
}
|
||||
WorldMapArea var13;
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_GETCONFIGORIGIN) {
|
||||
var3 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
var13 = WorldMapID.getWorldMap().getMapArea(var3);
|
||||
if (var13 == null) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = 0;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var13.getOrigin().packed();
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_GETCONFIGSIZE) {
|
||||
var3 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
var13 = WorldMapID.getWorldMap().getMapArea(var3);
|
||||
if (var13 == null) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = 0;
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = 0;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = (var13.getRegionHighX() - var13.getRegionLowX() + 1) * 64;
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = (var13.getRegionHighY() - var13.getRegionLowY() + 1) * 64;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_GETCONFIGBOUNDS) {
|
||||
var3 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
var13 = WorldMapID.getWorldMap().getMapArea(var3);
|
||||
if (var13 == null) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = 0;
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = 0;
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = 0;
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = 0;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var13.getRegionLowX() * 64;
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var13.getRegionLowY() * 64;
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var13.getRegionHighX() * 64 + 64 - 1;
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var13.getRegionHighY() * 64 + 64 - 1;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_GETCONFIGZOOM) {
|
||||
var3 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
var13 = WorldMapID.getWorldMap().getMapArea(var3);
|
||||
if (var13 == null) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var13.getZoom();
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
if (var0 == 6615) {
|
||||
var15 = WorldMapID.getWorldMap().getDisplayCoord();
|
||||
if (var15 == null) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var15.x;
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var15.y;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_GETCURRENTMAP) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = WorldMapID.getWorldMap().currentMapAreaId();
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_GETDISPLAYCOORD) {
|
||||
var15 = new Coord(Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize]);
|
||||
var13 = WorldMapID.getWorldMap().getCurrentMapArea();
|
||||
if (var13 == null) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
return 1;
|
||||
}
|
||||
int[] var14 = var13.position(var15.plane, var15.x, var15.y);
|
||||
if (var14 == null) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var14[0];
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var14[1];
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
Coord var7;
|
||||
if (var0 == 6618) {
|
||||
var15 = new Coord(Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize]);
|
||||
var13 = WorldMapID.getWorldMap().getCurrentMapArea();
|
||||
if (var13 == null) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
return 1;
|
||||
}
|
||||
var7 = var13.coord(var15.x, var15.y);
|
||||
if (var7 == null) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var7.packed();
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
Coord var12;
|
||||
if (var0 == 6619) {
|
||||
HealthBarUpdate.Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize];
|
||||
var12 = new Coord(Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize + 1]);
|
||||
ObjectSound.method1824(var3, var12, false);
|
||||
return 1;
|
||||
}
|
||||
if (var0 == 6620) {
|
||||
HealthBarUpdate.Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize];
|
||||
var12 = new Coord(Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize + 1]);
|
||||
ObjectSound.method1824(var3, var12, true);
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_COORDINMAP) {
|
||||
HealthBarUpdate.Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize];
|
||||
var12 = new Coord(Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize + 1]);
|
||||
var11 = WorldMapID.getWorldMap().getMapArea(var3);
|
||||
if (var11 == null) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = 0;
|
||||
return 1;
|
||||
}
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var11.containsCoord(var12.plane, var12.x, var12.y) ? 1 : 0;
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_GETSIZE) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = WorldMapID.getWorldMap().getDisplayWith();
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = WorldMapID.getWorldMap().getDisplayHeight();
|
||||
return 1;
|
||||
}
|
||||
if (var0 == 6623) {
|
||||
var15 = new Coord(Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize]);
|
||||
var13 = WorldMapID.getWorldMap().mapAreaAtCoord(var15.plane, var15.x, var15.y);
|
||||
if (var13 == null) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var13.getId();
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
if (var0 == 6624) {
|
||||
WorldMapID.getWorldMap().setMaxFlashCount(Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize]);
|
||||
return 1;
|
||||
}
|
||||
if (var0 == 6625) {
|
||||
WorldMapID.getWorldMap().resetMaxFlashCount();
|
||||
return 1;
|
||||
}
|
||||
if (var0 == 6626) {
|
||||
WorldMapID.getWorldMap().setCyclesPerFlash(Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize]);
|
||||
return 1;
|
||||
}
|
||||
if (var0 == 6627) {
|
||||
WorldMapID.getWorldMap().resetCyclesPerFlash();
|
||||
return 1;
|
||||
}
|
||||
boolean var10;
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_PERPETUALFLASH) {
|
||||
var10 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize] == 1;
|
||||
WorldMapID.getWorldMap().setPerpetualFlash(var10);
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_FLASHELEMENT) {
|
||||
var3 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
WorldMapID.getWorldMap().flashElement(var3);
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_FLASHELEMENTCATEGORY) {
|
||||
var3 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
WorldMapID.getWorldMap().flashCategory(var3);
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_STOPCURRENTFLASHES) {
|
||||
WorldMapID.getWorldMap().stopCurrentFlashes();
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_DISABLEELEMENTS) {
|
||||
var10 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize] == 1;
|
||||
WorldMapID.getWorldMap().setElementsDisabled(var10);
|
||||
return 1;
|
||||
}
|
||||
boolean var4;
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_DISABLEELEMENT) {
|
||||
HealthBarUpdate.Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize];
|
||||
var4 = Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize + 1] == 1;
|
||||
WorldMapID.getWorldMap().disableElement(var3, var4);
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_DISABLEELEMENTCATEGORY) {
|
||||
HealthBarUpdate.Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize];
|
||||
var4 = Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize + 1] == 1;
|
||||
WorldMapID.getWorldMap().setCategoryDisabled(var3, var4);
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_GETDISABLEELEMENTS) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = WorldMapID.getWorldMap().getElementsDisabled() ? 1 : 0;
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_GETDISABLEELEMENT) {
|
||||
var3 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = WorldMapID.getWorldMap().isElementDisabled(var3) ? 1 : 0;
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_GETDISABLEELEMENTCATEGORY) {
|
||||
var3 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = WorldMapID.getWorldMap().isCategoryDisabled(var3) ? 1 : 0;
|
||||
return 1;
|
||||
}
|
||||
if (var0 == 6638) {
|
||||
HealthBarUpdate.Interpreter_intStackSize -= 2;
|
||||
var3 = Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize];
|
||||
var12 = new Coord(Interpreter.Interpreter_intStack[HealthBarUpdate.Interpreter_intStackSize + 1]);
|
||||
var7 = WorldMapID.getWorldMap().method6352(var3, var12);
|
||||
if (var7 == null) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var7.packed();
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
AbstractWorldMapIcon var8;
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_LISTELEMENT_START) {
|
||||
var8 = WorldMapID.getWorldMap().iconStart();
|
||||
if (var8 == null) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var8.getElement();
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var8.coord2.packed();
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_LISTELEMENT_NEXT) {
|
||||
var8 = WorldMapID.getWorldMap().iconNext();
|
||||
if (var8 == null) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var8.getElement();
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var8.coord2.packed();
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
WorldMapElement var6;
|
||||
if (var0 == ScriptOpcodes.MEC_TEXT) {
|
||||
var3 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
var6 = class222.WorldMapElement_get(var3);
|
||||
if (var6.name == null) {
|
||||
Interpreter.Interpreter_stringStack[++Skills.Interpreter_stringStackSize - 1] = "";
|
||||
} else {
|
||||
Interpreter.Interpreter_stringStack[++Skills.Interpreter_stringStackSize - 1] = var6.name;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.MEC_TEXTSIZE) {
|
||||
var3 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
var6 = class222.WorldMapElement_get(var3);
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var6.textSize;
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.MEC_CATEGORY) {
|
||||
var3 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
var6 = class222.WorldMapElement_get(var3);
|
||||
if (var6 == null) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var6.category;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.MEC_SPRITE) {
|
||||
var3 = Interpreter.Interpreter_intStack[--HealthBarUpdate.Interpreter_intStackSize];
|
||||
var6 = class222.WorldMapElement_get(var3);
|
||||
if (var6 == null) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = -1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = var6.sprite1;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_ELEMENT) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = WorldMapIcon_0.worldMapEvent.mapElement;
|
||||
return 1;
|
||||
}
|
||||
if (var0 == 6698) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = WorldMapIcon_0.worldMapEvent.coord1.packed();
|
||||
return 1;
|
||||
}
|
||||
if (var0 == ScriptOpcodes.WORLDMAP_ELEMENTCOORD) {
|
||||
Interpreter.Interpreter_intStack[++HealthBarUpdate.Interpreter_intStackSize - 1] = WorldMapIcon_0.worldMapEvent.coord2.packed();
|
||||
return 1;
|
||||
}
|
||||
return 2;
|
||||
}
|
||||
|
||||
@ObfuscatedName("fk")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ZI)V",
|
||||
garbageValue = "-1093013043"
|
||||
)
|
||||
static final void method99(boolean var0) {
|
||||
if (var0) {
|
||||
Client.field690 = Login.field1201 ? class160.field2004 : class160.field2002;
|
||||
static int method123(int var0, Script var1, boolean var2) {
|
||||
Widget var3;
|
||||
if (var0 >= 2000) {
|
||||
var0 -= 1000;
|
||||
var3 = WorldMapElement.getWidget(Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize]);
|
||||
} else {
|
||||
Client.field690 = WorldMapLabelSize.clientPreferences.parameters.containsKey(ViewportMouse.method2971(Login.Login_username)) ? class160.field2005 : class160.field2001;
|
||||
var3 = var2 ? class286.field3623 : class297.field3693;
|
||||
}
|
||||
|
||||
FriendSystem.invalidateWidget(var3);
|
||||
if (var0 != ScriptOpcodes.CC_SETOBJECT && var0 != ScriptOpcodes.CC_SETOBJECT_NONUM && var0 != ScriptOpcodes.CC_SETOBJECT_ALWAYS_NUM) {
|
||||
if (var0 == ScriptOpcodes.CC_SETNPCHEAD) {
|
||||
var3.modelType = 2;
|
||||
var3.modelId = Interpreter.Interpreter_intStack[--Interpreter.Interpreter_intStackSize];
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETPLAYERHEAD_SELF) {
|
||||
var3.modelType = 3;
|
||||
var3.modelId = WorldMapIcon_1.localPlayer.appearance.getChatHeadId();
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
} else {
|
||||
Interpreter.Interpreter_intStackSize -= 2;
|
||||
int var4 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize];
|
||||
int var5 = Interpreter.Interpreter_intStack[Interpreter.Interpreter_intStackSize + 1];
|
||||
var3.itemId = var4;
|
||||
var3.itemQuantity = var5;
|
||||
ItemDefinition var6 = WorldMapData_0.ItemDefinition_get(var4);
|
||||
var3.modelAngleX = var6.xan2d;
|
||||
var3.modelAngleY = var6.yan2d;
|
||||
var3.modelAngleZ = var6.zan2d;
|
||||
var3.modelOffsetX = var6.offsetX2d;
|
||||
var3.modelOffsetY = var6.offsetY2d;
|
||||
var3.modelZoom = var6.zoom2d;
|
||||
if (var0 == ScriptOpcodes.CC_SETOBJECT_NONUM) {
|
||||
var3.itemQuantityMode = 0;
|
||||
} else if (var0 == ScriptOpcodes.CC_SETOBJECT_ALWAYS_NUM | 1 == var6.isStackable) {
|
||||
var3.itemQuantityMode = 1;
|
||||
} else {
|
||||
var3.itemQuantityMode = 2;
|
||||
}
|
||||
|
||||
if (var3.field2638 > 0) {
|
||||
var3.modelZoom = var3.modelZoom * 32 / var3.field2638;
|
||||
} else if (var3.rawWidth > 0) {
|
||||
var3.modelZoom = var3.modelZoom * 32 / var3.rawWidth;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("hs")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ZLkx;B)V",
|
||||
garbageValue = "104"
|
||||
)
|
||||
@Export("updateNpcs")
|
||||
static final void updateNpcs(boolean var0, PacketBuffer var1) {
|
||||
Client.field899 = 0;
|
||||
Client.field861 = 0;
|
||||
GrandExchangeOfferUnitPriceComparator.readNpcUpdates();
|
||||
BoundaryObject.method3216(var0, var1);
|
||||
method112(var1);
|
||||
|
||||
int var2;
|
||||
for (var2 = 0; var2 < Client.field899; ++var2) {
|
||||
int var3 = Client.field655[var2];
|
||||
if (Client.npcs[var3].npcCycle != Client.cycle) {
|
||||
Client.npcs[var3].definition = null;
|
||||
Client.npcs[var3] = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (var1.offset != Client.packetWriter.serverPacketLength) {
|
||||
throw new RuntimeException(var1.offset + "," + Client.packetWriter.serverPacketLength);
|
||||
} else {
|
||||
for (var2 = 0; var2 < Client.npcCount; ++var2) {
|
||||
if (Client.npcs[Client.npcIndices[var2]] == null) {
|
||||
throw new RuntimeException(var2 + "," + Client.npcCount);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("hj")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lkx;I)V",
|
||||
garbageValue = "494584381"
|
||||
)
|
||||
static final void method112(PacketBuffer var0) {
|
||||
for (int var1 = 0; var1 < Client.field861; ++var1) {
|
||||
int var2 = Client.field669[var1];
|
||||
NPC var3 = Client.npcs[var2];
|
||||
int var4 = var0.readUnsignedByte();
|
||||
if ((var4 & 1) != 0) {
|
||||
var3.targetIndex = var0.method5445();
|
||||
if (var3.targetIndex == 65535) {
|
||||
var3.targetIndex = -1;
|
||||
}
|
||||
}
|
||||
|
||||
int var5;
|
||||
int var6;
|
||||
int var7;
|
||||
int var8;
|
||||
if ((var4 & 64) != 0) {
|
||||
var5 = var0.method5447();
|
||||
var6 = var0.method5447();
|
||||
var7 = var3.x - (var5 - PacketWriter.baseX * 64 - PacketWriter.baseX * 64) * 64;
|
||||
var8 = var3.y - (var6 - RouteStrategy.baseY * 64 - RouteStrategy.baseY * 64) * 64;
|
||||
if (var7 != 0 || var8 != 0) {
|
||||
var3.field946 = (int)(Math.atan2((double)var7, (double)var8) * 325.949D) & 2047;
|
||||
}
|
||||
}
|
||||
|
||||
if ((var4 & 32) != 0) {
|
||||
var5 = var0.readUnsignedShort();
|
||||
if (var5 == 65535) {
|
||||
var5 = -1;
|
||||
}
|
||||
|
||||
var6 = var0.method5438();
|
||||
if (var5 == var3.sequence && var5 != -1) {
|
||||
var7 = Widget.SequenceDefinition_get(var5).field3492;
|
||||
if (var7 == 1) {
|
||||
var3.sequenceFrame = 0;
|
||||
var3.sequenceFrameCycle = 0;
|
||||
var3.sequenceDelay = var6;
|
||||
var3.field964 = 0;
|
||||
}
|
||||
|
||||
if (var7 == 2) {
|
||||
var3.field964 = 0;
|
||||
}
|
||||
} else if (var5 == -1 || var3.sequence == -1 || Widget.SequenceDefinition_get(var5).field3508 >= Widget.SequenceDefinition_get(var3.sequence).field3508) {
|
||||
var3.sequence = var5;
|
||||
var3.sequenceFrame = 0;
|
||||
var3.sequenceFrameCycle = 0;
|
||||
var3.sequenceDelay = var6;
|
||||
var3.field964 = 0;
|
||||
var3.field947 = var3.pathLength;
|
||||
}
|
||||
}
|
||||
|
||||
if ((var4 & 4) != 0) {
|
||||
var3.definition = ViewportMouse.getNpcDefinition(var0.readUnsignedShort());
|
||||
var3.size = var3.definition.size * 64;
|
||||
var3.field971 = var3.definition.rotation;
|
||||
var3.walkSequence = var3.definition.walkSequence;
|
||||
var3.walkBackSequence = var3.definition.walkBackSequence;
|
||||
var3.walkLeftSequence = var3.definition.walkLeftSequence;
|
||||
var3.walkRightSequence = var3.definition.walkRightSequence;
|
||||
var3.readySequence = var3.definition.readySequence;
|
||||
var3.turnLeftSequence = var3.definition.turnLeftSequence;
|
||||
var3.turnRightSequence = var3.definition.turnRightSequence;
|
||||
}
|
||||
|
||||
if ((var4 & 16) != 0) {
|
||||
var5 = var0.readUnsignedByteNegate();
|
||||
int var9;
|
||||
int var10;
|
||||
int var11;
|
||||
if (var5 > 0) {
|
||||
for (var6 = 0; var6 < var5; ++var6) {
|
||||
var8 = -1;
|
||||
var9 = -1;
|
||||
var10 = -1;
|
||||
var7 = var0.readUShortSmart();
|
||||
if (var7 == 32767) {
|
||||
var7 = var0.readUShortSmart();
|
||||
var9 = var0.readUShortSmart();
|
||||
var8 = var0.readUShortSmart();
|
||||
var10 = var0.readUShortSmart();
|
||||
} else if (var7 != 32766) {
|
||||
var9 = var0.readUShortSmart();
|
||||
} else {
|
||||
var7 = -1;
|
||||
}
|
||||
|
||||
var11 = var0.readUShortSmart();
|
||||
var3.addHitSplat(var7, var9, var8, var10, Client.cycle, var11);
|
||||
}
|
||||
}
|
||||
|
||||
var6 = var0.method5436();
|
||||
if (var6 > 0) {
|
||||
for (var7 = 0; var7 < var6; ++var7) {
|
||||
var8 = var0.readUShortSmart();
|
||||
var9 = var0.readUShortSmart();
|
||||
if (var9 != 32767) {
|
||||
var10 = var0.readUShortSmart();
|
||||
var11 = var0.readUnsignedByte();
|
||||
int var12 = var9 > 0 ? var0.method5438() : var11;
|
||||
var3.addHealthBar(var8, Client.cycle, var9, var10, var11, var12);
|
||||
} else {
|
||||
var3.removeHealthBar(var8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ((var4 & 8) != 0) {
|
||||
var3.spotAnimation = var0.method5445();
|
||||
var5 = var0.method5455();
|
||||
var3.heightOffset = var5 >> 16;
|
||||
var3.field958 = (var5 & 65535) + Client.cycle;
|
||||
var3.spotAnimationFrame = 0;
|
||||
var3.spotAnimationFrameCycle = 0;
|
||||
if (var3.field958 > Client.cycle) {
|
||||
var3.spotAnimationFrame = -1;
|
||||
}
|
||||
|
||||
if (var3.spotAnimation == 65535) {
|
||||
var3.spotAnimation = -1;
|
||||
}
|
||||
}
|
||||
|
||||
if ((var4 & 2) != 0) {
|
||||
var3.overheadText = var0.readStringCp1252NullTerminated();
|
||||
var3.overheadTextCyclesRemaining = 100;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("li")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "869899201"
|
||||
)
|
||||
static void method122() {
|
||||
if (Client.field706 && WorldMapIcon_1.localPlayer != null) {
|
||||
int var0 = WorldMapIcon_1.localPlayer.pathX[0];
|
||||
int var1 = WorldMapIcon_1.localPlayer.pathY[0];
|
||||
if (var0 < 0 || var1 < 0 || var0 >= 104 || var1 >= 104) {
|
||||
return;
|
||||
}
|
||||
|
||||
DynamicObject.oculusOrbFocalPointX = WorldMapIcon_1.localPlayer.x;
|
||||
int var2 = GrandExchangeOfferTotalQuantityComparator.getTileHeight(WorldMapIcon_1.localPlayer.x, WorldMapIcon_1.localPlayer.y, ItemContainer.plane) - Client.camFollowHeight;
|
||||
if (var2 < ScriptEvent.field559) {
|
||||
ScriptEvent.field559 = var2;
|
||||
}
|
||||
|
||||
FriendSystem.oculusOrbFocalPointY = WorldMapIcon_1.localPlayer.y;
|
||||
Client.field706 = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user