This commit is contained in:
ThatGamerBlue
2021-05-19 12:59:30 +01:00
parent 7eb96d606a
commit 29a3d313a4
438 changed files with 51991 additions and 51730 deletions

View File

@@ -4,59 +4,60 @@ import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("cc")
@ObfuscatedName("ci")
@Implements("Script")
public class Script extends DualNode {
@ObfuscatedName("f")
@ObfuscatedName("qn")
static boolean field1055;
@ObfuscatedName("h")
@ObfuscatedSignature(
descriptor = "Lgf;"
descriptor = "Lho;"
)
@Export("Script_cached")
static EvictingDualNodeHashTable Script_cached;
@ObfuscatedName("ha")
@ObfuscatedSignature(
descriptor = "[Loh;"
)
@Export("headIconHintSprites")
static SpritePixels[] headIconHintSprites;
@ObfuscatedName("i")
public static short[] field1064;
@ObfuscatedName("d")
@Export("cacheSubPaths")
static String[] cacheSubPaths;
@ObfuscatedName("c")
String field1054;
@ObfuscatedName("o")
String field1058;
@ObfuscatedName("u")
@Export("opcodes")
int[] opcodes;
@ObfuscatedName("p")
@ObfuscatedName("g")
@Export("intOperands")
int[] intOperands;
@ObfuscatedName("b")
@ObfuscatedName("l")
@Export("stringOperands")
String[] stringOperands;
@ObfuscatedName("e")
@ObfuscatedName("z")
@ObfuscatedGetter(
intValue = 1191660215
intValue = -1945602351
)
@Export("localIntCount")
int localIntCount;
@ObfuscatedName("k")
@ObfuscatedName("t")
@ObfuscatedGetter(
intValue = -49303827
intValue = 2083195621
)
@Export("localStringCount")
int localStringCount;
@ObfuscatedName("g")
@ObfuscatedName("v")
@ObfuscatedGetter(
intValue = 162609675
intValue = -1877567613
)
@Export("intArgumentCount")
int intArgumentCount;
@ObfuscatedName("h")
@ObfuscatedName("b")
@ObfuscatedGetter(
intValue = -1127748469
intValue = 1752633221
)
@Export("stringArgumentCount")
int stringArgumentCount;
@ObfuscatedName("n")
@ObfuscatedName("q")
@ObfuscatedSignature(
descriptor = "[Lme;"
descriptor = "[Lmo;"
)
@Export("switches")
IterableNodeHashTable[] switches;
@@ -68,225 +69,199 @@ public class Script extends DualNode {
Script() {
} // L: 23
@ObfuscatedName("b")
@ObfuscatedName("g")
@ObfuscatedSignature(
descriptor = "(IB)[Lme;",
garbageValue = "0"
descriptor = "(IB)[Lmo;",
garbageValue = "-56"
)
@Export("newIterableNodeHashTable")
IterableNodeHashTable[] newIterableNodeHashTable(int var1) {
return new IterableNodeHashTable[var1]; // L: 134
return new IterableNodeHashTable[var1]; // L: 154
}
@ObfuscatedName("e")
@ObfuscatedName("fj")
@ObfuscatedSignature(
descriptor = "(B)I",
garbageValue = "-55"
)
static int method2026() {
if (Client.archiveLoaders != null && Client.archiveLoadersDone < Client.archiveLoaders.size()) { // L: 1937
int var0 = 0; // L: 1938
for (int var1 = 0; var1 <= Client.archiveLoadersDone; ++var1) { // L: 1939
var0 += ((ArchiveLoader)Client.archiveLoaders.get(var1)).loadedCount; // L: 1940
}
return var0 * 10000 / Client.field893; // L: 1942
} else {
return 10000;
}
}
@ObfuscatedName("id")
@ObfuscatedSignature(
descriptor = "(Ley;IIII)V",
garbageValue = "-1875812955"
)
@Export("addNpcToMenu")
static final void addNpcToMenu(NPCComposition var0, int var1, int var2, int var3) {
if (Client.menuOptionsCount < 400) { // L: 9290
if (var0.transforms != null) { // L: 9291
var0 = var0.transform();
}
if (var0 != null) { // L: 9292
if (var0.isInteractable) { // L: 9293
if (!var0.isFollower || Client.followerIndex == var1) { // L: 9294
String var4 = var0.name; // L: 9295
int var7;
int var8;
if (var0.combatLevel != 0) { // L: 9296
var7 = var0.combatLevel; // L: 9299
var8 = class35.localPlayer.combatLevel; // L: 9300
int var9 = var8 - var7; // L: 9302
String var6;
if (var9 < -9) { // L: 9303
var6 = HorizontalAlignment.colorStartTag(16711680); // L: 9304
} else if (var9 < -6) { // L: 9307
var6 = HorizontalAlignment.colorStartTag(16723968); // L: 9308
} else if (var9 < -3) { // L: 9311
var6 = HorizontalAlignment.colorStartTag(16740352); // L: 9312
} else if (var9 < 0) { // L: 9315
var6 = HorizontalAlignment.colorStartTag(16756736); // L: 9316
} else if (var9 > 9) { // L: 9319
var6 = HorizontalAlignment.colorStartTag(65280); // L: 9320
} else if (var9 > 6) { // L: 9323
var6 = HorizontalAlignment.colorStartTag(4259584); // L: 9324
} else if (var9 > 3) { // L: 9327
var6 = HorizontalAlignment.colorStartTag(8453888); // L: 9328
} else if (var9 > 0) { // L: 9331
var6 = HorizontalAlignment.colorStartTag(12648192); // L: 9332
} else {
var6 = HorizontalAlignment.colorStartTag(16776960); // L: 9335
}
var4 = var4 + var6 + " " + " (" + "level-" + var0.combatLevel + ")"; // L: 9337
}
if (var0.isFollower && Client.followerOpsLowPriority) { // L: 9339
InterfaceParent.insertMenuItemNoShift("Examine", HorizontalAlignment.colorStartTag(16776960) + var4, 1003, var1, var2, var3); // L: 9340
}
if (Client.isItemSelected == 1) { // L: 9343
InterfaceParent.insertMenuItemNoShift("Use", Client.selectedItemName + " " + "->" + " " + HorizontalAlignment.colorStartTag(16776960) + var4, 7, var1, var2, var3); // L: 9344
} else if (Client.isSpellSelected) { // L: 9347
if ((GrandExchangeOfferUnitPriceComparator.selectedSpellFlags & 2) == 2) { // L: 9348
InterfaceParent.insertMenuItemNoShift(Client.selectedSpellActionName, Client.selectedSpellName + " " + "->" + " " + HorizontalAlignment.colorStartTag(16776960) + var4, 8, var1, var2, var3); // L: 9349
}
} else {
int var10 = var0.isFollower && Client.followerOpsLowPriority ? 2000 : 0; // L: 9354
String[] var11 = var0.actions; // L: 9355
if (var11 != null) { // L: 9356
for (var7 = 4; var7 >= 0; --var7) { // L: 9357
if (var11[var7] != null && !var11[var7].equalsIgnoreCase("Attack")) { // L: 9358
var8 = 0; // L: 9359
if (var7 == 0) { // L: 9360
var8 = var10 + 9;
}
if (var7 == 1) { // L: 9361
var8 = var10 + 10;
}
if (var7 == 2) { // L: 9362
var8 = var10 + 11;
}
if (var7 == 3) { // L: 9363
var8 = var10 + 12;
}
if (var7 == 4) { // L: 9364
var8 = var10 + 13;
}
InterfaceParent.insertMenuItemNoShift(var11[var7], HorizontalAlignment.colorStartTag(16776960) + var4, var8, var1, var2, var3); // L: 9365
}
}
}
if (var11 != null) { // L: 9370
for (var7 = 4; var7 >= 0; --var7) { // L: 9371
if (var11[var7] != null && var11[var7].equalsIgnoreCase("Attack")) { // L: 9372
short var12 = 0; // L: 9373
if (Client.npcAttackOption != AttackOption.AttackOption_hidden) { // L: 9374
if (AttackOption.AttackOption_alwaysRightClick == Client.npcAttackOption || AttackOption.AttackOption_dependsOnCombatLevels == Client.npcAttackOption && var0.combatLevel > class35.localPlayer.combatLevel) { // L: 9375
var12 = 2000; // L: 9376
}
var8 = 0; // L: 9378
if (var7 == 0) { // L: 9379
var8 = var12 + 9;
}
if (var7 == 1) { // L: 9380
var8 = var12 + 10;
}
if (var7 == 2) { // L: 9381
var8 = var12 + 11;
}
if (var7 == 3) { // L: 9382
var8 = var12 + 12;
}
if (var7 == 4) { // L: 9383
var8 = var12 + 13;
}
InterfaceParent.insertMenuItemNoShift(var11[var7], HorizontalAlignment.colorStartTag(16776960) + var4, var8, var1, var2, var3); // L: 9384
}
}
}
}
if (!var0.isFollower || !Client.followerOpsLowPriority) { // L: 9389
InterfaceParent.insertMenuItemNoShift("Examine", HorizontalAlignment.colorStartTag(16776960) + var4, 1003, var1, var2, var3); // L: 9390
}
}
}
}
}
}
} // L: 9394
@ObfuscatedName("kb")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "1090805477"
garbageValue = "-1736303231"
)
static void method2010() {
Messages.Messages_channels.clear(); // L: 50
Messages.Messages_hashTable.clear(); // L: 51
Messages.Messages_queue.clear(); // L: 52
Messages.Messages_count = 0; // L: 53
} // L: 54
static void method2014() {
for (InterfaceParent var0 = (InterfaceParent)Client.interfaceParents.first(); var0 != null; var0 = (InterfaceParent)Client.interfaceParents.next()) { // L: 11083
int var1 = var0.group; // L: 11084
if (UserComparator8.loadInterface(var1)) { // L: 11085
boolean var2 = true; // L: 11086
Widget[] var3 = Widget.Widget_interfaceComponents[var1]; // L: 11087
@ObfuscatedName("q")
@ObfuscatedSignature(
descriptor = "(IIII)I",
garbageValue = "-1768640956"
)
@Export("hslToRgb")
static final int hslToRgb(int var0, int var1, int var2) {
if (var2 > 179) { // L: 1012
var1 /= 2;
}
if (var2 > 192) { // L: 1013
var1 /= 2;
}
if (var2 > 217) { // L: 1014
var1 /= 2;
}
if (var2 > 243) { // L: 1015
var1 /= 2;
}
int var3 = (var1 / 32 << 7) + (var0 / 4 << 10) + var2 / 2; // L: 1016
return var3; // L: 1017
}
@ObfuscatedName("ay")
@ObfuscatedSignature(
descriptor = "(ILcc;ZI)I",
garbageValue = "-710644137"
)
static int method1998(int var0, Script var1, boolean var2) {
if (var0 == 3800) { // L: 2421
if (ObjectSound.field928 != null) { // L: 2422
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = 1; // L: 2423
class19.field154 = ObjectSound.field928; // L: 2424
} else {
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = 0; // L: 2426
}
return 1; // L: 2427
} else {
int var3;
if (var0 == 3801) { // L: 2429
var3 = Interpreter.Interpreter_intStack[--class16.Interpreter_intStackSize]; // L: 2430
if (Client.field831[var3] != null) { // L: 2431
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = 1; // L: 2432
class19.field154 = Client.field831[var3]; // L: 2433
} else {
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = 0; // L: 2435
int var4;
for (var4 = 0; var4 < var3.length; ++var4) { // L: 11088
if (var3[var4] != null) { // L: 11089
var2 = var3[var4].isIf3; // L: 11090
break;
}
}
return 1; // L: 2436
} else if (var0 == 3802) { // L: 2438
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = class19.field154.field81; // L: 2439
return 1; // L: 2440
} else if (var0 == 3803) { // L: 2442
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = class19.field154.field90 ? 1 : 0; // L: 2443
return 1; // L: 2444
} else if (var0 == 3804) { // L: 2446
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = class19.field154.field84; // L: 2447
return 1; // L: 2448
} else if (var0 == 3805) { // L: 2450
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = class19.field154.field83; // L: 2451
return 1; // L: 2452
} else if (var0 == 3806) { // L: 2454
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = class19.field154.field86; // L: 2455
return 1; // L: 2456
} else if (var0 == 3807) { // L: 2458
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = class19.field154.field87; // L: 2459
return 1; // L: 2460
} else if (var0 == 3809) { // L: 2462
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = class19.field154.field88; // L: 2463
return 1; // L: 2464
} else if (var0 == 3810) { // L: 2466
var3 = Interpreter.Interpreter_intStack[--class16.Interpreter_intStackSize]; // L: 2467
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = class19.field154.field99[var3]; // L: 2468
return 1; // L: 2469
} else if (var0 == 3811) { // L: 2471
var3 = Interpreter.Interpreter_intStack[--class16.Interpreter_intStackSize]; // L: 2472
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = class19.field154.field76[var3]; // L: 2473
return 1; // L: 2474
} else if (var0 == 3812) { // L: 2476
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = class19.field154.field97; // L: 2477
return 1; // L: 2478
} else if (var0 == 3813) { // L: 2480
var3 = Interpreter.Interpreter_intStack[--class16.Interpreter_intStackSize]; // L: 2481
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = class19.field154.field105[var3]; // L: 2482
return 1; // L: 2483
} else {
int var5;
int var6;
if (var0 == 3814) { // L: 2485
class16.Interpreter_intStackSize -= 3; // L: 2486
var3 = Interpreter.Interpreter_intStack[class16.Interpreter_intStackSize]; // L: 2487
var6 = Interpreter.Interpreter_intStack[class16.Interpreter_intStackSize + 1]; // L: 2488
var5 = Interpreter.Interpreter_intStack[class16.Interpreter_intStackSize + 2]; // L: 2489
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = class19.field154.method143(var3, var6, var5); // L: 2490
return 1; // L: 2491
} else if (var0 == 3815) { // L: 2493
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = class19.field154.field100; // L: 2494
return 1; // L: 2495
} else if (var0 == 3816) { // L: 2497
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = class19.field154.field96; // L: 2498
return 1; // L: 2499
} else if (var0 == 3817) { // L: 2501
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = class19.field154.method142(Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]); // L: 2502
return 1; // L: 2503
} else if (var0 == 3818) { // L: 2505
Interpreter.Interpreter_intStack[class16.Interpreter_intStackSize - 1] = class19.field154.method159()[Interpreter.Interpreter_intStack[class16.Interpreter_intStackSize - 1]]; // L: 2506
return 1; // L: 2507
} else if (var0 == 3819) { // L: 2509
class16.Interpreter_intStackSize -= 2; // L: 2510
var3 = Interpreter.Interpreter_intStack[class16.Interpreter_intStackSize]; // L: 2511
var6 = Interpreter.Interpreter_intStack[class16.Interpreter_intStackSize + 1]; // L: 2512
ClientPacket.method3885(var6, var3); // L: 2513
return 1; // L: 2514
} else if (var0 == 3820) { // L: 2516
var3 = Interpreter.Interpreter_intStack[--class16.Interpreter_intStackSize]; // L: 2517
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = class19.field154.field94[var3]; // L: 2518
return 1; // L: 2519
} else {
if (var0 == 3821) { // L: 2521
class16.Interpreter_intStackSize -= 3; // L: 2522
var3 = Interpreter.Interpreter_intStack[class16.Interpreter_intStackSize]; // L: 2523
boolean var4 = Interpreter.Interpreter_intStack[class16.Interpreter_intStackSize + 1] == 1; // L: 2524
var5 = Interpreter.Interpreter_intStack[class16.Interpreter_intStackSize + 2]; // L: 2525
class4.method75(var5, var3, var4); // L: 2526
}
if (var0 == 3822) { // L: 2528
var3 = Interpreter.Interpreter_intStack[--class16.Interpreter_intStackSize]; // L: 2529
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = class19.field154.field78[var3] ? 1 : 0; // L: 2530
return 1; // L: 2531
} else if (var0 == 3850) { // L: 2533
if (IsaacCipher.field4266 != null) { // L: 2534
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = 1; // L: 2535
Interpreter.field941 = IsaacCipher.field4266; // L: 2536
} else {
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = 0; // L: 2538
}
return 1; // L: 2539
} else if (var0 == 3851) { // L: 2541
var3 = Interpreter.Interpreter_intStack[--class16.Interpreter_intStackSize]; // L: 2542
if (Client.field820[var3] != null) { // L: 2543
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = 1; // L: 2544
Interpreter.field941 = Client.field820[var3]; // L: 2545
class25.field197 = var3; // L: 2546
} else {
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = 0; // L: 2548
}
return 1; // L: 2549
} else if (var0 == 3852) { // L: 2551
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = Interpreter.field941.field25; // L: 2552
return 1; // L: 2553
} else if (var0 == 3853) { // L: 2555
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = Interpreter.field941.field30; // L: 2556
return 1; // L: 2557
} else if (var0 == 3854) { // L: 2559
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = Interpreter.field941.field31; // L: 2560
return 1; // L: 2561
} else if (var0 == 3855) { // L: 2563
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = Interpreter.field941.method46(); // L: 2564
return 1; // L: 2565
} else if (var0 == 3856) { // L: 2567
var3 = Interpreter.Interpreter_intStack[--class16.Interpreter_intStackSize]; // L: 2568
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = ((class9)Interpreter.field941.field27.get(var3)).field65; // L: 2569
return 1; // L: 2570
} else if (var0 == 3857) { // L: 2572
var3 = Interpreter.Interpreter_intStack[--class16.Interpreter_intStackSize]; // L: 2573
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = ((class9)Interpreter.field941.field27.get(var3)).field66; // L: 2574
return 1; // L: 2575
} else if (var0 == 3858) { // L: 2577
var3 = Interpreter.Interpreter_intStack[--class16.Interpreter_intStackSize]; // L: 2578
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = ((class9)Interpreter.field941.field27.get(var3)).field64; // L: 2579
return 1; // L: 2580
} else if (var0 == 3859) { // L: 2582
var3 = Interpreter.Interpreter_intStack[--class16.Interpreter_intStackSize]; // L: 2583
GraphicsObject.method1913(class25.field197, var3); // L: 2584
return 1; // L: 2585
} else if (var0 == 3860) { // L: 2587
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = Interpreter.field941.method43(Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]); // L: 2588
return 1; // L: 2589
} else if (var0 == 3861) { // L: 2591
Interpreter.Interpreter_intStack[class16.Interpreter_intStackSize - 1] = Interpreter.field941.method44()[Interpreter.Interpreter_intStack[class16.Interpreter_intStackSize - 1]]; // L: 2592
return 1; // L: 2593
} else if (var0 == 3890) { // L: 2595
Interpreter.Interpreter_intStack[++class16.Interpreter_intStackSize - 1] = Coord.field2591 != null ? 1 : 0; // L: 2596
return 1; // L: 2597
} else {
return 2; // L: 2599
if (!var2) { // L: 11094
var4 = (int)var0.key; // L: 11095
Widget var5 = DevicePcmPlayerProvider.getWidget(var4); // L: 11096
if (var5 != null) { // L: 11097
VerticalAlignment.invalidateWidget(var5);
}
}
}
}
}
} // L: 11101
}