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

@@ -3,115 +3,97 @@ import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("ih")
@ObfuscatedName("jt")
@Implements("Strings")
public class Strings {
@ObfuscatedName("bi")
public static String field2966;
@ObfuscatedName("cv")
public static String field3005;
@ObfuscatedName("jo")
public static String field2961;
@ObfuscatedName("ju")
public static String field2955;
@ObfuscatedName("jx")
public static String field3183;
@ObfuscatedName("bu")
public static String field3295;
@ObfuscatedName("cl")
public static String field3334;
@ObfuscatedName("jj")
public static String field3439;
@ObfuscatedName("jg")
public static String field3503;
@ObfuscatedName("ji")
public static String field3512;
static {
field2966 = "Please visit the support page for assistance."; // L: 60
field3005 = "Please visit the support page for assistance."; // L: 99
field2961 = ""; // L: 275
field2955 = "Page has opened in a new window."; // L: 276
field3183 = "(Please check your popup blocker.)"; // L: 277
field3295 = "Please visit the support page for assistance."; // L: 60
field3334 = "Please visit the support page for assistance.";
field3439 = ""; // L: 275
field3503 = "Page has opened in a new window."; // L: 276
field3512 = "(Please check your popup blocker.)"; // L: 277
} // L: 307
@ObfuscatedName("hs")
@ObfuscatedName("c")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "1090221079"
descriptor = "(II)Lez;",
garbageValue = "1535423962"
)
static final void method4404() {
PacketBuffer var0 = Client.packetWriter.packetBuffer; // L: 7285
var0.importIndex(); // L: 7286
int var1 = var0.readBits(8); // L: 7287
int var2;
if (var1 < Client.npcCount) { // L: 7288
for (var2 = var1; var2 < Client.npcCount; ++var2) { // L: 7289
Client.field724[++Client.field723 - 1] = Client.npcIndices[var2];
}
}
if (var1 > Client.npcCount) { // L: 7291
throw new RuntimeException("");
@Export("ItemDefinition_get")
public static ItemComposition ItemDefinition_get(int var0) {
ItemComposition var1 = (ItemComposition)ItemComposition.ItemDefinition_cached.get((long)var0); // L: 92
if (var1 != null) { // L: 93
return var1;
} else {
Client.npcCount = 0; // L: 7292
byte[] var2 = ItemComposition.ItemDefinition_archive.takeFile(10, var0); // L: 94
var1 = new ItemComposition(); // L: 95
var1.id = var0; // L: 96
if (var2 != null) { // L: 97
var1.decode(new Buffer(var2));
}
for (var2 = 0; var2 < var1; ++var2) { // L: 7293
int var3 = Client.npcIndices[var2]; // L: 7294
NPC var4 = Client.npcs[var3]; // L: 7295
int var5 = var0.readBits(1); // L: 7296
if (var5 == 0) { // L: 7297
Client.npcIndices[++Client.npcCount - 1] = var3; // L: 7298
var4.npcCycle = Client.cycle; // L: 7299
} else {
int var6 = var0.readBits(2); // L: 7302
if (var6 == 0) { // L: 7303
Client.npcIndices[++Client.npcCount - 1] = var3; // L: 7304
var4.npcCycle = Client.cycle; // L: 7305
Client.field646[++Client.field645 - 1] = var3; // L: 7306
} else {
int var7;
int var8;
if (var6 == 1) { // L: 7309
Client.npcIndices[++Client.npcCount - 1] = var3; // L: 7310
var4.npcCycle = Client.cycle; // L: 7311
var7 = var0.readBits(3); // L: 7312
var4.method2235(var7, (byte)1); // L: 7313
var8 = var0.readBits(1); // L: 7314
if (var8 == 1) { // L: 7315
Client.field646[++Client.field645 - 1] = var3;
}
} else if (var6 == 2) { // L: 7318
Client.npcIndices[++Client.npcCount - 1] = var3; // L: 7319
var4.npcCycle = Client.cycle; // L: 7320
var7 = var0.readBits(3); // L: 7321
var4.method2235(var7, (byte)2); // L: 7322
var8 = var0.readBits(3); // L: 7323
var4.method2235(var8, (byte)2); // L: 7324
int var9 = var0.readBits(1); // L: 7325
if (var9 == 1) {
Client.field646[++Client.field645 - 1] = var3; // L: 7326
}
} else if (var6 == 3) { // L: 7329
Client.field724[++Client.field723 - 1] = var3; // L: 7330
var1.post(); // L: 98
if (var1.noteTemplate != -1) { // L: 99
var1.genCert(ItemDefinition_get(var1.noteTemplate), ItemDefinition_get(var1.note));
}
if (var1.notedId != -1) { // L: 100
var1.genBought(ItemDefinition_get(var1.notedId), ItemDefinition_get(var1.unnotedId));
}
if (var1.placeholderTemplate != -1) { // L: 101
var1.genPlaceholder(ItemDefinition_get(var1.placeholderTemplate), ItemDefinition_get(var1.placeholder));
}
if (!BufferedNetSocket.ItemDefinition_inMembersWorld && var1.isMembersOnly) { // L: 102
var1.name = "Members object"; // L: 103
var1.isTradable = false; // L: 104
var1.groundActions = null; // L: 105
var1.inventoryActions = null; // L: 106
var1.shiftClickIndex = -1; // L: 107
var1.team = 0; // L: 108
if (var1.params != null) { // L: 109
boolean var3 = false; // L: 110
for (Node var4 = var1.params.first(); var4 != null; var4 = var1.params.next()) { // L: 111
ParamComposition var5 = WorldMapElement.getParamDefinition((int)var4.key); // L: 112
if (var5.autoDisable) { // L: 113
var4.remove();
} else {
var3 = true; // L: 114
}
}
if (!var3) { // L: 116
var1.params = null;
}
}
}
ItemComposition.ItemDefinition_cached.put(var1, (long)var0); // L: 119
return var1; // L: 120
}
} // L: 7334
}
@ObfuscatedName("hd")
@ObfuscatedName("jf")
@ObfuscatedSignature(
descriptor = "(IIIIB)V",
garbageValue = "54"
descriptor = "(IIIZI)V",
garbageValue = "-1449127026"
)
@Export("selectSpell")
static void selectSpell(int var0, int var1, int var2, int var3) {
Widget var4 = class231.getWidgetChild(var0, var1); // L: 8824
if (var4 != null && var4.onTargetEnter != null) { // L: 8825
ScriptEvent var5 = new ScriptEvent(); // L: 8826
var5.widget = var4; // L: 8827
var5.args = var4.onTargetEnter; // L: 8828
class19.runScriptEvent(var5); // L: 8829
static final void method4801(int var0, int var1, int var2, boolean var3) {
if (UserComparator8.loadInterface(var0)) { // L: 10051
Login.resizeInterface(Widget.Widget_interfaceComponents[var0], -1, var1, var2, var3); // L: 10052
}
Client.field874 = var3; // L: 8831
Client.isSpellSelected = true; // L: 8832
class148.selectedSpellWidget = var0; // L: 8833
Client.selectedSpellChildIndex = var1; // L: 8834
UserComparator10.selectedSpellFlags = var2; // L: 8835
class29.invalidateWidget(var4); // L: 8836
} // L: 8837
} // L: 10053
}