project: rev 192

This commit is contained in:
ThatGamerBlue
2020-10-21 14:30:57 +02:00
parent 47583ab7c6
commit 88599e5dd3
355 changed files with 53400 additions and 49134 deletions

View File

@@ -1,186 +1,182 @@
import net.runelite.mapping.Export;
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("cy")
@ObfuscatedName("co")
@Implements("Script")
public class Script extends DualNode {
@ObfuscatedName("z")
@ObfuscatedName("f")
@ObfuscatedSignature(
descriptor = "Lel;"
descriptor = "Lev;"
)
@Export("Script_cached")
static EvictingDualNodeHashTable Script_cached;
@ObfuscatedName("iz")
@ObfuscatedGetter(
intValue = 1391677451
)
static int selectedItemId;
@ObfuscatedName("k")
@ObfuscatedName("b")
@Export("opcodes")
int[] opcodes;
@ObfuscatedName("s")
@ObfuscatedName("l")
@Export("intOperands")
int[] intOperands;
@ObfuscatedName("t")
@ObfuscatedName("m")
@Export("stringOperands")
String[] stringOperands;
@ObfuscatedName("i")
@ObfuscatedName("z")
@ObfuscatedGetter(
intValue = 1204485325
intValue = -289623255
)
@Export("localIntCount")
int localIntCount;
@ObfuscatedName("o")
@ObfuscatedName("q")
@ObfuscatedGetter(
intValue = 1685131019
intValue = -1416487067
)
@Export("localStringCount")
int localStringCount;
@ObfuscatedName("x")
@ObfuscatedName("k")
@ObfuscatedGetter(
intValue = 1488258005
intValue = -1408552327
)
@Export("intArgumentCount")
int intArgumentCount;
@ObfuscatedName("w")
@ObfuscatedName("c")
@ObfuscatedGetter(
intValue = 395196509
intValue = 1198237171
)
@Export("stringArgumentCount")
int stringArgumentCount;
@ObfuscatedName("g")
@ObfuscatedName("u")
@ObfuscatedSignature(
descriptor = "[Llq;"
descriptor = "[Lll;"
)
@Export("switches")
IterableNodeHashTable[] switches;
static {
Script_cached = new EvictingDualNodeHashTable(128); // L: 12
Script_cached = new EvictingDualNodeHashTable(128);
}
Script() {
}
} // L: 22
@ObfuscatedName("t")
@ObfuscatedName("z")
@ObfuscatedSignature(
descriptor = "(II)[Llq;",
garbageValue = "-502401324"
descriptor = "(II)[Lll;",
garbageValue = "20409592"
)
@Export("newIterableNodeHashTable")
IterableNodeHashTable[] newIterableNodeHashTable(int var1) {
return new IterableNodeHashTable[var1]; // L: 153
return new IterableNodeHashTable[var1]; // L: 125
}
@ObfuscatedName("z")
@ObfuscatedSignature(
descriptor = "(Lby;B)V",
garbageValue = "-76"
)
public static void runScriptEvent(ScriptEvent var0) {
class280.runScript(var0, 500000); // L: 97
@ObfuscatedName("f")
static double method2356(double var0, double var2, double var4) {
double var8 = (var0 - var2) / var4; // L: 10
double var6 = Math.exp(var8 * -var8 / 2.0D) / Math.sqrt(6.283185307179586D); // L: 12
return var6 / var4; // L: 14
}
@ObfuscatedName("z")
@ObfuscatedName("m")
@ObfuscatedSignature(
descriptor = "(IB)Lib;",
garbageValue = "-77"
descriptor = "(ILco;ZI)I",
garbageValue = "1422774584"
)
public static VarcInt method2324(int var0) {
VarcInt var1 = (VarcInt)VarcInt.VarcInt_cached.get((long)var0); // L: 17
if (var1 != null) { // L: 18
return var1;
} else {
byte[] var2 = VarcInt.VarcInt_archive.takeFile(19, var0);
var1 = new VarcInt();
if (var2 != null) { // L: 21
var1.method4488(new Buffer(var2));
}
VarcInt.VarcInt_cached.put(var1, (long)var0); // L: 22
return var1; // L: 23
}
}
@ObfuscatedName("z")
@ObfuscatedSignature(
descriptor = "(Lic;I)V",
garbageValue = "-1494987066"
)
public static void method2325(AbstractArchive var0) {
StructDefinition.StructDefinition_archive = var0; // L: 19
} // L: 20
@ObfuscatedName("k")
@ObfuscatedSignature(
descriptor = "(Ljava/lang/Object;ZB)[B",
garbageValue = "15"
)
public static byte[] method2323(Object var0, boolean var1) {
if (var0 == null) { // L: 30
return null;
} else if (var0 instanceof byte[]) { // L: 31
byte[] var6 = (byte[])((byte[])var0); // L: 32
if (var1) { // L: 33
int var4 = var6.length;
byte[] var5 = new byte[var4];
System.arraycopy(var6, 0, var5, 0, var4);
return var5;
static int method2355(int var0, Script var1, boolean var2) {
int var4;
int var9;
if (var0 == ScriptOpcodes.CC_CREATE) { // L: 430
MilliClock.Interpreter_intStackSize -= 3; // L: 431
var9 = Interpreter.Interpreter_intStack[MilliClock.Interpreter_intStackSize]; // L: 432
var4 = Interpreter.Interpreter_intStack[MilliClock.Interpreter_intStackSize + 1]; // L: 433
int var11 = Interpreter.Interpreter_intStack[MilliClock.Interpreter_intStackSize + 2]; // L: 434
if (var4 == 0) { // L: 435
throw new RuntimeException(); // L: 436
} else {
return var6; // L: 43
}
} else if (var0 instanceof AbstractByteArrayCopier) { // L: 45
AbstractByteArrayCopier var2 = (AbstractByteArrayCopier)var0; // L: 46
return var2.get(); // L: 47
} else {
throw new IllegalArgumentException(); // L: 49
}
}
Widget var6 = UserComparator4.getWidget(var9); // L: 438
if (var6.children == null) { // L: 439
var6.children = new Widget[var11 + 1];
}
@ObfuscatedName("k")
@ObfuscatedSignature(
descriptor = "(Lic;IIIZI)V",
garbageValue = "1897584620"
)
public static void method2322(AbstractArchive var0, int var1, int var2, int var3, boolean var4) {
class206.musicPlayerStatus = 1; // L: 34
class204.musicTrackArchive = var0; // L: 35
BuddyRankComparator.musicTrackGroupId = var1; // L: 36
class206.musicTrackFileId = var2; // L: 37
Tiles.musicTrackVolume = var3; // L: 38
class206.musicTrackBoolean = var4; // L: 39
FaceNormal.pcmSampleLength = 10000; // L: 40
} // L: 41
if (var6.children.length <= var11) { // L: 440
Widget[] var7 = new Widget[var11 + 1]; // L: 441
@ObfuscatedName("x")
@ObfuscatedSignature(
descriptor = "(I)Z",
garbageValue = "934802837"
)
public static boolean method2326() {
try {
if (class206.musicPlayerStatus == 2) { // L: 93
if (class206.musicTrack == null) { // L: 94
class206.musicTrack = MusicTrack.readTrack(class204.musicTrackArchive, BuddyRankComparator.musicTrackGroupId, class206.musicTrackFileId); // L: 95
if (class206.musicTrack == null) { // L: 96
return false;
for (int var8 = 0; var8 < var6.children.length; ++var8) { // L: 442
var7[var8] = var6.children[var8];
}
var6.children = var7; // L: 443
}
if (class39.soundCache == null) { // L: 98
class39.soundCache = new SoundCache(ModelData0.soundEffectsArchive, class206.musicSamplesArchive);
}
if (var11 > 0 && var6.children[var11 - 1] == null) { // L: 445
throw new RuntimeException("" + (var11 - 1));
} else {
Widget var12 = new Widget(); // L: 446
var12.type = var4; // L: 447
var12.parentId = var12.id = var6.id; // L: 448
var12.childIndex = var11; // L: 449
var12.isIf3 = true; // L: 450
var6.children[var11] = var12; // L: 451
if (var2) { // L: 452
MouseRecorder.field621 = var12;
} else {
Interpreter.field1122 = var12; // L: 453
}
if (class206.midiPcmStream.loadMusicTrack(class206.musicTrack, class206.musicPatchesArchive, class39.soundCache, 22050)) { // L: 99
class206.midiPcmStream.clearAll(); // L: 100
class206.midiPcmStream.setPcmStreamVolume(Tiles.musicTrackVolume); // L: 101
class206.midiPcmStream.setMusicTrack(class206.musicTrack, class206.musicTrackBoolean); // L: 102
class206.musicPlayerStatus = 0; // L: 103
class206.musicTrack = null; // L: 104
class39.soundCache = null; // L: 105
class204.musicTrackArchive = null; // L: 106
return true; // L: 107
GrandExchangeOfferOwnWorldComparator.invalidateWidget(var6); // L: 454
return 1; // L: 455
}
}
} catch (Exception var1) { // L: 111
var1.printStackTrace(); // L: 112
class206.midiPcmStream.clear(); // L: 113
class206.musicPlayerStatus = 0; // L: 114
class206.musicTrack = null; // L: 115
class39.soundCache = null; // L: 116
class204.musicTrackArchive = null; // L: 117
}
} else {
Widget var3;
if (var0 == ScriptOpcodes.CC_DELETE) { // L: 457
var3 = var2 ? MouseRecorder.field621 : Interpreter.field1122; // L: 458
Widget var10 = UserComparator4.getWidget(var3.id); // L: 459
var10.children[var3.childIndex] = null; // L: 460
GrandExchangeOfferOwnWorldComparator.invalidateWidget(var10); // L: 461
return 1; // L: 462
} else if (var0 == ScriptOpcodes.CC_DELETEALL) { // L: 464
var3 = UserComparator4.getWidget(Interpreter.Interpreter_intStack[--MilliClock.Interpreter_intStackSize]); // L: 465
var3.children = null; // L: 466
GrandExchangeOfferOwnWorldComparator.invalidateWidget(var3); // L: 467
return 1; // L: 468
} else if (var0 != ScriptOpcodes.CC_FIND) { // L: 470
if (var0 == ScriptOpcodes.IF_FIND) { // L: 483
var3 = UserComparator4.getWidget(Interpreter.Interpreter_intStack[--MilliClock.Interpreter_intStackSize]); // L: 484
if (var3 != null) { // L: 485
Interpreter.Interpreter_intStack[++MilliClock.Interpreter_intStackSize - 1] = 1; // L: 486
if (var2) { // L: 487
MouseRecorder.field621 = var3;
} else {
Interpreter.field1122 = var3; // L: 488
}
} else {
Interpreter.Interpreter_intStack[++MilliClock.Interpreter_intStackSize - 1] = 0; // L: 490
}
return false; // L: 119
return 1; // L: 491
} else {
return 2; // L: 493
}
} else {
MilliClock.Interpreter_intStackSize -= 2; // L: 471
var9 = Interpreter.Interpreter_intStack[MilliClock.Interpreter_intStackSize]; // L: 472
var4 = Interpreter.Interpreter_intStack[MilliClock.Interpreter_intStackSize + 1]; // L: 473
Widget var5 = ItemContainer.getWidgetChild(var9, var4); // L: 474
if (var5 != null && var4 != -1) { // L: 475
Interpreter.Interpreter_intStack[++MilliClock.Interpreter_intStackSize - 1] = 1; // L: 476
if (var2) { // L: 477
MouseRecorder.field621 = var5;
} else {
Interpreter.field1122 = var5; // L: 478
}
} else {
Interpreter.Interpreter_intStack[++MilliClock.Interpreter_intStackSize - 1] = 0; // L: 480
}
return 1; // L: 481
}
}
}
}