project: uwu (197)
This commit is contained in:
@@ -3,80 +3,73 @@ 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("bg")
|
||||
@ObfuscatedName("bk")
|
||||
@Implements("World")
|
||||
public class World {
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "[Lbk;"
|
||||
)
|
||||
@Export("World_worlds")
|
||||
static World[] World_worlds;
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1267509105
|
||||
intValue = -1728801439
|
||||
)
|
||||
@Export("World_count")
|
||||
static int World_count;
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1119546685
|
||||
intValue = -1039031469
|
||||
)
|
||||
@Export("World_listCount")
|
||||
static int World_listCount;
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("r")
|
||||
@Export("World_sortOption2")
|
||||
static int[] World_sortOption2;
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("h")
|
||||
@Export("World_sortOption1")
|
||||
static int[] World_sortOption1;
|
||||
@ObfuscatedName("fu")
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lmu;"
|
||||
descriptor = "Ldc;"
|
||||
)
|
||||
@Export("WorldMapElement_fonts")
|
||||
static Fonts WorldMapElement_fonts;
|
||||
@ObfuscatedName("jz")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lgh;"
|
||||
)
|
||||
@Export("textureProvider")
|
||||
static TextureProvider textureProvider;
|
||||
@ObfuscatedName("li")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lio;"
|
||||
)
|
||||
@Export("mousedOverWidgetIf1")
|
||||
static Widget mousedOverWidgetIf1;
|
||||
@ObfuscatedName("u")
|
||||
@Export("World_request")
|
||||
static UrlRequest World_request;
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1428153959
|
||||
intValue = -1045630855
|
||||
)
|
||||
@Export("id")
|
||||
int id;
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 264436593
|
||||
intValue = 425898455
|
||||
)
|
||||
@Export("properties")
|
||||
int properties;
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -508707417
|
||||
intValue = -372282787
|
||||
)
|
||||
@Export("population")
|
||||
int population;
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("k")
|
||||
@Export("host")
|
||||
String host;
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("g")
|
||||
@Export("activity")
|
||||
String activity;
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1484367493
|
||||
intValue = -1961893903
|
||||
)
|
||||
@Export("location")
|
||||
int location;
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 2005307775
|
||||
intValue = 724778095
|
||||
)
|
||||
@Export("index")
|
||||
int index;
|
||||
@@ -94,439 +87,248 @@ public class World {
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)Z",
|
||||
garbageValue = "2086816927"
|
||||
garbageValue = "1633198198"
|
||||
)
|
||||
@Export("isMembersOnly")
|
||||
boolean isMembersOnly() {
|
||||
return (1 & this.properties) != 0;
|
||||
return (1 & this.properties) != 0; // L: 247
|
||||
}
|
||||
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)Z",
|
||||
garbageValue = "-1823181912"
|
||||
garbageValue = "-896740127"
|
||||
)
|
||||
boolean method1638() {
|
||||
return (2 & this.properties) != 0; // L: 261
|
||||
boolean method1749() {
|
||||
return (2 & this.properties) != 0; // L: 251
|
||||
}
|
||||
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)Z",
|
||||
garbageValue = "-1133674448"
|
||||
garbageValue = "1876446967"
|
||||
)
|
||||
@Export("isPvp")
|
||||
boolean isPvp() {
|
||||
return (4 & this.properties) != 0; // L: 265
|
||||
return (4 & this.properties) != 0; // L: 255
|
||||
}
|
||||
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)Z",
|
||||
garbageValue = "-1123465891"
|
||||
garbageValue = "-2071254222"
|
||||
)
|
||||
boolean method1640() {
|
||||
return (8 & this.properties) != 0; // L: 269
|
||||
boolean method1757() {
|
||||
return (8 & this.properties) != 0; // L: 259
|
||||
}
|
||||
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)Z",
|
||||
garbageValue = "504803099"
|
||||
garbageValue = "1854711947"
|
||||
)
|
||||
@Export("isDeadman")
|
||||
boolean isDeadman() {
|
||||
return (536870912 & this.properties) != 0;
|
||||
return (536870912 & this.properties) != 0; // L: 263
|
||||
}
|
||||
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(S)Z",
|
||||
garbageValue = "255"
|
||||
descriptor = "(I)Z",
|
||||
garbageValue = "39105033"
|
||||
)
|
||||
@Export("isBeta")
|
||||
boolean isBeta() {
|
||||
return (33554432 & this.properties) != 0;
|
||||
return (33554432 & this.properties) != 0; // L: 267
|
||||
}
|
||||
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(S)Z",
|
||||
garbageValue = "-31490"
|
||||
)
|
||||
boolean method1778() {
|
||||
return (1073741824 & this.properties) != 0; // L: 271
|
||||
}
|
||||
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(B)Z",
|
||||
garbageValue = "12"
|
||||
descriptor = "(III)V",
|
||||
garbageValue = "-2001631546"
|
||||
)
|
||||
boolean method1643() {
|
||||
return (1073741824 & this.properties) != 0;
|
||||
}
|
||||
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(ILjava/lang/String;Ljava/lang/String;I)V",
|
||||
garbageValue = "-577854303"
|
||||
)
|
||||
@Export("addGameMessage")
|
||||
static void addGameMessage(int var0, String var1, String var2) {
|
||||
class5.addChatMessage(var0, var1, var2, (String)null); // L: 19
|
||||
} // L: 20
|
||||
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Lcz;III)V",
|
||||
garbageValue = "704254621"
|
||||
)
|
||||
@Export("runScript")
|
||||
static void runScript(ScriptEvent var0, int var1, int var2) {
|
||||
Object[] var3 = var0.args; // L: 110
|
||||
Script var4;
|
||||
int var19;
|
||||
if (NPC.isWorldMapEvent(var0.type)) { // L: 112
|
||||
class69.worldMapEvent = (WorldMapEvent)var3[0]; // L: 113
|
||||
WorldMapElement var5 = class6.WorldMapElement_get(class69.worldMapEvent.mapElement); // L: 114
|
||||
var4 = class43.getWorldMapScript(var0.type, var5.objectId, var5.category); // L: 115
|
||||
} else {
|
||||
var19 = (Integer)var3[0]; // L: 118
|
||||
var4 = ApproximateRouteStrategy.getScript(var19); // L: 119
|
||||
}
|
||||
|
||||
if (var4 != null) { // L: 121
|
||||
class44.Interpreter_intStackSize = 0; // L: 124
|
||||
Interpreter.Interpreter_stringStackSize = 0; // L: 125
|
||||
var19 = -1; // L: 126
|
||||
int[] var6 = var4.opcodes; // L: 127
|
||||
int[] var7 = var4.intOperands; // L: 128
|
||||
byte var8 = -1; // L: 129
|
||||
Interpreter.Interpreter_frameDepth = 0; // L: 130
|
||||
Interpreter.field973 = false; // L: 131
|
||||
boolean var9 = false; // L: 132
|
||||
int var10 = 0; // L: 133
|
||||
|
||||
try {
|
||||
int var13;
|
||||
try {
|
||||
class368.Interpreter_intLocals = new int[var4.localIntCount]; // L: 135
|
||||
int var11 = 0; // L: 136
|
||||
Interpreter.Interpreter_stringLocals = new String[var4.localStringCount]; // L: 137
|
||||
int var12 = 0; // L: 138
|
||||
|
||||
int var14;
|
||||
String var20;
|
||||
for (var13 = 1; var13 < var3.length; ++var13) { // L: 139
|
||||
if (var3[var13] instanceof Integer) { // L: 140
|
||||
var14 = (Integer)var3[var13]; // L: 141
|
||||
if (var14 == -2147483647) { // L: 142
|
||||
var14 = var0.mouseX;
|
||||
}
|
||||
|
||||
if (var14 == -2147483646) { // L: 143
|
||||
var14 = var0.mouseY;
|
||||
}
|
||||
|
||||
if (var14 == -2147483645) { // L: 144
|
||||
var14 = var0.widget != null ? var0.widget.id * 1969535585 * -1722455647 : -1;
|
||||
}
|
||||
|
||||
if (var14 == -2147483644) { // L: 145
|
||||
var14 = var0.opIndex;
|
||||
}
|
||||
|
||||
if (var14 == -2147483643) { // L: 146
|
||||
var14 = var0.widget != null ? var0.widget.childIndex * 41180389 * 1926103277 : -1;
|
||||
}
|
||||
|
||||
if (var14 == -2147483642) { // L: 147
|
||||
var14 = var0.dragTarget != null ? var0.dragTarget.id * 1969535585 * -1722455647 : -1;
|
||||
}
|
||||
|
||||
if (var14 == -2147483641) { // L: 148
|
||||
var14 = var0.dragTarget != null ? var0.dragTarget.childIndex * 41180389 * 1926103277 : -1;
|
||||
}
|
||||
|
||||
if (var14 == -2147483640) { // L: 149
|
||||
var14 = var0.keyTyped;
|
||||
}
|
||||
|
||||
if (var14 == -2147483639) { // L: 150
|
||||
var14 = var0.keyPressed;
|
||||
}
|
||||
|
||||
class368.Interpreter_intLocals[var11++] = var14; // L: 151
|
||||
} else if (var3[var13] instanceof String) { // L: 153
|
||||
var20 = (String)var3[var13]; // L: 154
|
||||
if (var20.equals("event_opbase")) { // L: 155
|
||||
var20 = var0.targetName;
|
||||
}
|
||||
|
||||
Interpreter.Interpreter_stringLocals[var12++] = var20; // L: 156
|
||||
}
|
||||
}
|
||||
|
||||
Interpreter.field987 = var0.field1180; // L: 160
|
||||
|
||||
while (true) {
|
||||
++var10; // L: 162
|
||||
if (var10 > var1) { // L: 163
|
||||
throw new RuntimeException();
|
||||
}
|
||||
|
||||
++var19; // L: 164
|
||||
int var31 = var6[var19];
|
||||
if (var31 >= 100) { // L: 165
|
||||
boolean var32;
|
||||
if (var4.intOperands[var19] == 1) { // L: 383
|
||||
var32 = true;
|
||||
} else {
|
||||
var32 = false; // L: 384
|
||||
}
|
||||
|
||||
var14 = IgnoreList.method5628(var31, var4, var32); // L: 385
|
||||
switch(var14) { // L: 386
|
||||
case 0:
|
||||
return;
|
||||
case 1:
|
||||
default:
|
||||
break;
|
||||
case 2:
|
||||
throw new IllegalStateException(); // L: 393
|
||||
}
|
||||
} else if (var31 == 0) { // L: 166
|
||||
Interpreter.Interpreter_intStack[++class44.Interpreter_intStackSize - 1] = var7[var19]; // L: 167
|
||||
} else if (var31 == ScriptOpcodes.GET_VARP) { // L: 170
|
||||
var13 = var7[var19]; // L: 171
|
||||
Interpreter.Interpreter_intStack[++class44.Interpreter_intStackSize - 1] = Varps.Varps_main[var13]; // L: 172
|
||||
} else if (var31 == ScriptOpcodes.SET_VARP) { // L: 175
|
||||
var13 = var7[var19]; // L: 176
|
||||
Varps.Varps_main[var13] = Interpreter.Interpreter_intStack[--class44.Interpreter_intStackSize]; // L: 177
|
||||
ApproximateRouteStrategy.changeGameOptions(var13); // L: 178
|
||||
} else if (var31 == ScriptOpcodes.SCONST) { // L: 181
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var4.stringOperands[var19]; // L: 182
|
||||
} else if (var31 == ScriptOpcodes.JUMP) { // L: 185
|
||||
var19 += var7[var19]; // L: 186
|
||||
} else if (var31 == ScriptOpcodes.IF_ICMPNE) { // L: 189
|
||||
class44.Interpreter_intStackSize -= 2; // L: 190
|
||||
if (Interpreter.Interpreter_intStack[class44.Interpreter_intStackSize] != Interpreter.Interpreter_intStack[class44.Interpreter_intStackSize + 1]) { // L: 191
|
||||
var19 += var7[var19];
|
||||
}
|
||||
} else if (var31 == ScriptOpcodes.IF_ICMPEQ) { // L: 194
|
||||
class44.Interpreter_intStackSize -= 2; // L: 195
|
||||
if (Interpreter.Interpreter_intStack[class44.Interpreter_intStackSize] == Interpreter.Interpreter_intStack[class44.Interpreter_intStackSize + 1]) { // L: 196
|
||||
var19 += var7[var19];
|
||||
}
|
||||
} else if (var31 == ScriptOpcodes.IF_ICMPLT) { // L: 199
|
||||
class44.Interpreter_intStackSize -= 2; // L: 200
|
||||
if (Interpreter.Interpreter_intStack[class44.Interpreter_intStackSize] < Interpreter.Interpreter_intStack[class44.Interpreter_intStackSize + 1]) { // L: 201
|
||||
var19 += var7[var19];
|
||||
}
|
||||
} else if (var31 == ScriptOpcodes.IF_ICMPGT) { // L: 204
|
||||
class44.Interpreter_intStackSize -= 2; // L: 205
|
||||
if (Interpreter.Interpreter_intStack[class44.Interpreter_intStackSize] > Interpreter.Interpreter_intStack[class44.Interpreter_intStackSize + 1]) { // L: 206
|
||||
var19 += var7[var19];
|
||||
}
|
||||
} else if (var31 == ScriptOpcodes.RETURN) { // L: 209
|
||||
if (Interpreter.Interpreter_frameDepth == 0) { // L: 210
|
||||
return; // L: 417
|
||||
}
|
||||
|
||||
ScriptFrame var37 = Interpreter.Interpreter_frames[--Interpreter.Interpreter_frameDepth]; // L: 211
|
||||
var4 = var37.script; // L: 212
|
||||
var6 = var4.opcodes; // L: 213
|
||||
var7 = var4.intOperands; // L: 214
|
||||
var19 = var37.pc; // L: 215
|
||||
class368.Interpreter_intLocals = var37.intLocals; // L: 216
|
||||
Interpreter.Interpreter_stringLocals = var37.stringLocals; // L: 217
|
||||
} else if (var31 == ScriptOpcodes.GET_VARBIT) { // L: 220
|
||||
var13 = var7[var19]; // L: 221
|
||||
Interpreter.Interpreter_intStack[++class44.Interpreter_intStackSize - 1] = Skeleton.getVarbit(var13); // L: 222
|
||||
} else if (var31 == ScriptOpcodes.SET_VARBIT) { // L: 225
|
||||
var13 = var7[var19]; // L: 226
|
||||
Login.method1951(var13, Interpreter.Interpreter_intStack[--class44.Interpreter_intStackSize]); // L: 227
|
||||
} else if (var31 == ScriptOpcodes.IF_ICMPLE) { // L: 230
|
||||
class44.Interpreter_intStackSize -= 2; // L: 231
|
||||
if (Interpreter.Interpreter_intStack[class44.Interpreter_intStackSize] <= Interpreter.Interpreter_intStack[class44.Interpreter_intStackSize + 1]) { // L: 232
|
||||
var19 += var7[var19];
|
||||
}
|
||||
} else if (var31 == ScriptOpcodes.IF_ICMPGE) { // L: 235
|
||||
class44.Interpreter_intStackSize -= 2; // L: 236
|
||||
if (Interpreter.Interpreter_intStack[class44.Interpreter_intStackSize] >= Interpreter.Interpreter_intStack[class44.Interpreter_intStackSize + 1]) { // L: 237
|
||||
var19 += var7[var19];
|
||||
}
|
||||
} else if (var31 == ScriptOpcodes.ILOAD) { // L: 240
|
||||
Interpreter.Interpreter_intStack[++class44.Interpreter_intStackSize - 1] = class368.Interpreter_intLocals[var7[var19]]; // L: 241
|
||||
} else if (var31 == ScriptOpcodes.ISTORE) { // L: 244
|
||||
class368.Interpreter_intLocals[var7[var19]] = Interpreter.Interpreter_intStack[--class44.Interpreter_intStackSize]; // L: 245
|
||||
} else if (var31 == ScriptOpcodes.SLOAD) { // L: 248
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = Interpreter.Interpreter_stringLocals[var7[var19]]; // L: 249
|
||||
} else if (var31 == ScriptOpcodes.SSTORE) { // L: 252
|
||||
Interpreter.Interpreter_stringLocals[var7[var19]] = Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]; // L: 253
|
||||
} else if (var31 == ScriptOpcodes.JOIN_STRING) { // L: 256
|
||||
var13 = var7[var19]; // L: 257
|
||||
Interpreter.Interpreter_stringStackSize -= var13; // L: 258
|
||||
var20 = BuddyRankComparator.method2484(Interpreter.Interpreter_stringStack, Interpreter.Interpreter_stringStackSize, var13); // L: 259
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var20; // L: 260
|
||||
} else if (var31 == ScriptOpcodes.POP_INT) { // L: 263
|
||||
--class44.Interpreter_intStackSize; // L: 264
|
||||
} else if (var31 == ScriptOpcodes.POP_STRING) { // L: 267
|
||||
--Interpreter.Interpreter_stringStackSize; // L: 268
|
||||
} else {
|
||||
int var17;
|
||||
if (var31 != ScriptOpcodes.INVOKE) { // L: 271
|
||||
if (var31 == ScriptOpcodes.GET_VARC_INT) { // L: 294
|
||||
Interpreter.Interpreter_intStack[++class44.Interpreter_intStackSize - 1] = GrandExchangeOfferOwnWorldComparator.varcs.getInt(var7[var19]); // L: 295
|
||||
} else if (var31 == ScriptOpcodes.SET_VARC_INT) { // L: 298
|
||||
GrandExchangeOfferOwnWorldComparator.varcs.setInt(var7[var19], Interpreter.Interpreter_intStack[--class44.Interpreter_intStackSize]); // L: 299
|
||||
} else if (var31 == ScriptOpcodes.DEFINE_ARRAY) { // L: 302
|
||||
var13 = var7[var19] >> 16; // L: 303
|
||||
var14 = var7[var19] & 65535; // L: 304
|
||||
int var23 = Interpreter.Interpreter_intStack[--class44.Interpreter_intStackSize]; // L: 305
|
||||
if (var23 < 0 || var23 > 5000) { // L: 306
|
||||
throw new RuntimeException(); // L: 307
|
||||
}
|
||||
|
||||
Interpreter.Interpreter_arrayLengths[var13] = var23; // L: 309
|
||||
byte var24 = -1; // L: 310
|
||||
if (var14 == 105) { // L: 311
|
||||
var24 = 0;
|
||||
}
|
||||
|
||||
for (var17 = 0; var17 < var23; ++var17) { // L: 312
|
||||
Interpreter.Interpreter_arrays[var13][var17] = var24;
|
||||
}
|
||||
} else if (var31 == ScriptOpcodes.GET_ARRAY_INT) { // L: 315
|
||||
var13 = var7[var19]; // L: 316
|
||||
var14 = Interpreter.Interpreter_intStack[--class44.Interpreter_intStackSize]; // L: 317
|
||||
if (var14 < 0 || var14 >= Interpreter.Interpreter_arrayLengths[var13]) { // L: 318
|
||||
throw new RuntimeException(); // L: 319
|
||||
}
|
||||
|
||||
Interpreter.Interpreter_intStack[++class44.Interpreter_intStackSize - 1] = Interpreter.Interpreter_arrays[var13][var14]; // L: 321
|
||||
} else if (var31 == ScriptOpcodes.SET_ARRAY_INT) { // L: 324
|
||||
var13 = var7[var19]; // L: 325
|
||||
class44.Interpreter_intStackSize -= 2; // L: 326
|
||||
var14 = Interpreter.Interpreter_intStack[class44.Interpreter_intStackSize]; // L: 327
|
||||
if (var14 < 0 || var14 >= Interpreter.Interpreter_arrayLengths[var13]) { // L: 328
|
||||
throw new RuntimeException(); // L: 329
|
||||
}
|
||||
|
||||
Interpreter.Interpreter_arrays[var13][var14] = Interpreter.Interpreter_intStack[class44.Interpreter_intStackSize + 1]; // L: 331
|
||||
} else {
|
||||
String var21;
|
||||
if (var31 == ScriptOpcodes.GET_VARC_STRING_OLD) { // L: 334
|
||||
var21 = GrandExchangeOfferOwnWorldComparator.varcs.getStringOld(var7[var19]); // L: 335
|
||||
if (var21 == null) { // L: 336
|
||||
var21 = "null";
|
||||
}
|
||||
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var21; // L: 337
|
||||
} else if (var31 == ScriptOpcodes.SET_VARC_STRING_OLD) { // L: 340
|
||||
GrandExchangeOfferOwnWorldComparator.varcs.setStringOld(var7[var19], Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]); // L: 341
|
||||
} else if (var31 == ScriptOpcodes.GET_VARC_STRING) { // L: 344
|
||||
var21 = GrandExchangeOfferOwnWorldComparator.varcs.getString(var7[var19]); // L: 345
|
||||
Interpreter.Interpreter_stringStack[++Interpreter.Interpreter_stringStackSize - 1] = var21; // L: 346
|
||||
} else if (var31 == ScriptOpcodes.SET_VARC_STRING) { // L: 349
|
||||
GrandExchangeOfferOwnWorldComparator.varcs.setString(var7[var19], Interpreter.Interpreter_stringStack[--Interpreter.Interpreter_stringStackSize]); // L: 350
|
||||
} else if (var31 == ScriptOpcodes.SWITCH) { // L: 353
|
||||
IterableNodeHashTable var35 = var4.switches[var7[var19]]; // L: 354
|
||||
IntegerNode var34 = (IntegerNode)var35.get((long)Interpreter.Interpreter_intStack[--class44.Interpreter_intStackSize]); // L: 355
|
||||
if (var34 != null) { // L: 356
|
||||
var19 += var34.integer;
|
||||
}
|
||||
} else {
|
||||
Integer var36;
|
||||
if (var31 == 74) { // L: 359
|
||||
var36 = class26.field220.getTitleGroupValue(var7[var19]); // L: 360
|
||||
if (var36 == null) { // L: 361
|
||||
Interpreter.Interpreter_intStack[++class44.Interpreter_intStackSize - 1] = -1; // L: 362
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++class44.Interpreter_intStackSize - 1] = var36; // L: 365
|
||||
}
|
||||
} else {
|
||||
if (var31 != 76) { // L: 369
|
||||
throw new IllegalStateException(); // L: 379
|
||||
}
|
||||
|
||||
var36 = class34.field254.method6014(var7[var19]); // L: 370
|
||||
if (var36 == null) { // L: 371
|
||||
Interpreter.Interpreter_intStack[++class44.Interpreter_intStackSize - 1] = -1; // L: 372
|
||||
} else {
|
||||
Interpreter.Interpreter_intStack[++class44.Interpreter_intStackSize - 1] = var36; // L: 375
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var13 = var7[var19]; // L: 272
|
||||
Script var33 = ApproximateRouteStrategy.getScript(var13); // L: 273
|
||||
int[] var15 = new int[var33.localIntCount]; // L: 274
|
||||
String[] var16 = new String[var33.localStringCount]; // L: 275
|
||||
|
||||
for (var17 = 0; var17 < var33.intArgumentCount; ++var17) { // L: 276
|
||||
var15[var17] = Interpreter.Interpreter_intStack[var17 + (class44.Interpreter_intStackSize - var33.intArgumentCount)];
|
||||
}
|
||||
|
||||
for (var17 = 0; var17 < var33.stringArgumentCount; ++var17) { // L: 277
|
||||
var16[var17] = Interpreter.Interpreter_stringStack[var17 + (Interpreter.Interpreter_stringStackSize - var33.stringArgumentCount)];
|
||||
}
|
||||
|
||||
class44.Interpreter_intStackSize -= var33.intArgumentCount; // L: 278
|
||||
Interpreter.Interpreter_stringStackSize -= var33.stringArgumentCount; // L: 279
|
||||
ScriptFrame var22 = new ScriptFrame(); // L: 280
|
||||
var22.script = var4; // L: 281
|
||||
var22.pc = var19; // L: 282
|
||||
var22.intLocals = class368.Interpreter_intLocals; // L: 283
|
||||
var22.stringLocals = Interpreter.Interpreter_stringLocals; // L: 284
|
||||
Interpreter.Interpreter_frames[++Interpreter.Interpreter_frameDepth - 1] = var22; // L: 285
|
||||
var4 = var33; // L: 286
|
||||
var6 = var33.opcodes; // L: 287
|
||||
var7 = var33.intOperands; // L: 288
|
||||
var19 = -1; // L: 289
|
||||
class368.Interpreter_intLocals = var15; // L: 290
|
||||
Interpreter.Interpreter_stringLocals = var16; // L: 291
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception var29) { // L: 399
|
||||
var9 = true; // L: 400
|
||||
StringBuilder var26 = new StringBuilder(30); // L: 402
|
||||
var26.append("").append(var4.key).append(" "); // L: 403
|
||||
|
||||
for (var13 = Interpreter.Interpreter_frameDepth - 1; var13 >= 0; --var13) { // L: 404
|
||||
var26.append("").append(Interpreter.Interpreter_frames[var13].script.key).append(" ");
|
||||
}
|
||||
|
||||
var26.append("").append(var8); // L: 405
|
||||
class266.RunException_sendStackTrace(var26.toString(), var29); // L: 406
|
||||
}
|
||||
} finally {
|
||||
if (Interpreter.field973) { // L: 410
|
||||
Interpreter.field986 = true; // L: 411
|
||||
class4.method47(); // L: 412
|
||||
Interpreter.field986 = false; // L: 413
|
||||
Interpreter.field973 = false; // L: 414
|
||||
}
|
||||
|
||||
if (!var9 && var2 > 0 && var10 >= var2) { // L: 416
|
||||
class266.RunException_sendStackTrace("Warning: Script " + var4.field1084 + " finished at op count " + var10 + " of max " + var1, (Throwable)null);
|
||||
}
|
||||
@Export("changeWorldSelectSorting")
|
||||
static void changeWorldSelectSorting(int var0, int var1) {
|
||||
int[] var2 = new int[4]; // L: 63
|
||||
int[] var3 = new int[4]; // L: 64
|
||||
var2[0] = var0; // L: 65
|
||||
var3[0] = var1; // L: 66
|
||||
int var4 = 1; // L: 67
|
||||
|
||||
for (int var5 = 0; var5 < 4; ++var5) { // L: 68
|
||||
if (World_sortOption1[var5] != var0) { // L: 69
|
||||
var2[var4] = World_sortOption1[var5]; // L: 70
|
||||
var3[var4] = World_sortOption2[var5]; // L: 71
|
||||
++var4; // L: 72
|
||||
}
|
||||
}
|
||||
} // L: 122 420
|
||||
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(IIIS)I",
|
||||
garbageValue = "24074"
|
||||
)
|
||||
public static int method1685(int var0, int var1, int var2) {
|
||||
int var3 = CollisionMap.method3185(var2 - var1 + 1); // L: 51
|
||||
var3 <<= var1; // L: 52
|
||||
return var0 & ~var3; // L: 53
|
||||
}
|
||||
World_sortOption1 = var2; // L: 75
|
||||
World_sortOption2 = var3; // L: 76
|
||||
FileSystem.sortWorlds(World_worlds, 0, World_worlds.length - 1, World_sortOption1, World_sortOption2); // L: 77
|
||||
} // L: 78
|
||||
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedName("ge")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(II)Z",
|
||||
garbageValue = "1461307480"
|
||||
descriptor = "(Lcl;IS)V",
|
||||
garbageValue = "-356"
|
||||
)
|
||||
public static boolean method1663(int var0) {
|
||||
return (var0 >> 30 & 1) != 0; // L: 29
|
||||
}
|
||||
@Export("updateActorSequence")
|
||||
static final void updateActorSequence(Actor var0, int var1) {
|
||||
if (var0.field1276 >= Client.cycle) { // L: 4089
|
||||
Messages.method2461(var0);
|
||||
} else if (var0.field1269 >= Client.cycle) { // L: 4090
|
||||
WorldMapLabelSize.method3279(var0);
|
||||
} else {
|
||||
SoundCache.method930(var0); // L: 4091
|
||||
}
|
||||
|
||||
if (var0.x < 128 || var0.y < 128 || var0.x >= 13184 || var0.y >= 13184) { // L: 4092
|
||||
var0.sequence = -1; // L: 4093
|
||||
var0.spotAnimation = -1; // L: 4094
|
||||
var0.field1276 = 0; // L: 4095
|
||||
var0.field1269 = 0; // L: 4096
|
||||
var0.x = var0.pathX[0] * 128 + var0.field1225 * 64; // L: 4097
|
||||
var0.y = var0.field1225 * 64 + var0.pathY[0] * 128; // L: 4098
|
||||
var0.method2263(); // L: 4099
|
||||
}
|
||||
|
||||
if (class262.localPlayer == var0 && (var0.x < 1536 || var0.y < 1536 || var0.x >= 11776 || var0.y >= 11776)) { // L: 4101 4102
|
||||
var0.sequence = -1; // L: 4103
|
||||
var0.spotAnimation = -1; // L: 4104
|
||||
var0.field1276 = 0; // L: 4105
|
||||
var0.field1269 = 0; // L: 4106
|
||||
var0.x = var0.field1225 * 64 + var0.pathX[0] * 128; // L: 4107
|
||||
var0.y = var0.field1225 * 64 + var0.pathY[0] * 128; // L: 4108
|
||||
var0.method2263(); // L: 4109
|
||||
}
|
||||
|
||||
if (var0.field1275 != 0) { // L: 4113
|
||||
if (var0.targetIndex != -1) { // L: 4114
|
||||
Object var2 = null; // L: 4115
|
||||
if (var0.targetIndex < 32768) { // L: 4116
|
||||
var2 = Client.npcs[var0.targetIndex];
|
||||
} else if (var0.targetIndex >= 32768) { // L: 4117
|
||||
var2 = Client.players[var0.targetIndex - 32768];
|
||||
}
|
||||
|
||||
if (var2 != null) { // L: 4118
|
||||
int var3 = var0.x - ((Actor)var2).x; // L: 4119
|
||||
int var4 = var0.y - ((Actor)var2).y; // L: 4120
|
||||
if (var3 != 0 || var4 != 0) { // L: 4121
|
||||
var0.orientation = (int)(Math.atan2((double)var3, (double)var4) * 325.949D) & 2047;
|
||||
}
|
||||
} else if (var0.false0) { // L: 4123
|
||||
var0.targetIndex = -1; // L: 4124
|
||||
var0.false0 = false; // L: 4125
|
||||
}
|
||||
}
|
||||
|
||||
if (var0.field1280 != -1 && (var0.pathLength == 0 || var0.field1242 > 0)) { // L: 4128
|
||||
var0.orientation = var0.field1280; // L: 4129
|
||||
var0.field1280 = -1; // L: 4130
|
||||
}
|
||||
|
||||
int var5 = var0.orientation - var0.rotation & 2047; // L: 4132
|
||||
if (var5 == 0 && var0.false0) { // L: 4133
|
||||
var0.targetIndex = -1; // L: 4134
|
||||
var0.false0 = false; // L: 4135
|
||||
}
|
||||
|
||||
if (var5 != 0) { // L: 4137
|
||||
++var0.field1274; // L: 4138
|
||||
boolean var7;
|
||||
if (var5 > 1024) { // L: 4139
|
||||
var0.rotation -= var0.field1275; // L: 4140
|
||||
var7 = true; // L: 4141
|
||||
if (var5 < var0.field1275 || var5 > 2048 - var0.field1275) { // L: 4142
|
||||
var0.rotation = var0.orientation; // L: 4143
|
||||
var7 = false; // L: 4144
|
||||
}
|
||||
|
||||
if (var0.idleSequence == var0.movementSequence && (var0.field1274 > 25 || var7)) { // L: 4146
|
||||
if (var0.turnLeftSequence != -1) { // L: 4147
|
||||
var0.movementSequence = var0.turnLeftSequence;
|
||||
} else {
|
||||
var0.movementSequence = var0.walkSequence; // L: 4148
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var0.rotation += var0.field1275; // L: 4152
|
||||
var7 = true; // L: 4153
|
||||
if (var5 < var0.field1275 || var5 > 2048 - var0.field1275) { // L: 4154
|
||||
var0.rotation = var0.orientation; // L: 4155
|
||||
var7 = false; // L: 4156
|
||||
}
|
||||
|
||||
if (var0.idleSequence == var0.movementSequence && (var0.field1274 > 25 || var7)) { // L: 4158
|
||||
if (var0.turnRightSequence != -1) { // L: 4159
|
||||
var0.movementSequence = var0.turnRightSequence;
|
||||
} else {
|
||||
var0.movementSequence = var0.walkSequence; // L: 4160
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var0.rotation &= 2047; // L: 4164
|
||||
} else {
|
||||
var0.field1274 = 0; // L: 4166
|
||||
}
|
||||
}
|
||||
|
||||
class0.method11(var0); // L: 4168
|
||||
} // L: 4169
|
||||
|
||||
@ObfuscatedName("gq")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Lcj;IIB)V",
|
||||
garbageValue = "2"
|
||||
)
|
||||
@Export("performPlayerAnimation")
|
||||
static void performPlayerAnimation(Player var0, int var1, int var2) {
|
||||
if (var0.sequence == var1 && var1 != -1) { // L: 4371
|
||||
int var3 = WorldMapScaleHandler.SequenceDefinition_get(var1).field1894; // L: 4372
|
||||
if (var3 == 1) { // L: 4373
|
||||
var0.sequenceFrame = 0; // L: 4374
|
||||
var0.sequenceFrameCycle = 0; // L: 4375
|
||||
var0.sequenceDelay = var2; // L: 4376
|
||||
var0.field1258 = 0; // L: 4377
|
||||
}
|
||||
|
||||
if (var3 == 2) { // L: 4379
|
||||
var0.field1258 = 0; // L: 4380
|
||||
}
|
||||
} else if (var1 == -1 || var0.sequence == -1 || WorldMapScaleHandler.SequenceDefinition_get(var1).field1892 >= WorldMapScaleHandler.SequenceDefinition_get(var0.sequence).field1892) { // L: 4383
|
||||
var0.sequence = var1; // L: 4384
|
||||
var0.sequenceFrame = 0; // L: 4385
|
||||
var0.sequenceFrameCycle = 0; // L: 4386
|
||||
var0.sequenceDelay = var2; // L: 4387
|
||||
var0.field1258 = 0; // L: 4388
|
||||
var0.field1281 = var0.pathLength; // L: 4389
|
||||
}
|
||||
|
||||
} // L: 4391
|
||||
|
||||
@ObfuscatedName("kp")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)V",
|
||||
garbageValue = "1994807431"
|
||||
)
|
||||
@Export("FriendSystem_invalidateIgnoreds")
|
||||
static final void FriendSystem_invalidateIgnoreds() {
|
||||
class233.method4541(); // L: 11436
|
||||
if (class289.friendsChat != null) { // L: 11437
|
||||
class289.friendsChat.invalidateIgnoreds(); // L: 11438
|
||||
}
|
||||
|
||||
} // L: 11440
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user