chore: rev 190
This commit is contained in:
@@ -5,51 +5,50 @@ import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
import net.runelite.rs.ScriptOpcodes;
|
||||
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("d")
|
||||
@Implements("GrandExchangeOffer")
|
||||
public class GrandExchangeOffer {
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("ad")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Liy;"
|
||||
signature = "Llv;"
|
||||
)
|
||||
@Export("ItemDefinition_modelArchive")
|
||||
public static AbstractArchive ItemDefinition_modelArchive;
|
||||
@ObfuscatedName("dk")
|
||||
static Bounds field87;
|
||||
@ObfuscatedName("db")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lih;"
|
||||
signature = "Lig;"
|
||||
)
|
||||
@Export("archive2")
|
||||
static Archive archive2;
|
||||
@ObfuscatedName("x")
|
||||
@Export("archive4")
|
||||
static Archive archive4;
|
||||
@ObfuscatedName("m")
|
||||
@Export("state")
|
||||
byte state;
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1191314621
|
||||
intValue = -1112039617
|
||||
)
|
||||
@Export("id")
|
||||
public int id;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1373983325
|
||||
intValue = 416176327
|
||||
)
|
||||
@Export("unitPrice")
|
||||
public int unitPrice;
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -435168387
|
||||
intValue = -981210321
|
||||
)
|
||||
@Export("totalQuantity")
|
||||
public int totalQuantity;
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1383495981
|
||||
intValue = 1341718687
|
||||
)
|
||||
@Export("currentQuantity")
|
||||
public int currentQuantity;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1519014469
|
||||
intValue = 1366605879
|
||||
)
|
||||
@Export("currentPrice")
|
||||
public int currentPrice;
|
||||
@@ -58,7 +57,7 @@ public class GrandExchangeOffer {
|
||||
}
|
||||
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lkb;Z)V",
|
||||
signature = "(Lkn;Z)V",
|
||||
garbageValue = "0"
|
||||
)
|
||||
public GrandExchangeOffer(Buffer var1, boolean var2) {
|
||||
@@ -70,42 +69,42 @@ public class GrandExchangeOffer {
|
||||
this.currentPrice = var1.readInt();
|
||||
}
|
||||
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)I",
|
||||
garbageValue = "1689314705"
|
||||
garbageValue = "271165601"
|
||||
)
|
||||
@Export("status")
|
||||
public int status() {
|
||||
return this.state & 7;
|
||||
}
|
||||
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)I",
|
||||
garbageValue = "-1922096625"
|
||||
garbageValue = "-2130764898"
|
||||
)
|
||||
@Export("type")
|
||||
public int type() {
|
||||
return (this.state & 8) == 8 ? 1 : 0;
|
||||
}
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)V",
|
||||
garbageValue = "587802237"
|
||||
garbageValue = "-308953741"
|
||||
)
|
||||
void method211(int var1) {
|
||||
void method172(int var1) {
|
||||
this.state &= -8;
|
||||
this.state = (byte)(this.state | var1 & 7);
|
||||
}
|
||||
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(II)V",
|
||||
garbageValue = "-582599399"
|
||||
signature = "(IB)V",
|
||||
garbageValue = "1"
|
||||
)
|
||||
void method187(int var1) {
|
||||
void method173(int var1) {
|
||||
this.state &= -9;
|
||||
if (var1 == 1) {
|
||||
this.state = (byte)(this.state | 8);
|
||||
@@ -113,196 +112,244 @@ public class GrandExchangeOffer {
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([Ljava/lang/String;[SIII)V",
|
||||
garbageValue = "922781737"
|
||||
signature = "([Lch;II[I[II)V",
|
||||
garbageValue = "-1520869912"
|
||||
)
|
||||
@Export("sortItemsByName")
|
||||
static void sortItemsByName(String[] var0, short[] var1, int var2, int var3) {
|
||||
if (var2 < var3) {
|
||||
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;
|
||||
@Export("sortWorlds")
|
||||
static void sortWorlds(World[] var0, int var1, int var2, int[] var3, int[] var4) {
|
||||
if (var1 < var2) {
|
||||
int var5 = var1 - 1;
|
||||
int var6 = var2 + 1;
|
||||
int var7 = (var2 + var1) / 2;
|
||||
World var8 = var0[var7];
|
||||
var0[var7] = var0[var1];
|
||||
var0[var1] = var8;
|
||||
|
||||
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;
|
||||
while (var5 < var6) {
|
||||
boolean var9 = true;
|
||||
|
||||
int var10;
|
||||
int var11;
|
||||
int var12;
|
||||
do {
|
||||
--var6;
|
||||
|
||||
for (var10 = 0; var10 < 4; ++var10) {
|
||||
if (var3[var10] == 2) {
|
||||
var11 = var0[var6].index;
|
||||
var12 = var8.index;
|
||||
} else if (var3[var10] == 1) {
|
||||
var11 = var0[var6].population;
|
||||
var12 = var8.population;
|
||||
if (var11 == -1 && var4[var10] == 1) {
|
||||
var11 = 2001;
|
||||
}
|
||||
|
||||
if (var12 == -1 && var4[var10] == 1) {
|
||||
var12 = 2001;
|
||||
}
|
||||
} else if (var3[var10] == 3) {
|
||||
var11 = var0[var6].isMembersOnly() ? 1 : 0;
|
||||
var12 = var8.isMembersOnly() ? 1 : 0;
|
||||
} else {
|
||||
var11 = var0[var6].id;
|
||||
var12 = var8.id;
|
||||
}
|
||||
|
||||
if (var12 != var11) {
|
||||
if ((var4[var10] != 1 || var11 <= var12) && (var4[var10] != 0 || var11 >= var12)) {
|
||||
var9 = false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if (var10 == 3) {
|
||||
var9 = false;
|
||||
}
|
||||
}
|
||||
} while(var9);
|
||||
|
||||
var9 = true;
|
||||
|
||||
do {
|
||||
++var5;
|
||||
|
||||
for (var10 = 0; var10 < 4; ++var10) {
|
||||
if (var3[var10] == 2) {
|
||||
var11 = var0[var5].index;
|
||||
var12 = var8.index;
|
||||
} else if (var3[var10] == 1) {
|
||||
var11 = var0[var5].population;
|
||||
var12 = var8.population;
|
||||
if (var11 == -1 && var4[var10] == 1) {
|
||||
var11 = 2001;
|
||||
}
|
||||
|
||||
if (var12 == -1 && var4[var10] == 1) {
|
||||
var12 = 2001;
|
||||
}
|
||||
} else if (var3[var10] == 3) {
|
||||
var11 = var0[var5].isMembersOnly() ? 1 : 0;
|
||||
var12 = var8.isMembersOnly() ? 1 : 0;
|
||||
} else {
|
||||
var11 = var0[var5].id;
|
||||
var12 = var8.id;
|
||||
}
|
||||
|
||||
if (var12 != var11) {
|
||||
if ((var4[var10] != 1 || var11 >= var12) && (var4[var10] != 0 || var11 <= var12)) {
|
||||
var9 = false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if (var10 == 3) {
|
||||
var9 = false;
|
||||
}
|
||||
}
|
||||
} while(var9);
|
||||
|
||||
if (var5 < var6) {
|
||||
World var13 = var0[var5];
|
||||
var0[var5] = var0[var6];
|
||||
var0[var6] = var13;
|
||||
}
|
||||
}
|
||||
|
||||
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);
|
||||
sortWorlds(var0, var1, var6, var3, var4);
|
||||
sortWorlds(var0, var6 + 1, var2, var3, var4);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILce;ZB)I",
|
||||
garbageValue = "19"
|
||||
signature = "(ILcs;ZI)I",
|
||||
garbageValue = "-2096234716"
|
||||
)
|
||||
static int method191(int var0, Script var1, boolean var2) {
|
||||
Widget var3 = var2 ? GrandExchangeOfferNameComparator.field115 : Interpreter.field1130;
|
||||
if (var0 == ScriptOpcodes.CC_GETX) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.x;
|
||||
static int method194(int var0, Script var1, boolean var2) {
|
||||
Widget var3;
|
||||
if (var0 == ScriptOpcodes.IF_GETINVOBJECT) {
|
||||
var3 = WorldMapSprite.getWidget(Interpreter.Interpreter_intStack[--UrlRequester.Interpreter_intStackSize]);
|
||||
Interpreter.Interpreter_intStack[++UrlRequester.Interpreter_intStackSize - 1] = var3.itemId;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETY) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.y;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETINVCOUNT) {
|
||||
var3 = WorldMapSprite.getWidget(Interpreter.Interpreter_intStack[--UrlRequester.Interpreter_intStackSize]);
|
||||
if (var3.itemId != -1) {
|
||||
Interpreter.Interpreter_intStack[++UrlRequester.Interpreter_intStackSize - 1] = var3.itemQuantity;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++UrlRequester.Interpreter_intStackSize - 1] = 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETWIDTH) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.width;
|
||||
} else if (var0 == ScriptOpcodes.IF_HASSUB) {
|
||||
int var5 = Interpreter.Interpreter_intStack[--UrlRequester.Interpreter_intStackSize];
|
||||
InterfaceParent var4 = (InterfaceParent)Client.interfaceParents.get((long)var5);
|
||||
if (var4 != null) {
|
||||
Interpreter.Interpreter_intStack[++UrlRequester.Interpreter_intStackSize - 1] = 1;
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++UrlRequester.Interpreter_intStackSize - 1] = 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETHEIGHT) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.height;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETHIDE) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.isHidden ? 1 : 0;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.CC_GETLAYER) {
|
||||
Interpreter.Interpreter_intStack[++Interpreter.Interpreter_intStackSize - 1] = var3.parentId;
|
||||
} else if (var0 == ScriptOpcodes.IF_GETTOP) {
|
||||
Interpreter.Interpreter_intStack[++UrlRequester.Interpreter_intStackSize - 1] = Client.rootInterface;
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("hj")
|
||||
@ObfuscatedName("al")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ZLkj;B)V",
|
||||
garbageValue = "18"
|
||||
signature = "(II)I",
|
||||
garbageValue = "-1566307415"
|
||||
)
|
||||
@Export("updateNpcs")
|
||||
static final void updateNpcs(boolean var0, PacketBuffer var1) {
|
||||
Client.field801 = 0;
|
||||
Client.field851 = 0;
|
||||
WorldMapIcon_0.method304();
|
||||
|
||||
int var2;
|
||||
while (var1.bitsRemaining(Client.packetWriter.serverPacketLength) >= 27) {
|
||||
var2 = var1.readBits(15);
|
||||
if (var2 == 32767) {
|
||||
break;
|
||||
}
|
||||
|
||||
boolean var3 = false;
|
||||
if (Client.npcs[var2] == null) {
|
||||
Client.npcs[var2] = new NPC();
|
||||
var3 = true;
|
||||
}
|
||||
|
||||
NPC var4 = Client.npcs[var2];
|
||||
Client.npcIndices[++Client.npcCount - 1] = var2;
|
||||
var4.npcCycle = Client.cycle;
|
||||
int var5;
|
||||
if (var0) {
|
||||
var5 = var1.readBits(8);
|
||||
if (var5 > 127) {
|
||||
var5 -= 256;
|
||||
}
|
||||
} else {
|
||||
var5 = var1.readBits(5);
|
||||
if (var5 > 15) {
|
||||
var5 -= 32;
|
||||
}
|
||||
}
|
||||
|
||||
int var6 = Client.defaultRotations[var1.readBits(3)];
|
||||
if (var3) {
|
||||
var4.orientation = var4.rotation = var6;
|
||||
}
|
||||
|
||||
int var7 = var1.readBits(1);
|
||||
int var8 = var1.readBits(1);
|
||||
if (var8 == 1) {
|
||||
Client.field725[++Client.field851 - 1] = var2;
|
||||
}
|
||||
|
||||
int var9;
|
||||
if (var0) {
|
||||
var9 = var1.readBits(8);
|
||||
if (var9 > 127) {
|
||||
var9 -= 256;
|
||||
}
|
||||
} else {
|
||||
var9 = var1.readBits(5);
|
||||
if (var9 > 15) {
|
||||
var9 -= 32;
|
||||
}
|
||||
}
|
||||
|
||||
var4.definition = class237.getNpcDefinition(var1.readBits(14));
|
||||
var4.field976 = var4.definition.size;
|
||||
var4.field1026 = var4.definition.rotation;
|
||||
if (var4.field1026 == 0) {
|
||||
var4.rotation = 0;
|
||||
}
|
||||
|
||||
var4.walkSequence = var4.definition.walkSequence;
|
||||
var4.walkBackSequence = var4.definition.walkBackSequence;
|
||||
var4.walkLeftSequence = var4.definition.walkLeftSequence;
|
||||
var4.walkRightSequence = var4.definition.walkRightSequence;
|
||||
var4.idleSequence = var4.definition.idleSequence;
|
||||
var4.turnLeftSequence = var4.definition.turnLeftSequence;
|
||||
var4.turnRightSequence = var4.definition.turnRightSequence;
|
||||
var4.method2136(ByteArrayPool.localPlayer.pathX[0] + var9, ByteArrayPool.localPlayer.pathY[0] + var5, var7 == 1);
|
||||
}
|
||||
|
||||
var1.exportIndex();
|
||||
WorldMapSection0.method335(var1);
|
||||
|
||||
for (var2 = 0; var2 < Client.field801; ++var2) {
|
||||
int var10 = Client.field918[var2];
|
||||
if (Client.npcs[var10].npcCycle != Client.cycle) {
|
||||
Client.npcs[var10].definition = null;
|
||||
Client.npcs[var10] = 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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
static int method176(int var0) {
|
||||
return (int)Math.pow(2.0D, (double)((float)var0 / 256.0F + 7.0F));
|
||||
}
|
||||
|
||||
@ObfuscatedName("iz")
|
||||
@ObfuscatedName("hp")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)V",
|
||||
garbageValue = "-21"
|
||||
signature = "(I)V",
|
||||
garbageValue = "-1931279198"
|
||||
)
|
||||
@Export("Widget_runOnTargetLeave")
|
||||
static void Widget_runOnTargetLeave() {
|
||||
if (Client.isSpellSelected) {
|
||||
Widget var0 = GrandExchangeOfferUnitPriceComparator.getWidgetChild(class7.selectedSpellWidget, Client.selectedSpellChildIndex);
|
||||
Widget var0 = WorldMapLabelSize.getWidgetChild(ItemContainer.selectedSpellWidget, Client.selectedSpellChildIndex);
|
||||
if (var0 != null && var0.onTargetLeave != null) {
|
||||
ScriptEvent var1 = new ScriptEvent();
|
||||
var1.widget = var0;
|
||||
var1.args = var0.onTargetLeave;
|
||||
GrandExchangeOfferOwnWorldComparator.runScriptEvent(var1);
|
||||
InterfaceParent.runScriptEvent(var1);
|
||||
}
|
||||
|
||||
Client.isSpellSelected = false;
|
||||
ItemContainer.invalidateWidget(var0);
|
||||
class234.invalidateWidget(var0);
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("jm")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(III)V",
|
||||
garbageValue = "2119897094"
|
||||
)
|
||||
static void method189(int var0, int var1) {
|
||||
SecureRandomCallable.method1205(class169.tempMenuAction, var0, var1);
|
||||
class169.tempMenuAction = null;
|
||||
}
|
||||
|
||||
@ObfuscatedName("jf")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IIIILlz;Lhh;B)V",
|
||||
garbageValue = "105"
|
||||
)
|
||||
@Export("drawSpriteOnMinimap")
|
||||
static final void drawSpriteOnMinimap(int var0, int var1, int var2, int var3, Sprite var4, SpriteMask var5) {
|
||||
if (var4 != null) {
|
||||
int var6 = Client.camAngleY & 2047;
|
||||
int var7 = var3 * var3 + var2 * var2;
|
||||
if (var7 <= 6400) {
|
||||
int var8 = Rasterizer3D.Rasterizer3D_sine[var6];
|
||||
int var9 = Rasterizer3D.Rasterizer3D_cosine[var6];
|
||||
int var10 = var9 * var2 + var3 * var8 >> 16;
|
||||
int var11 = var3 * var9 - var8 * var2 >> 16;
|
||||
if (var7 > 2500) {
|
||||
var4.method6408(var10 + var5.width / 2 - var4.width / 2, var5.height / 2 - var11 - var4.height / 2, var0, var1, var5.width, var5.height, var5.xStarts, var5.xWidths);
|
||||
} else {
|
||||
var4.drawTransBgAt(var0 + var10 + var5.width / 2 - var4.width / 2, var5.height / 2 + var1 - var11 - var4.height / 2);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("kp")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "-1908400826"
|
||||
)
|
||||
@Export("Clan_leaveChat")
|
||||
static final void Clan_leaveChat() {
|
||||
PacketBufferNode var0 = UserComparator4.getPacketBufferNode(ClientPacket.field2292, Client.packetWriter.isaacCipher);
|
||||
var0.packetBuffer.writeByte(0);
|
||||
Client.packetWriter.addNode(var0);
|
||||
}
|
||||
|
||||
@ObfuscatedName("kj")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(IIIZB)V",
|
||||
garbageValue = "43"
|
||||
)
|
||||
public static void method191(int var0, int var1, int var2, boolean var3) {
|
||||
PacketBufferNode var4 = UserComparator4.getPacketBufferNode(ClientPacket.field2277, Client.packetWriter.isaacCipher);
|
||||
var4.packetBuffer.method5753(var1);
|
||||
var4.packetBuffer.writeInt(var3 ? Client.field836 * 1500794883 * -1503339861 : 0);
|
||||
var4.packetBuffer.method5898(var0);
|
||||
var4.packetBuffer.writeIntME(var2);
|
||||
Client.packetWriter.addNode(var4);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user