chore: revision 189
This commit is contained in:
@@ -2,34 +2,40 @@ import net.runelite.mapping.Export;
|
||||
import net.runelite.mapping.Implements;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
import net.runelite.rs.ScriptOpcodes;
|
||||
|
||||
@ObfuscatedName("it")
|
||||
@ObfuscatedName("jq")
|
||||
@Implements("StructDefinition")
|
||||
public class StructDefinition extends DualNode {
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lii;"
|
||||
signature = "Liy;"
|
||||
)
|
||||
@Export("StructDefinition_archive")
|
||||
static AbstractArchive StructDefinition_archive;
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Leh;"
|
||||
signature = "Leg;"
|
||||
)
|
||||
@Export("StructDefinition_cached")
|
||||
static EvictingDualNodeHashTable StructDefinition_cached;
|
||||
@ObfuscatedName("be")
|
||||
static String field3307;
|
||||
@ObfuscatedName("gk")
|
||||
@ObfuscatedName("w")
|
||||
@Export("SpriteBuffer_yOffsets")
|
||||
static int[] SpriteBuffer_yOffsets;
|
||||
@ObfuscatedName("p")
|
||||
@Export("Tiles_lightness")
|
||||
static int[] Tiles_lightness;
|
||||
@ObfuscatedName("bv")
|
||||
@ObfuscatedSignature(
|
||||
signature = "[Llt;"
|
||||
signature = "Lle;"
|
||||
)
|
||||
@Export("mapMarkerSprites")
|
||||
static Sprite[] mapMarkerSprites;
|
||||
@ObfuscatedName("o")
|
||||
@Export("worldSelectRightSprite")
|
||||
static IndexedSprite worldSelectRightSprite;
|
||||
@ObfuscatedName("gc")
|
||||
@Export("regions")
|
||||
static int[] regions;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Llp;"
|
||||
signature = "Lln;"
|
||||
)
|
||||
@Export("params")
|
||||
IterableNodeHashTable params;
|
||||
@@ -41,19 +47,19 @@ public class StructDefinition extends DualNode {
|
||||
StructDefinition() {
|
||||
}
|
||||
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "-2114792019"
|
||||
garbageValue = "1990105365"
|
||||
)
|
||||
@Export("postDecode")
|
||||
void postDecode() {
|
||||
}
|
||||
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lkp;I)V",
|
||||
garbageValue = "-215711258"
|
||||
signature = "(Lkb;B)V",
|
||||
garbageValue = "-61"
|
||||
)
|
||||
@Export("decode")
|
||||
void decode(Buffer var1) {
|
||||
@@ -67,182 +73,58 @@ public class StructDefinition extends DualNode {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lkp;IS)V",
|
||||
garbageValue = "-16433"
|
||||
signature = "(Lkb;II)V",
|
||||
garbageValue = "675280031"
|
||||
)
|
||||
@Export("decodeNext")
|
||||
void decodeNext(Buffer var1, int var2) {
|
||||
if (var2 == 249) {
|
||||
this.params = MouseRecorder.readStringIntParameters(var1, this.params);
|
||||
this.params = NetCache.readStringIntParameters(var1, this.params);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(III)I",
|
||||
garbageValue = "-1540042604"
|
||||
garbageValue = "1605132881"
|
||||
)
|
||||
@Export("getIntParam")
|
||||
public int getIntParam(int var1, int var2) {
|
||||
return class185.method3686(this.params, var1, var2);
|
||||
IterableNodeHashTable var4 = this.params;
|
||||
int var3;
|
||||
if (var4 == null) {
|
||||
var3 = var2;
|
||||
} else {
|
||||
IntegerNode var5 = (IntegerNode)var4.get((long)var1);
|
||||
if (var5 == null) {
|
||||
var3 = var2;
|
||||
} else {
|
||||
var3 = var5.integer;
|
||||
}
|
||||
}
|
||||
|
||||
return var3;
|
||||
}
|
||||
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILjava/lang/String;I)Ljava/lang/String;",
|
||||
garbageValue = "-32852937"
|
||||
garbageValue = "-1577444936"
|
||||
)
|
||||
@Export("getStringParam")
|
||||
public String getStringParam(int var1, String var2) {
|
||||
return FloorDecoration.method2914(this.params, var1, var2);
|
||||
return class9.method122(this.params, var1, var2);
|
||||
}
|
||||
|
||||
@ObfuscatedName("aj")
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(ILce;ZI)I",
|
||||
garbageValue = "2113754677"
|
||||
signature = "(CS)C",
|
||||
garbageValue = "255"
|
||||
)
|
||||
static int method4627(int var0, Script var1, boolean var2) {
|
||||
int var3;
|
||||
if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERTYPE) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].type();
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERITEM) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].id;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERPRICE) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].unitPrice;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERCOUNT) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].totalQuantity;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERCOMPLETEDCOUNT) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].currentQuantity;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.STOCKMARKET_GETOFFERCOMPLETEDGOLD) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = Client.grandExchangeOffers[var3].currentPrice;
|
||||
return 1;
|
||||
} else {
|
||||
int var12;
|
||||
if (var0 == ScriptOpcodes.STOCKMARKET_ISOFFEREMPTY) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
var12 = Client.grandExchangeOffers[var3].status();
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = var12 == 0 ? 1 : 0;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.STOCKMARKET_ISOFFERSTABLE) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
var12 = Client.grandExchangeOffers[var3].status();
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = var12 == 2 ? 1 : 0;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.STOCKMARKET_ISOFFERFINISHED) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
var12 = Client.grandExchangeOffers[var3].status();
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = var12 == 5 ? 1 : 0;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.STOCKMARKET_ISOFFERADDING) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
var12 = Client.grandExchangeOffers[var3].status();
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = var12 == 1 ? 1 : 0;
|
||||
return 1;
|
||||
} else {
|
||||
boolean var13;
|
||||
if (var0 == ScriptOpcodes.TRADINGPOST_SORTBY_NAME) {
|
||||
var13 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize] == 1;
|
||||
if (PendingSpawn.grandExchangeEvents != null) {
|
||||
PendingSpawn.grandExchangeEvents.sort(GrandExchangeEvents.GrandExchangeEvents_nameComparator, var13);
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.TRADINGPOST_SORTBY_PRICE) {
|
||||
var13 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize] == 1;
|
||||
if (PendingSpawn.grandExchangeEvents != null) {
|
||||
PendingSpawn.grandExchangeEvents.sort(GrandExchangeEvents.GrandExchangeEvents_priceComparator, var13);
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.TRADINGPOST_SORTFILTERBY_WORLD) {
|
||||
class320.Interpreter_intStackSize -= 2;
|
||||
var13 = Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize] == 1;
|
||||
boolean var4 = Interpreter.Interpreter_intStack[class320.Interpreter_intStackSize + 1] == 1;
|
||||
if (PendingSpawn.grandExchangeEvents != null) {
|
||||
Client.GrandExchangeEvents_worldComparator.filterWorlds = var4;
|
||||
PendingSpawn.grandExchangeEvents.sort(Client.GrandExchangeEvents_worldComparator, var13);
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.TRADINGPOST_SORTBY_AGE) {
|
||||
var13 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize] == 1;
|
||||
if (PendingSpawn.grandExchangeEvents != null) {
|
||||
PendingSpawn.grandExchangeEvents.sort(GrandExchangeEvents.GrandExchangeEvents_ageComparator, var13);
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.TRADINGPOST_SORTBY_COUNT) {
|
||||
var13 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize] == 1;
|
||||
if (PendingSpawn.grandExchangeEvents != null) {
|
||||
PendingSpawn.grandExchangeEvents.sort(GrandExchangeEvents.GrandExchangeEvents_quantityComparator, var13);
|
||||
}
|
||||
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETTOTALOFFERS) {
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = PendingSpawn.grandExchangeEvents == null ? 0 : PendingSpawn.grandExchangeEvents.events.size();
|
||||
return 1;
|
||||
} else {
|
||||
GrandExchangeEvent var11;
|
||||
if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERWORLD) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
var11 = (GrandExchangeEvent)PendingSpawn.grandExchangeEvents.events.get(var3);
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = var11.world;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERNAME) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
var11 = (GrandExchangeEvent)PendingSpawn.grandExchangeEvents.events.get(var3);
|
||||
Interpreter.Interpreter_stringStack[++Message.Interpreter_stringStackSize - 1] = var11.getOfferName();
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERPREVIOUSNAME) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
var11 = (GrandExchangeEvent)PendingSpawn.grandExchangeEvents.events.get(var3);
|
||||
Interpreter.Interpreter_stringStack[++Message.Interpreter_stringStackSize - 1] = var11.getPreviousOfferName();
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERAGE) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
var11 = (GrandExchangeEvent)PendingSpawn.grandExchangeEvents.events.get(var3);
|
||||
long var5 = WorldMapIcon_0.currentTimeMillis() - class30.field274 - var11.age;
|
||||
int var7 = (int)(var5 / 3600000L);
|
||||
int var8 = (int)((var5 - (long)(var7 * 3600000)) / 60000L);
|
||||
int var9 = (int)((var5 - (long)(var7 * 3600000) - (long)(var8 * 60000)) / 1000L);
|
||||
String var10 = var7 + ":" + var8 / 10 + var8 % 10 + ":" + var9 / 10 + var9 % 10;
|
||||
Interpreter.Interpreter_stringStack[++Message.Interpreter_stringStackSize - 1] = var10;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERCOUNT) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
var11 = (GrandExchangeEvent)PendingSpawn.grandExchangeEvents.events.get(var3);
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = var11.grandExchangeOffer.totalQuantity;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERPRICE) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
var11 = (GrandExchangeEvent)PendingSpawn.grandExchangeEvents.events.get(var3);
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = var11.grandExchangeOffer.unitPrice;
|
||||
return 1;
|
||||
} else if (var0 == ScriptOpcodes.TRADINGPOST_GETOFFERITEM) {
|
||||
var3 = Interpreter.Interpreter_intStack[--class320.Interpreter_intStackSize];
|
||||
var11 = (GrandExchangeEvent)PendingSpawn.grandExchangeEvents.events.get(var3);
|
||||
Interpreter.Interpreter_intStack[++class320.Interpreter_intStackSize - 1] = var11.grandExchangeOffer.id;
|
||||
return 1;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
static char method4589(char var0) {
|
||||
return var0 != 181 && var0 != 402 ? Character.toTitleCase(var0) : var0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user