This commit is contained in:
Lucwousin
2019-12-16 18:40:02 +01:00
parent 471eaeb3e0
commit f6c2b4ac11
338 changed files with 40594 additions and 41546 deletions

View File

@@ -3,50 +3,51 @@ 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("ak")
@ObfuscatedName("aq")
@Implements("WorldMapSection1")
public class WorldMapSection1 implements WorldMapSection {
@ObfuscatedName("n")
@ObfuscatedName("x")
public static short[][] field269;
@ObfuscatedName("dj")
@ObfuscatedSignature(
signature = "[Lmb;"
signature = "Lif;"
)
@Export("JagexCache_idxFiles")
public static BufferedFile[] JagexCache_idxFiles;
@ObfuscatedName("u")
@Export("archive13")
static Archive archive13;
@ObfuscatedName("f")
@ObfuscatedGetter(
intValue = 1685599607
intValue = -129099459
)
@Export("minPlane")
int minPlane;
@ObfuscatedName("f")
@ObfuscatedName("i")
@ObfuscatedGetter(
intValue = 1999692887
intValue = 2029777559
)
@Export("planes")
int planes;
@ObfuscatedName("b")
@ObfuscatedName("y")
@ObfuscatedGetter(
intValue = -942650023
intValue = 1452885269
)
@Export("regionStartX")
int regionStartX;
@ObfuscatedName("g")
@ObfuscatedName("w")
@ObfuscatedGetter(
intValue = 867361781
intValue = 1570402195
)
@Export("regionStartY")
int regionStartY;
@ObfuscatedName("z")
@ObfuscatedName("p")
@ObfuscatedGetter(
intValue = -101152241
intValue = 387598709
)
@Export("regionEndX")
int regionEndX;
@ObfuscatedName("p")
@ObfuscatedName("b")
@ObfuscatedGetter(
intValue = -1283345723
intValue = -1600612691
)
@Export("regionEndY")
int regionEndY;
@@ -54,10 +55,10 @@ public class WorldMapSection1 implements WorldMapSection {
WorldMapSection1() {
}
@ObfuscatedName("u")
@ObfuscatedName("f")
@ObfuscatedSignature(
signature = "(Laf;I)V",
garbageValue = "-567179164"
signature = "(Laa;I)V",
garbageValue = "515570621"
)
@Export("expandBounds")
public void expandBounds(WorldMapArea var1) {
@@ -79,34 +80,34 @@ public class WorldMapSection1 implements WorldMapSection {
}
@ObfuscatedName("f")
@ObfuscatedName("i")
@ObfuscatedSignature(
signature = "(IIIB)Z",
garbageValue = "0"
signature = "(IIII)Z",
garbageValue = "2033433479"
)
@Export("containsCoord")
public boolean containsCoord(int var1, int var2, int var3) {
if (var1 >= this.minPlane && var1 < this.minPlane + this.planes) {
if (var1 >= this.minPlane && var1 < this.planes + this.minPlane) {
return var2 >> 6 == this.regionStartX && var3 >> 6 == this.regionStartY;
} else {
return false;
}
}
@ObfuscatedName("b")
@ObfuscatedName("y")
@ObfuscatedSignature(
signature = "(III)Z",
garbageValue = "110675609"
signature = "(IIB)Z",
garbageValue = "-66"
)
@Export("containsPosition")
public boolean containsPosition(int var1, int var2) {
return var1 >> 6 == this.regionEndX && var2 >> 6 == this.regionEndY;
}
@ObfuscatedName("g")
@ObfuscatedName("w")
@ObfuscatedSignature(
signature = "(IIIB)[I",
garbageValue = "69"
signature = "(IIII)[I",
garbageValue = "1684413985"
)
@Export("getBorderTileLengths")
public int[] getBorderTileLengths(int var1, int var2, int var3) {
@@ -118,10 +119,10 @@ public class WorldMapSection1 implements WorldMapSection {
}
}
@ObfuscatedName("z")
@ObfuscatedName("p")
@ObfuscatedSignature(
signature = "(III)Lhx;",
garbageValue = "1062204141"
signature = "(IIB)Lht;",
garbageValue = "21"
)
@Export("coord")
public Coord coord(int var1, int var2) {
@@ -134,10 +135,10 @@ public class WorldMapSection1 implements WorldMapSection {
}
}
@ObfuscatedName("p")
@ObfuscatedName("b")
@ObfuscatedSignature(
signature = "(Lkg;I)V",
garbageValue = "-179898655"
signature = "(Lkq;B)V",
garbageValue = "74"
)
@Export("read")
public void read(Buffer var1) {
@@ -150,193 +151,24 @@ public class WorldMapSection1 implements WorldMapSection {
this.postRead();
}
@ObfuscatedName("h")
@ObfuscatedName("e")
@ObfuscatedSignature(
signature = "(S)V",
garbageValue = "24453"
signature = "(B)V",
garbageValue = "-15"
)
@Export("postRead")
void postRead() {
}
@ObfuscatedName("ad")
@ObfuscatedName("gs")
@ObfuscatedSignature(
signature = "(ILci;ZI)I",
garbageValue = "2067756787"
signature = "(I)V",
garbageValue = "-1906652083"
)
static int method608(int var0, Script var1, boolean var2) {
if (var0 == ScriptOpcodes.CLIENTCLOCK) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.cycle;
return 1;
} else {
int var3;
int var4;
if (var0 == ScriptOpcodes.INV_GETOBJ) {
GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
var4 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize + 1];
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = AttackOption.method2098(var3, var4);
return 1;
} else if (var0 == ScriptOpcodes.INV_GETNUM) {
GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
var4 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize + 1];
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = class286.ItemContainer_getCount(var3, var4);
return 1;
} else if (var0 == ScriptOpcodes.INV_TOTAL) {
GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
var4 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize + 1];
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = class96.method2314(var3, var4);
return 1;
} else if (var0 == ScriptOpcodes.INV_SIZE) {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = TextureProvider.getInvDefinition(var3).size;
return 1;
} else if (var0 == ScriptOpcodes.STAT) {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.currentLevels[var3];
return 1;
} else if (var0 == ScriptOpcodes.STAT_BASE) {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.levels[var3];
return 1;
} else if (var0 == ScriptOpcodes.STAT_XP) {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.experience[var3];
return 1;
} else {
int var5;
if (var0 == ScriptOpcodes.COORD) {
var3 = ClientPacket.Client_plane;
var4 = class51.baseX * 64 + (class215.localPlayer.x >> 7);
var5 = VarcInt.baseY * 64 + (class215.localPlayer.y >> 7);
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = (var4 << 14) + var5 + (var3 << 28);
return 1;
} else if (var0 == ScriptOpcodes.COORDX) {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = var3 >> 14 & 16383;
return 1;
} else if (var0 == ScriptOpcodes.COORDZ) {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = var3 >> 28;
return 1;
} else if (var0 == ScriptOpcodes.COORDY) {
var3 = Interpreter.Interpreter_intStack[--GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = var3 & 16383;
return 1;
} else if (var0 == ScriptOpcodes.MAP_MEMBERS) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.isMembersWorld ? 1 : 0;
return 1;
} else if (var0 == ScriptOpcodes.INVOTHER_GETOBJ) {
GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] + 32768;
var4 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize + 1];
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = AttackOption.method2098(var3, var4);
return 1;
} else if (var0 == ScriptOpcodes.INVOTHER_GETNUM) {
GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] + 32768;
var4 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize + 1];
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = class286.ItemContainer_getCount(var3, var4);
return 1;
} else if (var0 == ScriptOpcodes.INVOTHER_TOTAL) {
GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize -= 2;
var3 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize] + 32768;
var4 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize + 1];
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = class96.method2314(var3, var4);
return 1;
} else if (var0 == ScriptOpcodes.STAFFMODLEVEL) {
if (Client.staffModLevel >= 2) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.staffModLevel;
} else {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else if (var0 == ScriptOpcodes.REBOOTTIMER) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.rebootTimer;
return 1;
} else if (var0 == ScriptOpcodes.MAP_WORLD) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.worldId;
return 1;
} else if (var0 == ScriptOpcodes.RUNENERGY_VISIBLE) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.runEnergy;
return 1;
} else if (var0 == ScriptOpcodes.RUNWEIGHT_VISIBLE) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.weight;
return 1;
} else if (var0 == ScriptOpcodes.PLAYERMOD) {
if (Client.playerMod) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = 1;
} else {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = 0;
}
return 1;
} else if (var0 == ScriptOpcodes.WORLDFLAGS) {
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = Client.worldProperties;
return 1;
} else if (var0 == ScriptOpcodes.MOVECOORD) {
GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize -= 4;
var3 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize];
var4 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize + 1];
var5 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize + 2];
int var6 = Interpreter.Interpreter_intStack[GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize + 3];
var3 += var4 << 14;
var3 += var5 << 28;
var3 += var6;
Interpreter.Interpreter_intStack[++GrandExchangeOfferTotalQuantityComparator.Interpreter_intStackSize - 1] = var3;
return 1;
} else {
return 2;
}
}
}
}
@ObfuscatedName("iy")
@ObfuscatedSignature(
signature = "(Lhl;IIZI)V",
garbageValue = "-521938970"
)
@Export("alignWidgetSize")
static void alignWidgetSize(Widget var0, int var1, int var2, boolean var3) {
int var4 = var0.width;
int var5 = var0.height;
if (var0.widthAlignment == 0) {
var0.width = var0.rawWidth;
} else if (var0.widthAlignment == 1) {
var0.width = var1 - var0.rawWidth;
} else if (var0.widthAlignment == 2) {
var0.width = var0.rawWidth * var1 >> 14;
}
if (var0.heightAlignment == 0) {
var0.height = var0.rawHeight;
} else if (var0.heightAlignment == 1) {
var0.height = var2 - var0.rawHeight;
} else if (var0.heightAlignment == 2) {
var0.height = var2 * var0.rawHeight >> 14;
}
if (var0.widthAlignment == 4) {
var0.width = var0.field2594 * var0.height / var0.field2694;
}
if (var0.heightAlignment == 4) {
var0.height = var0.width * var0.field2694 / var0.field2594;
}
if (var0.contentType == 1337) {
Client.viewportWidget = var0;
}
if (var3 && var0.onResize != null && (var4 != var0.width || var5 != var0.height)) {
ScriptEvent var6 = new ScriptEvent();
var6.widget = var0;
var6.args = var0.onResize;
Client.scriptEvents.addFirst(var6);
static void method584() {
if (GrandExchangeEvent.worldMap != null) {
GrandExchangeEvent.worldMap.method6367(UrlRequest.Client_plane, MusicPatchPcmStream.baseX * 64 + (Message.localPlayer.x >> 7), ScriptEvent.baseY * 64 + (Message.localPlayer.y >> 7), false);
GrandExchangeEvent.worldMap.loadCache();
}
}