Code:
static final boolean parsePacket() throws IOException {
StaticMembers.anInt2318++;
if (Packets.socketStream == null) {
return false;
}
int i_0_ = Packets.socketStream.available();
if ((i_0_ ^ 0xffffffff) == -1) {
return false;
}
if ((Packets.packetID ^ 0xffffffff) == 0) {
i_0_--;
Packets.socketStream.method974(1, 0, Packets.inStream.buffer);
Packets.inStream.position = 0;
Packets.packetID = Packets.inStream.method491((byte) 47);
Class23_Sub4_Sub2.updateNPCsPacketSize = Class55.anIntArray863[Packets.packetID];
}
if (Class23_Sub4_Sub2.updateNPCsPacketSize == -1) {
if (i_0_ <= 0) {
return false;
}
Packets.socketStream.method974(1, 0, Packets.inStream.buffer);
i_0_--;
Class23_Sub4_Sub2.updateNPCsPacketSize = Packets.inStream.buffer[0] & 0xff;
}
if ((Class23_Sub4_Sub2.updateNPCsPacketSize ^ 0xffffffff) == 1) {
if (i_0_ <= 1) {
return false;
}
i_0_ -= 2;
Packets.socketStream.method974(2, 0, Packets.inStream.buffer);
Packets.inStream.position = 0;
Class23_Sub4_Sub2.updateNPCsPacketSize = Packets.inStream.getUnsignedShort();
}
if (i_0_ < Class23_Sub4_Sub2.updateNPCsPacketSize) {
return false;
}
Packets.inStream.position = 0;
Packets.socketStream.method974(Class23_Sub4_Sub2.updateNPCsPacketSize, 0, Packets.inStream.buffer);
Class63.anInt992 = 0;
Class25.anInt379 = Packets.packetSize;
Packets.packetSize = Class43.anInt666;
Class43.anInt666 = Packets.packetID;
if (Packets.packetID == 225) {
int i_1_ = Packets.inStream.getInt();
int i_2_ = Packets.inStream.getLEShort();
RSInterface rSInterface = Class23_Sub24.method905(i_1_, (byte) 111);
if ((i_2_ ^ 0xffffffff) != (rSInterface.disabledAnimation ^ 0xffffffff) || i_2_ == -1) {
rSInterface.anInt1020 = 0;
rSInterface.disabledAnimation = i_2_;
rSInterface.anInt1100 = 0;
Class91.method1450((byte) 29, rSInterface);
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 205) {
Client.method36((byte) 102);
StaticMembers.anInt4071 = Packets.inStream.getUnsignedByte();
Class88.anInt1499 = Class23_Sub10_Sub2.anInt3589;
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 139) {
StaticMembers.anInt2316 = Packets.inStream.getUnsignedShortA() * 30;
Packets.packetID = -1;
Class88.anInt1499 = Class23_Sub10_Sub2.anInt3589;
return true;
}
if (Packets.packetID == 192) {
byte[] bs = new byte[Class23_Sub4_Sub2.updateNPCsPacketSize];
Packets.inStream.method490(-122, Class23_Sub4_Sub2.updateNPCsPacketSize, 0, bs);
StaticMembers.method834(Class46.method1139(bs, 0, Class23_Sub4_Sub2.updateNPCsPacketSize, 0), (byte) -110);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 112) {
int i_3_ = Packets.inStream.getWordBigEndian();
int i_4_ = Packets.inStream.getUnsignedShort();
int i_5_ = Packets.inStream.readDWord();
int i_6_ = Packets.inStream.getWordBigEndian();
if ((i_5_ >> 30 ^ 0xffffffff) == -1) {
if ((i_5_ >> 29 ^ 0xffffffff) == -1) {
if (i_5_ >> 28 != 0) {
int i_7_ = i_5_ & 0xffff;
Player class38_sub7_sub2;
if ((i_7_ ^ 0xffffffff) == (Class23_Sub4_Sub10.anInt3049 ^ 0xffffffff)) {
class38_sub7_sub2 = Client.myPlayer;
} else {
class38_sub7_sub2 = Class23_Sub4_Sub2.aClass38_Sub7_Sub2Array2932[i_7_];
}
if (class38_sub7_sub2 != null) {
class38_sub7_sub2.currentFrame = 0;
class38_sub7_sub2.graphicHeight = i_6_;
class38_sub7_sub2.gfxId = i_3_;
class38_sub7_sub2.currentAnim = 0;
class38_sub7_sub2.gfxDelay = Client.currentTime - -i_4_;
if ((Client.currentTime ^ 0xffffffff) > (class38_sub7_sub2.gfxDelay ^ 0xffffffff)) {
class38_sub7_sub2.currentFrame = -1;
}
if ((class38_sub7_sub2.gfxId ^ 0xffffffff) == -65536) {
class38_sub7_sub2.gfxId = -1;
}
}
}
} else {
int i_8_ = 0xffff & i_5_;
NPC class38_sub7_sub1 = Client.npcArray[i_8_];
if (class38_sub7_sub1 != null) {
class38_sub7_sub1.gfxDelay = i_4_ + Client.currentTime;
class38_sub7_sub1.currentFrame = 0;
class38_sub7_sub1.gfxId = i_3_;
if ((Client.currentTime ^ 0xffffffff) > (class38_sub7_sub1.gfxDelay ^ 0xffffffff)) {
class38_sub7_sub1.currentFrame = -1;
}
class38_sub7_sub1.currentAnim = 0;
if ((class38_sub7_sub1.gfxId ^ 0xffffffff) == -65536) {
class38_sub7_sub1.gfxId = -1;
}
class38_sub7_sub1.graphicHeight = i_6_;
}
}
} else {
int i_9_ = (0x398ba994 & i_5_) >> 28;
int i_10_ = -Class58.baseY + (i_5_ & 0x3fff);
int i_11_ = (i_5_ >> 14 & 0x3fff) + -Class42.ba***;
if (i_11_ >= 0 && (i_10_ ^ 0xffffffff) <= -1 && i_11_ < 104 && i_10_ < 104) {
i_11_ = 128 * i_11_ - -64;
i_10_ = 64 + i_10_ * 128;
Class38_Sub6 class38_sub6 = new Class38_Sub6(i_3_, i_9_, i_11_, i_10_, Class23_Sub4_Sub22.method359(i_9_, i_11_, i_10_, (byte) -96) - i_6_, i_4_, Client.currentTime);
StaticMembers.aClass89_4066.method1439(69, new Class23_Sub13_Sub9(class38_sub6));
}
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 125 || Packets.packetID == 238 || Packets.packetID == 198 || Packets.packetID == 74 || Packets.packetID == 16 || Packets.packetID == 214 || Packets.packetID == 188 || Packets.packetID == 134 || Packets.packetID == 138 || Packets.packetID == 60 || Packets.packetID == 77 || Packets.packetID == 24) {
Packets.handleWorldPacket(-89);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 10) {
if (Class23_Sub4_Sub2.updateNPCsPacketSize == 0) {
Class23_Sub4_Sub7.aClass16_3022 = Class94.aClass16_1599;
} else {
Class23_Sub4_Sub7.aClass16_3022 = Packets.inStream.readString();
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 76) {
int i_12_ = Packets.inStream.getWordBigEndian();
int i_13_ = Packets.inStream.getLEInt();
int i_14_ = Packets.inStream.getWordBigEndian();
int i_15_ = Packets.inStream.getWordBigEndian();
RSInterface rSInterface = Class23_Sub24.method905(i_13_, (byte) 111);
if ((i_12_ ^ 0xffffffff) != (rSInterface.modelRotationX ^ 0xffffffff) || (i_15_ ^ 0xffffffff) != (rSInterface.modelRotationY ^ 0xffffffff) || (i_14_ ^ 0xffffffff) != (rSInterface.modelZoom ^ 0xffffffff)) {
rSInterface.modelRotationX = i_12_;
rSInterface.modelRotationY = i_15_;
rSInterface.modelZoom = i_14_;
Class91.method1450((byte) 29, rSInterface);
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 87) {
Client.updateNPCs();
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 229) {
int i_16_ = Packets.inStream.getWordBigEndian();
if ((i_16_ ^ 0xffffffff) == -65536) {
i_16_ = -1;
}
int i_17_ = Packets.inStream.getLEInt();
int i_18_ = Packets.inStream.getUnsignedByteS();
int i_19_ = (0x36caa3aa & i_17_) >> 28;
int i_20_ = i_17_ >> 14 & 0x3fff;
int i_21_ = i_18_ >> 2;
int i_22_ = i_17_ & 0x3fff;
int i_23_ = 0x3 & i_18_;
i_22_ -= Class58.baseY;
i_20_ -= Class42.ba***;
int i_24_ = Class75.anIntArray1375[i_21_];
Class23_Sub19.method879(90, i_24_, i_20_, i_22_, i_16_, i_21_, i_19_, i_23_);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 213) {
long l = Packets.inStream.getLong();
Packets.inStream.readSignedByte();
long l_25_ = Packets.inStream.getLong();
long l_26_ = (long) Packets.inStream.getUnsignedShort();
long l_27_ = (long) Packets.inStream.getMediumInt();
long l_28_ = l_27_ + (l_26_ << 32);
int i_29_ = Packets.inStream.getUnsignedByte();
int i_30_ = Packets.inStream.getUnsignedShort();
boolean bool = false;
while_25_:
do {
for (int i_31_ = 0; i_31_ < 100; i_31_++) {
if (l_28_ == Class29.aLongArray467[i_31_]) {
bool = true;
break while_25_;
}
}
if (i_29_ <= 1) {
for (int i_32_ = 0; (i_32_ ^ 0xffffffff) > (Class25.ignoreCount ^ 0xffffffff); i_32_++) {
if (Class23_Sub4_Sub30.ignoreListAsLongs[i_32_] == l) {
bool = true;
break;
}
}
}
} while (false);
if (!bool && Class23_Sub4_Sub39.anInt3519 == 0) {
Class29.aLongArray467[Class47.anInt740] = l_28_;
Class47.anInt740 = (Class47.anInt740 + 1) % 100;
JagexString jagexString = NPC.method1094(i_30_, 0).readFromStream(Packets.inStream, 0);
if (i_29_ != 2 && i_29_ != 3) {
if (i_29_ != 1) {
Class89.pushMessage(20, i_30_, jagexString, Class83.method1376(0, l_25_).method154((byte) 59), Class83.method1376(-1, l).method154((byte) 59));
} else {
Class89.pushMessage(20, i_30_, jagexString, Class83.method1376(-1, l_25_).method154((byte) 59), Class23_Sub4_Sub14.getName(new JagexString[] { Class33.aClass16_519, Class83.method1376(-1, l).method154((byte) 59) },0));
}
} else {
Class89.pushMessage(20, i_30_, jagexString, Class83.method1376(-1, l_25_).method154((byte) 59), Class23_Sub4_Sub14.getName(new JagexString[] { Class23_Sub7.aClass16_2203, Class83.method1376(-1, l).method154((byte) 59) }, 0));
}
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 34) {
int i_33_ = Class23_Sub4_Sub2.updateNPCsPacketSize + Packets.inStream.position;
int i_34_ = Packets.inStream.getUnsignedShort();
int i_35_ = Packets.inStream.getUnsignedShort();
if ((Class69.anInt1218 ^ 0xffffffff) != (i_34_ ^ 0xffffffff)) {
Class69.anInt1218 = i_34_;
Class6.method76(15532, Class69.anInt1218);
NPCDefinitions.method821((byte) -60);
Class23_Sub4_Sub12.method313(Class69.anInt1218, true);
for (int i_36_ = 0; i_36_ < 100; i_36_++)
Class23_Sub4_Sub23_Sub1.aBooleanArray4478[i_36_] = true;
}
while (i_35_-- > 0) {
int i_37_ = Packets.inStream.getInt();
int i_38_ = Packets.inStream.getUnsignedShort();
int i_39_ = Packets.inStream.getUnsignedByte();
Class23_Sub25 class23_sub25 = (Class23_Sub25) Class36.anOa565.findNodeByID((long) i_37_);
if (class23_sub25 != null && (class23_sub25.anInt2456 ^ 0xffffffff) != (i_38_ ^ 0xffffffff)) {
RSApplet.method27(true, -28361, class23_sub25);
class23_sub25 = null;
}
if (class23_sub25 == null) {
class23_sub25 = StaticMembers.a(i_39_, i_38_, i_37_, 0);
}
class23_sub25.aBoolean2462 = true;
}
for (Class23_Sub25 class23_sub25 = (Class23_Sub25) Class36.anOa565.getANode(); class23_sub25 != null; class23_sub25 = (Class23_Sub25) Class36.anOa565.getANode()) {
if (class23_sub25.aBoolean2462) {
class23_sub25.aBoolean2462 = false;
} else {
RSApplet.method27(true, -28361, class23_sub25);
}
}
Class47.anOa722 = new NodeCache(512);
while (Packets.inStream.position < i_33_) {
int i_40_ = Packets.inStream.getInt();
int i_41_ = Packets.inStream.getUnsignedShort();
int i_42_ = Packets.inStream.getUnsignedShort();
int i_43_ = Packets.inStream.getInt();
for (int i_44_ = i_41_; (i_42_ ^ 0xffffffff) <= (i_44_ ^ 0xffffffff); i_44_++) {
long l = (long) i_44_ + ((long) i_40_ << 32);
Class47.anOa722.removeFromCache(new Class23_Sub20(i_43_), l);
}
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 47) {
StaticMembers.anInt4077 = 0;
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 99) {
int i_45_ = Packets.inStream.getLEInt();
JagexString jagexString = Packets.inStream.readString();
RSInterface rSInterface = Class23_Sub24.method905(i_45_, (byte) 111);
if (!jagexString.method183(rSInterface.message, (byte) -49)) {
rSInterface.message = jagexString;
Class91.method1450((byte) 29, rSInterface);
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 52) {
Class23_Sub4_Sub7.anInt3026 = Packets.inStream.getUnsignedByte();
JS5.anInt1808 = Packets.inStream.getUnsignedNegativeByte();
while ((Packets.inStream.position ^ 0xffffffff) > (Class23_Sub4_Sub2.updateNPCsPacketSize ^ 0xffffffff)) {
Packets.packetID = Packets.inStream.getUnsignedByte();
Packets.handleWorldPacket(66);
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 13) {
StaticMembers.aBoolean2159 = true;
Class23_Sub13_Sub10.anInt3868 = Packets.inStream.getUnsignedByte();
Class23_Sub13_Sub14.anInt4006 = Packets.inStream.getUnsignedByte();
Class23_Sub4_Sub24.anInt3300 = Packets.inStream.getUnsignedShort();
Class23_Sub10_Sub2.anInt3625 = Packets.inStream.getUnsignedByte();
Class23_Sub4_Sub31.anInt3396 = Packets.inStream.getUnsignedByte();
if (Class23_Sub4_Sub31.anInt3396 >= 100) {
int i_46_ = 64 + Class23_Sub13_Sub10.anInt3868 * 128;
int i_47_ = Class23_Sub13_Sub14.anInt4006 * 128 - -64;
int i_48_ = Class23_Sub4_Sub22.method359(ItemDefinitions.anInt3916, i_46_, i_47_, (byte) -38) + -Class23_Sub4_Sub24.anInt3300;
int i_49_ = -Class23_Sub13_Sub1.anInt3673 + i_46_;
int i_50_ = i_47_ - Class53.anInt838;
int i_51_ = i_48_ + -Class23_Sub23.anInt2424;
int i_52_ = (int) Math.sqrt((double) (i_49_ * i_49_ + i_50_ * i_50_));
Class23_Sub4_Sub17.anInt3178 = 0x7ff & (int) (325.949 * Math.atan2((double) i_51_, (double) i_52_));
Client.anInt208 = (int) (Math.atan2((double) i_49_, (double) i_50_) * -325.949) & 0x7ff;
if (Class23_Sub4_Sub17.anInt3178 < 128) {
Class23_Sub4_Sub17.anInt3178 = 128;
}
if (Class23_Sub4_Sub17.anInt3178 > 383) {
Class23_Sub4_Sub17.anInt3178 = 383;
}
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 248) {
int i_53_ = Packets.inStream.getLEInt();
int i_54_ = Packets.inStream.getUnsignedShort();
int i_55_ = i_54_ >> 5 & 0x1f;
int i_56_ = 0x1f & i_54_ >> 10;
int i_57_ = 0x1f & i_54_;
int i_58_ = (i_57_ << 3) + (i_55_ << 11) + (i_56_ << 19);
RSInterface rSInterface = Class23_Sub24.method905(i_53_, (byte) 111);
if ((i_58_ ^ 0xffffffff) != (rSInterface.textColor ^ 0xffffffff)) {
rSInterface.textColor = i_58_;
Class91.method1450((byte) 29, rSInterface);
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 183) {
long l = Packets.inStream.getLong();
Packets.inStream.readSignedByte();
long l_59_ = Packets.inStream.getLong();
long l_60_ = (long) Packets.inStream.getUnsignedShort();
long l_61_ = (long) Packets.inStream.getMediumInt();
long l_62_ = (l_60_ << 32) + l_61_;
int i_63_ = Packets.inStream.getUnsignedByte();
boolean bool = false;
while_26_:
do {
for (int i_64_ = 0; i_64_ < 100; i_64_++) {
if (l_62_ == Class29.aLongArray467[i_64_]) {
bool = true;
break while_26_;
}
}
if (i_63_ <= 1) {
if (Class67.anInt1176 == 1 || Class23_Sub4_Sub12.anInt3075 == 1) {
bool = true;
} else {
for (int i_65_ = 0; (Class25.ignoreCount ^ 0xffffffff) < (i_65_ ^ 0xffffffff); i_65_++) {
if ((Class23_Sub4_Sub30.ignoreListAsLongs[i_65_] ^ 0xffffffffffffffffL) == (l ^ 0xffffffffffffffffL)) {
bool = true;
break;
}
}
}
}
} while (false);
if (!bool && Class23_Sub4_Sub39.anInt3519 == 0) {
Class29.aLongArray467[Class47.anInt740] = l_62_;
Class47.anInt740 = (1 + Class47.anInt740) % 100;
JagexString jagexString = Class23_Sub13_Sub8.method674(Class23_Sub24.method900((byte) -80, Packets.inStream).method149(0));
if (i_63_ != 2 && i_63_ != 3) {
if (i_63_ == 1) {
Class78.method1344(Class83.method1376(-1, l_59_).method154((byte) 59), jagexString, 9, Class23_Sub4_Sub14.getName(new JagexString[] { Class33.aClass16_519, Class83.method1376(0, l).method154((byte) 59) }, 0), -1);
} else {
Class78.method1344(Class83.method1376(-1, l_59_).method154((byte) 59), jagexString, 9, Class83.method1376(-1, l).method154((byte) 59), -1);
}
} else {
Class78.method1344(Class83.method1376(0, l_59_).method154((byte) 59), jagexString, 9, Class23_Sub4_Sub14.getName(new JagexString[] { Class23_Sub7.aClass16_2203, Class83.method1376(0, l).method154((byte) 59) }, -85), -1);
}
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 239) {
Client.method36((byte) 102);
int i_66_ = Packets.inStream.method483(37);
int i_67_ = Packets.inStream.getUnsignedByteA();
int i_68_ = Packets.inStream.getUnsignedByteS();
Class51.anIntArray800[i_67_] = i_66_;
Class105_Sub1.anIntArray2871[i_67_] = i_68_;
Class23_Sub27.anIntArray2482[i_67_] = 1;
for (int i_69_ = 0; i_69_ < 98; i_69_++) {
if (i_66_ >= Class36.anIntArray567[i_69_]) {
Class23_Sub27.anIntArray2482[i_67_] = i_69_ - -2;
}
}
Class79.anIntArray1886[Class24.method919(Class89.anInt1524++, 31)] = i_67_;
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 246) {
int i_70_ = Packets.inStream.getNegativeByte();
int i_71_ = Packets.inStream.getUnsignedLEShortA();
StaticMembers.anIntArray1262[i_71_] = i_70_;
if ((Class23_Sub4_Sub26.variousSettings[i_71_] ^ 0xffffffff) != (i_70_ ^ 0xffffffff)) {
Class23_Sub4_Sub26.variousSettings[i_71_] = i_70_;
Client.applyConfigChange(i_71_);
}
Class50.anIntArray780[Class24.method919(31, Class71.anInt1279++)] = i_71_;
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 228) {
int i_72_ = Packets.inStream.getUnsignedLEShortA();
int i_73_ = Packets.inStream.getWordBigEndian();
Class23_Sub4_Sub37.anInt3492 = i_73_;
Class35.anInt550 = i_72_;
Class106.method1576((byte) 93);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 44) {
Class23_Sub4_Sub31.method394(false, -101);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 58) {
JagexString jagexString = Packets.inStream.readString();
Object[] objects = new Object[jagexString.method171(0) - -1];
for (int i_74_ = jagexString.method171(-61) + -1; (i_74_ ^ 0xffffffff) <= -1; i_74_--) {
if (jagexString.method166((byte) 126, i_74_) == 115) {
objects[1 + i_74_] = Packets.inStream.readString();
} else {
objects[i_74_ + 1] = new Integer(Packets.inStream.getInt());
}
}
objects[0] = new Integer(Packets.inStream.getInt());
Class23_Sub9 class23_sub9 = new Class23_Sub9();
class23_sub9.anObjectArray2274 = objects;
Class91.method1452(class23_sub9, (byte) -103);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 114) {
long l = Packets.inStream.getLong();
int i_75_ = Packets.inStream.getUnsignedShort();
byte b = Packets.inStream.readSignedByte();
boolean bool = false;
if ((~0x7fffffffffffffffL & l ^ 0xffffffffffffffffL) != -1L) {
bool = true;
}
if (bool) {
if (Class63.anInt986 == 0) {
Packets.packetID = -1;
return true;
}
l &= 0x7fffffffffffffffL;
boolean bool_76_ = false;
int i_77_;
for (i_77_ = 0; Class63.anInt986 > i_77_; i_77_++) {
if ((Class68.aClass23_Sub19Array1186[i_77_].id ^ 0xffffffffffffffffL) == (l ^ 0xffffffffffffffffL) && Class68.aClass23_Sub19Array1186[i_77_].anInt2376 == i_75_) {
break;
}
}
if ((i_77_ ^ 0xffffffff) > (Class63.anInt986 ^ 0xffffffff)) {
for (/**/; i_77_ < Class63.anInt986 + -1; i_77_++)
Class68.aClass23_Sub19Array1186[i_77_] = Class68.aClass23_Sub19Array1186[i_77_ - -1];
Class63.anInt986--;
Class68.aClass23_Sub19Array1186[Class63.anInt986] = null;
}
} else {
JagexString jagexString = Packets.inStream.readString();
Class23_Sub19 class23_sub19 = new Class23_Sub19();
class23_sub19.id = l;
class23_sub19.aClass16_2382 = Class83.method1376(-1, class23_sub19.id);
class23_sub19.aByte2391 = b;
class23_sub19.aClass16_2379 = jagexString;
class23_sub19.anInt2376 = i_75_;
int i_78_;
for (i_78_ = -1 + Class63.anInt986; (i_78_ ^ 0xffffffff) <= -1; i_78_--) {
int i_79_ = Class68.aClass23_Sub19Array1186[i_78_].aClass16_2382.method151(true, class23_sub19.aClass16_2382);
if (i_79_ == 0) {
Class68.aClass23_Sub19Array1186[i_78_].anInt2376 = i_75_;
Class68.aClass23_Sub19Array1186[i_78_].aByte2391 = b;
Class68.aClass23_Sub19Array1186[i_78_].aClass16_2379 = jagexString;
Packets.packetID = -1;
Class88.anInt1504 = Class23_Sub10_Sub2.anInt3589;
if (l == Class88.aLong1501) {
Class23_Sub4_Sub15.aByte3146 = b;
}
return true;
}
if (i_79_ < 0) {
break;
}
}
if (Class63.anInt986 >= Class68.aClass23_Sub19Array1186.length) {
Packets.packetID = -1;
return true;
}
for (int i_80_ = -1 + Class63.anInt986; (i_80_ ^ 0xffffffff) < (i_78_ ^ 0xffffffff); i_80_--)
Class68.aClass23_Sub19Array1186[i_80_ + 1] = Class68.aClass23_Sub19Array1186[i_80_];
if (Class63.anInt986 == 0) {
Class68.aClass23_Sub19Array1186 = new Class23_Sub19[100];
}
Class68.aClass23_Sub19Array1186[1 + i_78_] = class23_sub19;
Class63.anInt986++;
if (l == Class88.aLong1501) {
Class23_Sub4_Sub15.aByte3146 = b;
}
}
Class88.anInt1504 = Class23_Sub10_Sub2.anInt3589;
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 203) {
Class23_Sub10_Sub2.aShort3603 = (short) Packets.inStream.getWordBigEndian();
if ((Class23_Sub10_Sub2.aShort3603 ^ 0xffffffff) >= -1) {
Class23_Sub10_Sub2.aShort3603 = (short) 1;
}
Class23_Sub4_Sub35.aShort3456 = (short) Packets.inStream.getWordBigEndian();
if ((Class23_Sub4_Sub35.aShort3456 ^ 0xffffffff) < -1) {
if ((Class23_Sub10_Sub2.aShort3598 ^ 0xffffffff) < (Class23_Sub4_Sub35.aShort3456 ^ 0xffffffff)) {
Class23_Sub4_Sub35.aShort3456 = Class23_Sub10_Sub2.aShort3598;
}
} else {
Class23_Sub4_Sub35.aShort3456 = (short) 32767;
}
Class23_Sub10_Sub2.aShort3598 = (short) Packets.inStream.getWordBigEndian();
if ((Class23_Sub10_Sub2.aShort3598 ^ 0xffffffff) >= -1) {
Class23_Sub10_Sub2.aShort3598 = (short) 1;
}
Animable.aShort594 = (short) Packets.inStream.getUnsignedLEShortA();
Packets.packetID = -1;
if ((Animable.aShort594 ^ 0xffffffff) >= -1) {
Animable.aShort594 = (short) 32767;
} else if (Class23_Sub10_Sub2.aShort3603 > Animable.aShort594) {
Animable.aShort594 = Class23_Sub10_Sub2.aShort3603;
}
return true;
}
if (Packets.packetID == 90) {
Class105_Sub1.aClass16_2877 = Packets.inStream.readString();
Class2.method51(Class105_Sub1.aClass16_2877, 0);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 197) {
int i_81_ = Packets.inStream.getWordBigEndian();
int i_82_ = Packets.inStream.getLEInt();
RSInterface rSInterface = Class23_Sub24.method905(i_82_, (byte) 111);
if (rSInterface != null && rSInterface.type == 0) {
if ((-rSInterface.anInt999 + rSInterface.anInt1088 ^ 0xffffffff) > (i_81_ ^ 0xffffffff)) {
i_81_ = rSInterface.anInt1088 + -rSInterface.anInt999;
}
if ((i_81_ ^ 0xffffffff) > -1) {
i_81_ = 0;
}
if ((i_81_ ^ 0xffffffff) != (rSInterface.anInt1083 ^ 0xffffffff)) {
rSInterface.anInt1083 = i_81_;
Class91.method1450((byte) 29, rSInterface);
}
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 150) {
Class88.anInt1504 = Class23_Sub10_Sub2.anInt3589;
long l = Packets.inStream.getLong();
if ((l ^ 0xffffffffffffffffL) == -1L) {
Packets.packetID = -1;
Class68.aClass23_Sub19Array1186 = null;
Class23_Sub4_Sub4.aClass16_2955 = null;
Class23_Sub4_Sub7.aClass16_3007 = null;
Class63.anInt986 = 0;
return true;
}
long l_83_ = Packets.inStream.getLong();
Class23_Sub4_Sub7.aClass16_3007 = Class83.method1376(-1, l_83_);
Class23_Sub4_Sub4.aClass16_2955 = Class83.method1376(0, l);
StaticMembers.aByte4280 = Packets.inStream.readSignedByte();
int i_84_ = Packets.inStream.getUnsignedByte();
if (i_84_ == 255) {
Packets.packetID = -1;
return true;
}
Class63.anInt986 = i_84_;
Class23_Sub19[] class23_sub19s = new Class23_Sub19[100];
for (int i_85_ = 0; (i_85_ ^ 0xffffffff) > (Class63.anInt986 ^ 0xffffffff); i_85_++) {
class23_sub19s[i_85_] = new Class23_Sub19();
class23_sub19s[i_85_].id = Packets.inStream.getLong();
class23_sub19s[i_85_].aClass16_2382 = Class83.method1376(-1, class23_sub19s[i_85_].id);
class23_sub19s[i_85_].anInt2376 = Packets.inStream.getUnsignedShort();
class23_sub19s[i_85_].aByte2391 = Packets.inStream.readSignedByte();
class23_sub19s[i_85_].aClass16_2379 = Packets.inStream.readString();
if (Class88.aLong1501 == class23_sub19s[i_85_].id) {
Class23_Sub4_Sub15.aByte3146 = class23_sub19s[i_85_].aByte2391;
}
}
boolean bool = false;
int i_86_ = Class63.anInt986;
while ((i_86_ ^ 0xffffffff) < -1) {
i_86_--;
bool = true;
for (int i_87_ = 0; i_87_ < i_86_; i_87_++) {
if ((class23_sub19s[i_87_].aClass16_2382.method151(true, class23_sub19s[i_87_ + 1].aClass16_2382) ^ 0xffffffff) < -1) {
bool = false;
Class23_Sub19 class23_sub19 = class23_sub19s[i_87_];
class23_sub19s[i_87_] = class23_sub19s[i_87_ - -1];
class23_sub19s[i_87_ + 1] = class23_sub19;
}
}
if (bool) {
break;
}
}
Packets.packetID = -1;
Class68.aClass23_Sub19Array1186 = class23_sub19s;
return true;
}
if (Packets.packetID == 75) {
Class23_Sub13_Sub5.anInt3722 = Packets.inStream.getUnsignedByte();
Class87_Sub3.anInt2820 = Packets.inStream.getUnsignedByte();
StaticMembers.anInt4368 = Packets.inStream.getUnsignedByte();
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 39) {
StaticMembers.aBoolean2159 = false;
for (int i_88_ = 0; i_88_ < 5; i_88_++)
StaticMembers.aBooleanArray3531[i_88_] = false;
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 221) {
for (int i_89_ = 0; (Class23_Sub4_Sub2.aClass38_Sub7_Sub2Array2932.length ^ 0xffffffff) < (i_89_ ^ 0xffffffff); i_89_++) {
if (Class23_Sub4_Sub2.aClass38_Sub7_Sub2Array2932[i_89_] != null) {
Class23_Sub4_Sub2.aClass38_Sub7_Sub2Array2932[i_89_].animation = -1;
}
}
for (int i_90_ = 0; (i_90_ ^ 0xffffffff) > (Client.npcArray.length ^ 0xffffffff); i_90_++) {
if (Client.npcArray[i_90_] != null) {
Client.npcArray[i_90_].animation = -1;
}
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 202) {
int i_91_ = Packets.inStream.getWordBigEndian();
int i_92_ = Packets.inStream.getUnsignedShortA();
int i_93_ = Packets.inStream.method483(56);
RSInterface rSInterface = Class23_Sub24.method905(i_93_, (byte) 111);
Packets.packetID = -1;
rSInterface.anInt1090 = (i_92_ << 16) - -i_91_;
return true;
}
if (Packets.packetID == 6) {
int i_94_ = Packets.inStream.readDWord();
int i_95_ = Packets.inStream.getUnsignedByteA();
int i_96_ = Packets.inStream.getWordBigEndian();
Class23_Sub25 class23_sub25 = (Class23_Sub25) Class36.anOa565.findNodeByID((long) i_94_);
if (class23_sub25 != null) {
RSApplet.method27(class23_sub25.anInt2456 != i_96_, 0, class23_sub25);
}
StaticMembers.a(i_95_, i_96_, i_94_, -22002);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 1) {
Class106.anInt1819 = Packets.inStream.getUnsignedByte();
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 102) {
for (int i_97_ = 0; Class23_Sub4_Sub26.variousSettings.length > i_97_; i_97_++) {
if ((Class23_Sub4_Sub26.variousSettings[i_97_] ^ 0xffffffff) != (StaticMembers.anIntArray1262[i_97_] ^ 0xffffffff)) {
Class23_Sub4_Sub26.variousSettings[i_97_] = StaticMembers.anIntArray1262[i_97_];
Client.applyConfigChange(i_97_);
Class50.anIntArray780[Class24.method919(Class71.anInt1279++, 31)] = i_97_;
}
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 81) {
Class25.ignoreCount = Class23_Sub4_Sub2.updateNPCsPacketSize / 8;
for (int i_98_ = 0; (i_98_ ^ 0xffffffff) > (Class25.ignoreCount ^ 0xffffffff); i_98_++) {
Class23_Sub4_Sub30.ignoreListAsLongs[i_98_] = Packets.inStream.getLong();
RSApplet.aClass16Array10[i_98_] = Class83.method1376(-1, Class23_Sub4_Sub30.ignoreListAsLongs[i_98_]);
}
Packets.packetID = -1;
Class75.anInt1372 = Class23_Sub10_Sub2.anInt3589;
return true;
}
if (Packets.packetID == 33) {
int i_99_ = Packets.inStream.getUnsignedByte();
if (Packets.inStream.getUnsignedByte() == 0) {
Class23_Sub13_Sub19.aClass90Array4135[i_99_] = new Class90();
} else {
Packets.inStream.position--;
Class23_Sub13_Sub19.aClass90Array4135[i_99_] = new Class90(Packets.inStream);
}
Packets.packetID = -1;
Class39.anInt606 = Class23_Sub10_Sub2.anInt3589;
return true;
}
if (Packets.packetID == 104) {
int i_100_ = Packets.inStream.getInt();
int i_101_ = Packets.inStream.getUnsignedShort();
if ((i_100_ ^ 0xffffffff) > 69999) {
i_101_ += 32768;
}
RSInterface class64;
if ((i_100_ ^ 0xffffffff) > -1) {
class64 = null;
} else {
class64 = Class23_Sub24.method905(i_100_, (byte) 111);
}
if (class64 != null) {
for (int i_102_ = 0; i_102_ < class64.invStackSizes.length; i_102_++) {
class64.invStackSizes[i_102_] = 0;
class64.inv[i_102_] = 0;
}
}
Class90.method1442(i_101_, 1);
int i_103_ = Packets.inStream.getUnsignedShort();
for (int i_104_ = 0; (i_104_ ^ 0xffffffff) > (i_103_ ^ 0xffffffff); i_104_++) {
int i_105_ = Packets.inStream.getUnsignedLEShortA();
int i_106_ = Packets.inStream.getUnsignedByte();
if (i_106_ == 255) {
i_106_ = Packets.inStream.getInt();
}
if (class64 != null && (class64.invStackSizes.length ^ 0xffffffff) < (i_104_ ^ 0xffffffff)) {
class64.invStackSizes[i_104_] = i_105_;
class64.inv[i_104_] = i_106_;
}
Class23_Sub4_Sub3.method282(i_104_, i_106_, i_105_ + -1, i_101_, -44);
}
if (class64 != null) {
Class91.method1450((byte) 29, class64);
}
Client.method36((byte) 102);
Class82.anIntArray1454[Class24.method919(31, Class65.anInt1159++)] = Class24.method919(32767, i_101_);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 148) {
if (Class69.anInt1218 != -1) {
Class23_Sub13_Sub13.method757(Class69.anInt1218, 0, false);
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 67) {
int i_107_ = Packets.inStream.getUnsignedLEShortA();
int i_108_ = Packets.inStream.getLEInt();
RSInterface rSInterface = Class23_Sub24.method905(i_108_, (byte) 111);
if (i_107_ == 65535) {
i_107_ = -1;
}
if (rSInterface.mediaType != 1 || (i_107_ ^ 0xffffffff) != (rSInterface.mediaID ^ 0xffffffff)) {
rSInterface.mediaID = i_107_;
rSInterface.mediaType = 1;
Class91.method1450((byte) 29, rSInterface);
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 19) {
int i_109_ = Packets.inStream.readDWord();
boolean bool = Packets.inStream.getUnsignedByte() == 1;
RSInterface rSInterface = Class23_Sub24.method905(i_109_, (byte) 111);
if (!rSInterface.aBoolean1135 == bool) {
rSInterface.aBoolean1135 = bool;
Class91.method1450((byte) 29, rSInterface);
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 92) {
long l = Packets.inStream.getLong();
int i_110_ = Packets.inStream.getUnsignedShort();
JagexString jagexString = NPC.method1094(i_110_, 1).readFromStream(Packets.inStream, 0);
Class89.pushMessage(19, i_110_, jagexString, null, Class83.method1376(-1, l).method154((byte) 59));
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 174) {
Client.method36((byte) 102);
Class36.anInt569 = Packets.inStream.getShort();
Class88.anInt1499 = Class23_Sub10_Sub2.anInt3589;
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 222) {
int i_111_ = Packets.inStream.getUnsignedShort();
int i_112_ = Packets.inStream.getUnsignedByteA();
if (i_112_ != 1) {
if (i_112_ == 2) {
Class23_Sub4_Sub22.method355((byte) -94);
System.gc();
Class103.method1521(25,0);
}
} else {
Class23_Sub13_Sub1.method603();
for (int i_113_ = 0; i_113_ < 4; i_113_++)
Class4.clipping[i_113_].method1298(118);
System.gc();
}
Class69.anInt1218 = i_111_;
Class6.method76(15532, i_111_);
NPCDefinitions.method821((byte) -60);
Class23_Sub4_Sub12.method313(Class69.anInt1218, true);
for (int i_114_ = 0; i_114_ < 100; i_114_++)
Class23_Sub4_Sub23_Sub1.aBooleanArray4478[i_114_] = true;
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 107) {
int i_115_ = Packets.inStream.getUnsignedByte();
int i_116_ = Packets.inStream.getUnsignedByte();
int i_117_ = Packets.inStream.getUnsignedByte();
int i_118_ = Packets.inStream.getUnsignedByte();
int i_119_ = Packets.inStream.getUnsignedShort();
StaticMembers.aBooleanArray3531[i_115_] = true;
Class38_Sub5.anIntArray2597[i_115_] = i_116_;
Class79.anIntArray1890[i_115_] = i_117_;
Class78_Sub2.anIntArray2768[i_115_] = i_118_;
Class23_Sub4_Sub14.anIntArray3128[i_115_] = i_119_;
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 50) {
Class23_Sub13_Sub10.method700(0);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 182) {
//place map marker
int drawType = Packets.inStream.getUnsignedByte();
int i_121_ = drawType >> 6;
EntityMarker marker = new EntityMarker();
marker.mapMarkerDrawType = 0x3f & drawType;
marker.anInt205 = Packets.inStream.getUnsignedByte();
if ((marker.anInt205 ^ 0xffffffff) <= -1 && marker.anInt205 < StaticMembers.aClass23_Sub13_Sub10Array3718.length) {
if (marker.mapMarkerDrawType == 1 || marker.mapMarkerDrawType == 10) {
marker.entityTargetIndicated = Packets.inStream.getUnsignedShort();
Packets.inStream.position += 3;
} else if (marker.mapMarkerDrawType >= 2 && marker.mapMarkerDrawType <= 6) {
if (marker.mapMarkerDrawType == 2) {
marker.markerDrawX = 64;
marker.markerDrawY = 64;
}
if (marker.mapMarkerDrawType == 3) {
marker.markerDrawX = 0;
marker.markerDrawY = 64;
}
if (marker.mapMarkerDrawType == 4) {
marker.markerDrawY = 64;
marker.markerDrawX = 128;
}
if (marker.mapMarkerDrawType == 5) {
marker.markerDrawX = 64;
marker.markerDrawY = 0;
}
if (marker.mapMarkerDrawType == 6) {
marker.markerDrawX = 64;
marker.markerDrawY = 128;
}
marker.mapMarkerDrawType = 2;
marker.indicatorDrawX = Packets.inStream.getUnsignedShort();
marker.indicatorDrawY = Packets.inStream.getUnsignedShort();
marker.drawOffset = Packets.inStream.getUnsignedByte();
}
marker.anInt213 = Packets.inStream.getUnsignedShort();
if ((marker.anInt213 ^ 0xffffffff) == -65536) {
marker.anInt213 = -1;
}
Class23_Sub27.aClass10Array2488[i_121_] = marker;
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 161) {
for (int i_122_ = 0; (i_122_ ^ 0xffffffff) > (Class23_Sub10_Sub2.anInt3604 ^ 0xffffffff); i_122_++) {
Varp class23_sub13_sub6 = Varp.forID(i_122_);
if (class23_sub13_sub6 != null && (class23_sub13_sub6.usage ^ 0xffffffff) == -1) {
StaticMembers.anIntArray1262[i_122_] = 0;
Class23_Sub4_Sub26.variousSettings[i_122_] = 0;
}
}
Client.method36((byte) 102);
Class71.anInt1279 += 32;
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 168) {
int i_123_ = Packets.inStream.getWordBigEndian();
int i_124_ = Packets.inStream.getLEInt();
if (i_123_ == 65535) {
i_123_ = -1;
}
int i_125_ = Packets.inStream.getInt();
RSInterface rSInterface = Class23_Sub24.method905(i_125_, (byte) 111);
if (!rSInterface.aBoolean1017) {
if ((i_123_ ^ 0xffffffff) == 0) {
Packets.packetID = -1;
rSInterface.mediaType = 0;
return true;
}
ItemDefinitions class23_sub13_sub11 = ItemDefinitions.forID(-114, i_123_);
rSInterface.modelZoom = 100 * class23_sub13_sub11.anInt3896 / i_124_;
rSInterface.modelRotationY = class23_sub13_sub11.anInt3947;
rSInterface.mediaType = 4;
rSInterface.mediaID = i_123_;
rSInterface.modelRotationX = class23_sub13_sub11.anInt3891;
Class91.method1450((byte) 29, rSInterface);
} else {
rSInterface.anInt1134 = i_124_;
rSInterface.anInt1122 = i_123_;
ItemDefinitions class23_sub13_sub11 = ItemDefinitions.forID(-57, i_123_);
rSInterface.modelRotationX = class23_sub13_sub11.anInt3891;
rSInterface.anInt1015 = class23_sub13_sub11.anInt3922;
rSInterface.anInt1000 = class23_sub13_sub11.anInt3897;
rSInterface.anInt1074 = class23_sub13_sub11.anInt3899;
rSInterface.modelZoom = class23_sub13_sub11.anInt3896;
if ((rSInterface.anInt1018 ^ 0xffffffff) < -1) {
rSInterface.modelZoom = rSInterface.modelZoom * 32 / rSInterface.anInt1018;
} else if (rSInterface.height > 0) {
rSInterface.modelZoom = rSInterface.modelZoom * 32 / rSInterface.height;
}
rSInterface.modelRotationY = class23_sub13_sub11.anInt3947;
Class91.method1450((byte) 29, rSInterface);
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 11) {
long l = Packets.inStream.getLong();
JagexString jagexString = Class23_Sub13_Sub8.method674(Class23_Sub24.method900((byte) -80, Packets.inStream).method149(1));
Class95.method1468(6, -1, jagexString, Class83.method1376(-1, l).method154((byte) 59));
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 233) {
JS5.anInt1808 = Packets.inStream.getUnsignedByte();
Class23_Sub4_Sub7.anInt3026 = Packets.inStream.getUnsignedNegativeByte();
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 96) {
int i_126_ = Packets.inStream.getInt();
RSInterface rSInterface = Class23_Sub24.method905(i_126_, (byte) 111);
for (int i_127_ = 0; i_127_ < rSInterface.invStackSizes.length; i_127_++) {
rSInterface.invStackSizes[i_127_] = -1;
rSInterface.invStackSizes[i_127_] = 0;
}
Class91.method1450((byte) 29, rSInterface);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 230) {
StaticMembers.aBoolean2159 = true;
JagexString.anInt1950 = Packets.inStream.getUnsignedByte();
Class23_Sub4_Sub22.anInt3262 = Packets.inStream.getUnsignedByte();
Class28.anInt432 = Packets.inStream.getUnsignedShort();
Class59.anInt913 = Packets.inStream.getUnsignedByte();
Class42.anInt660 = Packets.inStream.getUnsignedByte();
if (Class42.anInt660 >= 100) {
Class23_Sub13_Sub1.anInt3673 = 64 + JagexString.anInt1950 * 128;
Class53.anInt838 = 64 + 128 * Class23_Sub4_Sub22.anInt3262;
Class23_Sub23.anInt2424 = Class23_Sub4_Sub22.method359(ItemDefinitions.anInt3916, Class23_Sub13_Sub1.anInt3673, Class53.anInt838, (byte) -89) - Class28.anInt432;
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 124) {
int i_128_ = Packets.inStream.getUnsignedLEShortA();
int i_129_ = Packets.inStream.method483(61);
RSInterface rSInterface = Class23_Sub24.method905(i_129_, (byte) 111);
if ((i_128_ ^ 0xffffffff) == -65536) {
i_128_ = -1;
}
if (rSInterface.mediaType != 2 || i_128_ != rSInterface.mediaID) {
rSInterface.mediaType = 2;
rSInterface.mediaID = i_128_;
Class91.method1450((byte) 29, rSInterface);
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 207) {
Class23_Sub4_Sub15.method326(true);
Packets.packetID = -1;
return false;
}
if (Packets.packetID == 160) {
Class78.aShort1411 = (short) Packets.inStream.getUnsignedShort();
if ((Class78.aShort1411 ^ 0xffffffff) >= -1) {
Class78.aShort1411 = (short) 320;
}
Class48.aShort752 = (short) Packets.inStream.getUnsignedLEShortA();
Packets.packetID = -1;
if (Class48.aShort752 <= 0) {
Class48.aShort752 = (short) 256;
}
return true;
}
if (Packets.packetID == 211) {
Class71_Sub1_Sub1.method1271((byte) -126, Packets.inStream);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 250) {
int i_130_ = Packets.inStream.getLEInt();
int i_131_ = Packets.inStream.getUnsignedLEShortA();
StaticMembers.anIntArray1262[i_131_] = i_130_;
if ((i_130_ ^ 0xffffffff) != (Class23_Sub4_Sub26.variousSettings[i_131_] ^ 0xffffffff)) {
Class23_Sub4_Sub26.variousSettings[i_131_] = i_130_;
Client.applyConfigChange(i_131_);
}
Class50.anIntArray780[Class24.method919(Class71.anInt1279++, 31)] = i_131_;
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 137) {
Class23_Sub4_Sub13.anInt3098 = Packets.inStream.getUnsignedByte();
Packets.packetID = -1;
Class75.anInt1372 = Class23_Sub10_Sub2.anInt3589;
return true;
}
if (Packets.packetID == 212) {
int i_132_ = Packets.inStream.getUnsignedShort();
int i_133_ = Packets.inStream.getUnsignedByte();
if (i_132_ == 65535) {
i_132_ = -1;
}
int i_134_ = Packets.inStream.getUnsignedShort();
Class24.method917(i_133_, i_134_, (byte) 65, i_132_);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 122) {
int i_135_ = Packets.inStream.readDWord();
ItemDefinitions.aClass60_3944 = Class23_Sub4_Sub3.signlink.method101(0, i_135_);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 82) {
int i_136_ = Packets.inStream.getWordBigEndian();
Class39.method1104(false, i_136_);
Class82.anIntArray1454[Class24.method919(31, Class65.anInt1159++)] = Class24.method919(32767, i_136_);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 177) {
Class23_Sub4_Sub31.method394(true, -103);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 191) {
long l = Packets.inStream.getLong();
int i_137_ = Packets.inStream.getUnsignedShort();
int i_138_ = Packets.inStream.getUnsignedByte();
boolean bool = true;
if (l < 0L) {
bool = false;
l &= 0x7fffffffffffffffL;
}
JagexString jagexString = Class23_Sub4_Sub38.aClass16_3509;
if (i_137_ > 0) {
jagexString = Packets.inStream.readString();
}
JagexString class16_139_ = Class83.method1376(-1, l).method154((byte) 59);
for (int i_140_ = 0; (Class45.anInt696 ^ 0xffffffff) < (i_140_ ^ 0xffffffff); i_140_++) {
if (Class68.aLongArray1187[i_140_] == l) {
if (i_137_ != Class23_Sub10_Sub3.anIntArray3658[i_140_]) {
Class23_Sub10_Sub3.anIntArray3658[i_140_] = i_137_;
if (i_137_ > 0) {
Class95.method1468(5, -1, Class23_Sub4_Sub14.getName(new JagexString[] { class16_139_, Class28.aClass16_431 }, -57), Class23_Sub4_Sub38.aClass16_3509);
}
if (i_137_ == 0) {
Class95.method1468(5, 0, Class23_Sub4_Sub14.getName(new JagexString[] { class16_139_, Class36.aClass16_566 }, 0), Class23_Sub4_Sub38.aClass16_3509);
}
}
class16_139_ = null;
Class87_Sub3.aClass16Array2816[i_140_] = jagexString;
Class11.anIntArray229[i_140_] = i_138_;
Class104.aBooleanArray1741[i_140_] = bool;
break;
}
}
boolean bool_141_ = false;
if (class16_139_ != null && Class45.anInt696 < 200) {
Class68.aLongArray1187[Class45.anInt696] = l;
Class23_Sub4_Sub14.aClass16Array3130[Class45.anInt696] = class16_139_;
Class23_Sub10_Sub3.anIntArray3658[Class45.anInt696] = i_137_;
Class87_Sub3.aClass16Array2816[Class45.anInt696] = jagexString;
Class11.anIntArray229[Class45.anInt696] = i_138_;
Class104.aBooleanArray1741[Class45.anInt696] = bool;
Class45.anInt696++;
}
Class75.anInt1372 = Class23_Sub10_Sub2.anInt3589;
int i_142_ = Class45.anInt696;
while ((i_142_ ^ 0xffffffff) < -1) {
i_142_--;
bool_141_ = true;
for (int i_143_ = 0; (i_143_ ^ 0xffffffff) > (i_142_ ^ 0xffffffff); i_143_++) {
if ((Class23_Sub10_Sub3.anIntArray3658[i_143_] ^ 0xffffffff) != (Class19.worldID ^ 0xffffffff) && Class19.worldID == Class23_Sub10_Sub3.anIntArray3658[i_143_ - -1] || (Class23_Sub10_Sub3.anIntArray3658[i_143_] ^ 0xffffffff) == -1 && (Class23_Sub10_Sub3.anIntArray3658[i_143_ - -1] ^ 0xffffffff) != -1) {
bool_141_ = false;
int i_144_ = Class23_Sub10_Sub3.anIntArray3658[i_143_];
Class23_Sub10_Sub3.anIntArray3658[i_143_] = Class23_Sub10_Sub3.anIntArray3658[i_143_ + 1];
Class23_Sub10_Sub3.anIntArray3658[i_143_ - -1] = i_144_;
JagexString class16_145_ = Class87_Sub3.aClass16Array2816[i_143_];
Class87_Sub3.aClass16Array2816[i_143_] = Class87_Sub3.aClass16Array2816[1 + i_143_];
Class87_Sub3.aClass16Array2816[1 + i_143_] = class16_145_;
JagexString class16_146_ = Class23_Sub4_Sub14.aClass16Array3130[i_143_];
Class23_Sub4_Sub14.aClass16Array3130[i_143_] = Class23_Sub4_Sub14.aClass16Array3130[1 + i_143_];
Class23_Sub4_Sub14.aClass16Array3130[i_143_ - -1] = class16_146_;
long l_147_ = Class68.aLongArray1187[i_143_];
Class68.aLongArray1187[i_143_] = Class68.aLongArray1187[1 + i_143_];
Class68.aLongArray1187[1 + i_143_] = l_147_;
int i_148_ = Class11.anIntArray229[i_143_];
Class11.anIntArray229[i_143_] = Class11.anIntArray229[i_143_ + 1];
Class11.anIntArray229[i_143_ - -1] = i_148_;
boolean bool_149_ = Class104.aBooleanArray1741[i_143_];
Class104.aBooleanArray1741[i_143_] = Class104.aBooleanArray1741[1 + i_143_];
Class104.aBooleanArray1741[1 + i_143_] = bool_149_;
}
}
if (bool_141_) {
break;
}
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 247) {
JagexString jagexString = Packets.inStream.readString();
int i_150_ = Packets.inStream.getUnsignedByteA();
int i_151_ = Packets.inStream.getUnsignedByteS();
if (i_150_ >= 1 && i_150_ <= 8) {
if (jagexString.method140(Class23_Sub4_Sub30.aClass16_3378, 40)) {
jagexString = null;
}
Class23_Sub23.aClass16Array2432[i_150_ - 1] = jagexString;
StaticMembers.aBooleanArray2317[i_150_ + -1] = (i_151_ ^ 0xffffffff) == -1;
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 89) {
JagexString jagexString = Packets.inStream.readString();
if (!jagexString.method162(Class57.aClass16_900, 0)) {
if (!jagexString.method162(Class87_Sub1.aClass16_2780, 0)) {
if (!jagexString.method162(JagexString.aClass16_1952, 0)) {
if (!jagexString.method162(ClipMap.aClass16_1294, 0)) {
if (!jagexString.method162(Class47.aClass16_742, 0)) {
if (!jagexString.method162(Canvas_Sub1.aClass16_47, 0)) {
if (!jagexString.method162(Class23_Sub4_Sub23.aClass16_3275, 0)) {
if (jagexString.method162(Class2.aClass16_78, 0)) {
boolean bool = false;
JagexString class16_152_ = jagexString.method148(jagexString.method173(122, StaticMembers.aClass16_4276), 0, true);
long l = class16_152_.longForName(-46);
for (int i_153_ = 0; (i_153_ ^ 0xffffffff) > (Class25.ignoreCount ^ 0xffffffff); i_153_++) {
if (l == Class23_Sub4_Sub30.ignoreListAsLongs[i_153_]) {
bool = true;
break;
}
}
if (!bool && Class23_Sub4_Sub39.anInt3519 == 0) {
Class95.method1468(15, -1, Class23_Sub4_Sub38.aClass16_3509, class16_152_);
}
} else if (!jagexString.method162(Class71_Sub1.aClass16_2728, 0)) {
Class95.method1468(0, -1, jagexString, Class23_Sub4_Sub38.aClass16_3509);
} else {
JagexString class16_154_ = jagexString.method148(jagexString.method173(109, StaticMembers.aClass16_4276), 0, true);
boolean bool = false;
long l = class16_154_.longForName(-27);
for (int i_155_ = 0; (Class25.ignoreCount ^ 0xffffffff) < (i_155_ ^ 0xffffffff); i_155_++) {
if (l == Class23_Sub4_Sub30.ignoreListAsLongs[i_155_]) {
bool = true;
break;
}
}
if (!bool && Class23_Sub4_Sub39.anInt3519 == 0) {
Class95.method1468(16,0, Class23_Sub4_Sub38.aClass16_3509, class16_154_);
}
}
} else {
JagexString class16_156_ = jagexString.method148(jagexString.method173(115, StaticMembers.aClass16_4276), 0, true);
long l = class16_156_.longForName(0);
boolean bool = false;
for (int i_157_ = 0; Class25.ignoreCount > i_157_; i_157_++) {
if (Class23_Sub4_Sub30.ignoreListAsLongs[i_157_] == l) {
bool = true;
break;
}
}
if (!bool && Class23_Sub4_Sub39.anInt3519 == 0) {
Class95.method1468(14, -1, Class23_Sub4_Sub38.aClass16_3509, class16_156_);
}
}
} else {
JagexString class16_158_ = jagexString.method148(jagexString.method173(35, Canvas_Sub1.aClass16_47), 0, true);
if (Class23_Sub4_Sub39.anInt3519 == 0) {
Class95.method1468(13, -1, class16_158_, Class23_Sub4_Sub38.aClass16_3509);
}
}
} else {
JagexString class16_159_ = jagexString.method148(jagexString.method173(91, Class47.aClass16_742), 0, true);
if (Class23_Sub4_Sub39.anInt3519 == 0) {
Class95.method1468(12, -1, class16_159_, Class23_Sub4_Sub38.aClass16_3509);
}
}
} else {
JagexString class16_160_ = jagexString.method148(jagexString.method173(0, ClipMap.aClass16_1294), 0, true);
Class95.method1468(11, -1, class16_160_, Class23_Sub4_Sub38.aClass16_3509);
}
} else {
JagexString class16_161_ = jagexString.method148(jagexString.method173(98, StaticMembers.aClass16_4276), 0, true);
long l = class16_161_.longForName(78);
boolean bool = false;
for (int i_162_ = 0; Class25.ignoreCount > i_162_; i_162_++) {
if ((l ^ 0xffffffffffffffffL) == (Class23_Sub4_Sub30.ignoreListAsLongs[i_162_] ^ 0xffffffffffffffffL)) {
bool = true;
break;
}
}
if (!bool && (Class23_Sub4_Sub39.anInt3519 ^ 0xffffffff) == -1) {
Class95.method1468(10, -1, Class23_Sub4_Sub38.aClass16_3509, class16_161_);
}
}
} else {
JagexString class16_163_ = jagexString.method148(jagexString.method173(114, StaticMembers.aClass16_4276), 0, true);
long l = class16_163_.longForName(0);
boolean bool = false;
for (int i_164_ = 0; (Class25.ignoreCount ^ 0xffffffff) < (i_164_ ^ 0xffffffff); i_164_++) {
if (l == Class23_Sub4_Sub30.ignoreListAsLongs[i_164_]) {
bool = true;
break;
}
}
if (!bool && (Class23_Sub4_Sub39.anInt3519 ^ 0xffffffff) == -1) {
JagexString class16_165_ = jagexString.method148(-9 + jagexString.method171(-61), jagexString.method173(71, StaticMembers.aClass16_4276) - -1, true);
Class95.method1468(8, 0, class16_165_, class16_163_);
}
}
} else {
JagexString class16_166_ = jagexString.method148(jagexString.method173(125, StaticMembers.aClass16_4276), 0, true);
long l = class16_166_.longForName(-113);
boolean bool = false;
for (int i_167_ = 0; (i_167_ ^ 0xffffffff) > (Class25.ignoreCount ^ 0xffffffff); i_167_++) {
if (l == Class23_Sub4_Sub30.ignoreListAsLongs[i_167_]) {
bool = true;
break;
}
}
if (!bool && Class23_Sub4_Sub39.anInt3519 == 0) {
Class95.method1468(4, -1, Class23_Sub13_Sub14.aClass16_4009, class16_166_);
}
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 232) {
long l = Packets.inStream.getLong();
long l_168_ = (long) Packets.inStream.getUnsignedShort();
long l_169_ = (long) Packets.inStream.getMediumInt();
int i_170_ = Packets.inStream.getUnsignedByte();
boolean bool = false;
long l_171_ = l_169_ + (l_168_ << 32);
while_27_:
do {
for (int i_172_ = 0; i_172_ < 100; i_172_++) {
if (Class29.aLongArray467[i_172_] == l_171_) {
bool = true;
break while_27_;
}
}
if (i_170_ <= 1) {
if (Class67.anInt1176 == 1 || Class23_Sub4_Sub12.anInt3075 == 1) {
bool = true;
} else {
for (int i_173_ = 0; i_173_ < Class25.ignoreCount; i_173_++) {
if ((Class23_Sub4_Sub30.ignoreListAsLongs[i_173_] ^ 0xffffffffffffffffL) == (l ^ 0xffffffffffffffffL)) {
bool = true;
break;
}
}
}
}
} while (false);
if (!bool && (Class23_Sub4_Sub39.anInt3519 ^ 0xffffffff) == -1) {
Class29.aLongArray467[Class47.anInt740] = l_171_;
Class47.anInt740 = (Class47.anInt740 + 1) % 100;
JagexString jagexString = Class23_Sub13_Sub8.method674(Class23_Sub24.method900((byte) -80, Packets.inStream).method149(1));
if (i_170_ != 2 && i_170_ != 3) {
if (i_170_ != 1) {
Class95.method1468(3, -1, jagexString, Class83.method1376(0, l).method154((byte) 59));
} else {
Class95.method1468(7, -1, jagexString, Class23_Sub4_Sub14.getName(new JagexString[] { Class33.aClass16_519, Class83.method1376(-1, l).method154((byte) 59) }, -39));
}
} else {
Class95.method1468(7, -1, jagexString, Class23_Sub4_Sub14.getName(new JagexString[] { Class23_Sub7.aClass16_2203, Class83.method1376(-1, l).method154((byte) 59) }, -83));
}
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 130) {
long l = Packets.inStream.getLong();
long l_174_ = (long) Packets.inStream.getUnsignedShort();
long l_175_ = (long) Packets.inStream.getMediumInt();
int i_176_ = Packets.inStream.getUnsignedByte();
int i_177_ = Packets.inStream.getUnsignedShort();
long l_178_ = (l_174_ << 32) + l_175_;
boolean bool = false;
while_28_:
do {
for (int i_179_ = 0; i_179_ < 100; i_179_++) {
if (l_178_ == Class29.aLongArray467[i_179_]) {
bool = true;
break while_28_;
}
}
if (i_176_ <= 1) {
for (int i_180_ = 0; Class25.ignoreCount > i_180_; i_180_++) {
if (Class23_Sub4_Sub30.ignoreListAsLongs[i_180_] == l) {
bool = true;
break;
}
}
}
} while (false);
if (!bool && Class23_Sub4_Sub39.anInt3519 == 0) {
Class29.aLongArray467[Class47.anInt740] = l_178_;
Class47.anInt740 = (Class47.anInt740 + 1) % 100;
JagexString jagexString = NPC.method1094(i_177_, 1).readFromStream(Packets.inStream, 0);
if (i_176_ != 2) {
if (i_176_ != 1) {
Class89.pushMessage(18, i_177_, jagexString, null, Class83.method1376(-1, l).method154((byte) 59));
} else {
Class89.pushMessage(18, i_177_, jagexString, null, Class23_Sub4_Sub14.getName(new JagexString[] { Class33.aClass16_519, Class83.method1376(-1, l).method154((byte) 59) }, -53));
}
} else {
Class89.pushMessage(18, i_177_, jagexString, null, Class23_Sub4_Sub14.getName(new JagexString[] { Class23_Sub7.aClass16_2203, Class83.method1376(0, l).method154((byte) 59) }, -51));
}
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 167) {
int i_181_ = Packets.inStream.getInt();
Class23_Sub25 class23_sub25 = (Class23_Sub25) Class36.anOa565.findNodeByID((long) i_181_);
if (class23_sub25 != null) {
RSApplet.method27(true, -28361, class23_sub25);
}
if (Class23_Sub13_Sub14.aClass64_4007 != null) {
Class91.method1450((byte) 29, Class23_Sub13_Sub14.aClass64_4007);
Class23_Sub13_Sub14.aClass64_4007 = null;
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 103) {
int i_182_ = Packets.inStream.getUnsignedByteS();
int i_183_ = Packets.inStream.getUnsignedShortA();
int i_184_ = Packets.inStream.getWordBigEndian();
NPC class38_sub7_sub1 = Client.npcArray[i_184_];
if (class38_sub7_sub1 != null) {
Class57.appendNPCAnimationRequest(i_183_, class38_sub7_sub1, i_182_, -1);
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 64) {
int i_185_ = Packets.inStream.getShort();
int i_186_ = Packets.inStream.getInt();
int i_187_ = Packets.inStream.getShort();
RSInterface rSInterface = Class23_Sub24.method905(i_186_, (byte) 111);
rSInterface.aByte1151 = (byte) 0;
rSInterface.anInt1120 = rSInterface.anInt1124 = i_187_;
rSInterface.anInt1126 = rSInterface.anInt1097 = i_185_;
rSInterface.aByte1142 = (byte) 0;
Class91.method1450((byte) 29, rSInterface);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 147) {
Class87.aShort1484 = (short) Packets.inStream.getUnsignedLEShortA();
if (Class87.aShort1484 <= 0) {
Class87.aShort1484 = (short) 256;
}
Class23_Sub13_Sub12.aShort3971 = (short) Packets.inStream.getWordBigEndian();
if ((Class23_Sub13_Sub12.aShort3971 ^ 0xffffffff) >= -1) {
Class23_Sub13_Sub12.aShort3971 = (short) 205;
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 126) {
int i_188_ = Packets.inStream.readDWord();
RSInterface rSInterface = Class23_Sub24.method905(i_188_, (byte) 111);
rSInterface.mediaType = 3;
rSInterface.mediaID = Client.myPlayer.aClass51_4393.getMediaID(64);
Class91.method1450((byte) 29, rSInterface);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 110) {
int i_189_ = Packets.inStream.getUnsignedByteA();
int i_190_ = Packets.inStream.getUnsignedByte();
int i_191_ = Packets.inStream.getUnsignedByteS();
ItemDefinitions.anInt3916 = i_189_ >> 1;
Client.myPlayer.updatePosition(i_190_, (i_189_ & 0x1) == 1, i_191_);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 159) {
int i_192_ = Packets.inStream.getInt();
int i_193_ = Packets.inStream.getUnsignedShort();
if (i_192_ < -70000) {
i_193_ += 32768;
}
RSInterface rSInterface;
if (i_192_ >= 0) {
rSInterface = Class23_Sub24.method905(i_192_, (byte) 111);
} else {
rSInterface = null;
}
while (Class23_Sub4_Sub2.updateNPCsPacketSize > Packets.inStream.position) {
int i_194_ = Packets.inStream.getUnsignedSmart();
int i_195_ = Packets.inStream.getUnsignedShort();
int i_196_ = 0;
if ((i_195_ ^ 0xffffffff) != -1) {
i_196_ = Packets.inStream.getUnsignedByte();
if (i_196_ == 255) {
i_196_ = Packets.inStream.getInt();
}
}
if (rSInterface != null && (i_194_ ^ 0xffffffff) <= -1 && (rSInterface.invStackSizes.length ^ 0xffffffff) < (i_194_ ^ 0xffffffff)) {
rSInterface.invStackSizes[i_194_] = i_195_;
rSInterface.inv[i_194_] = i_196_;
}
Class23_Sub4_Sub3.method282(i_194_, i_196_, i_195_ - 1, i_193_, 68);
}
if (rSInterface != null) {
Class91.method1450((byte) 29, rSInterface);
}
Client.method36((byte) 102);
Class82.anIntArray1454[Class24.method919(31, Class65.anInt1159++)] = Class24.method919(32767, i_193_);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 146) {
int i_197_ = Packets.inStream.getInt();
int i_198_ = Packets.inStream.getInt();
Class23_Sub25 class23_sub25 = (Class23_Sub25) Class36.anOa565.findNodeByID((long) i_197_);
Class23_Sub25 class23_sub25_199_ = (Class23_Sub25) Class36.anOa565.findNodeByID((long) i_198_);
if (class23_sub25_199_ != null) {
RSApplet.method27(class23_sub25 == null || class23_sub25.anInt2456 != class23_sub25_199_.anInt2456, -28361, class23_sub25_199_);
}
if (class23_sub25 != null) {
class23_sub25.unlink();
Class36.anOa565.removeFromCache(class23_sub25, (long) i_198_);
}
RSInterface rSInterface = Class23_Sub24.method905(i_197_, (byte) 111);
if (rSInterface != null) {
Class91.method1450((byte) 29, rSInterface);
}
rSInterface = Class23_Sub24.method905(i_198_, (byte) 111);
if (rSInterface != null) {
Class91.method1450((byte) 29, rSInterface);
}
if (Class69.anInt1218 != -1) {
Class23_Sub13_Sub13.method757(Class69.anInt1218, 1, false);
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 118) {
JS5.anInt1808 = Packets.inStream.getUnsignedByteS();
Class23_Sub4_Sub7.anInt3026 = Packets.inStream.getUnsignedByteS();
for (int i_200_ = Class23_Sub4_Sub7.anInt3026; i_200_ < 8 + Class23_Sub4_Sub7.anInt3026; i_200_++) {
for (int i_201_ = JS5.anInt1808; JS5.anInt1808 - -8 > i_201_; i_201_++) {
if (Class82.aClass89ArrayArrayArray1453[ItemDefinitions.anInt3916][i_200_][i_201_] != null) {
Class82.aClass89ArrayArrayArray1453[ItemDefinitions.anInt3916][i_200_][i_201_] = null;
Class44.method1129(i_200_, i_201_, (byte) 119);
}
}
}
for (Class23_Sub23 class23_sub23 = (Class23_Sub23) Class8.aClass89_178.method1437(79); class23_sub23 != null; class23_sub23 = (Class23_Sub23) Class8.aClass89_178.method1431((byte) -89)) {
if ((Class23_Sub4_Sub7.anInt3026 ^ 0xffffffff) >= (class23_sub23.anInt2430 ^ 0xffffffff) && class23_sub23.anInt2430 < Class23_Sub4_Sub7.anInt3026 - -8 && JS5.anInt1808 <= class23_sub23.anInt2433 && (JS5.anInt1808 - -8 ^ 0xffffffff) < (class23_sub23.anInt2433 ^ 0xffffffff) && ItemDefinitions.anInt3916 == class23_sub23.anInt2423) {
class23_sub23.anInt2437 = 0;
}
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 7) {
Class2.method50(Class23_Sub4_Sub2.updateNPCsPacketSize, Packets.inStream, 116, Class23_Sub4_Sub3.signlink);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 178) {
int i_202_ = Packets.inStream.readDWord();
int i_203_ = Packets.inStream.getInt();
int i_204_ = Packets.inStream.getUnsignedLEShortA();
if ((i_204_ ^ 0xffffffff) == -65536) {
i_204_ = -1;
}
int i_205_ = Packets.inStream.getWordBigEndian();
if ((i_205_ ^ 0xffffffff) == -65536) {
i_205_ = -1;
}
for (int i_206_ = i_204_; (i_206_ ^ 0xffffffff) >= (i_205_ ^ 0xffffffff); i_206_++) {
long l = ((long) i_202_ << 32) + (long) i_206_;
Node node = Class47.anOa722.findNodeByID(l);
if (node != null) {
node.unlink();
}
Class47.anOa722.removeFromCache(new Class23_Sub20(i_203_), l);
}
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 172) {
int i_207_ = Packets.inStream.getUnsignedShortA();
if ((i_207_ ^ 0xffffffff) == -65536) {
i_207_ = -1;
}
Class23_Sub13_Sub2.method610(i_207_, (byte) 106);
Packets.packetID = -1;
return true;
}
if (Packets.packetID == 132) {
int i_208_ = Packets.inStream.read3Bytes();
int i_209_ = Packets.inStream.getUnsignedShort();
if (i_209_ == 65535) {
i_209_ = -1;
}
Class36.method990((byte) 106, i_208_, i_209_);
Packets.packetID = -1;
return true;
}
Class26.reportClientError(95, null, "T1 - " + Packets.packetID + "," + Packets.packetSize + "," + Class25.anInt379 + " - " + Class23_Sub4_Sub2.updateNPCsPacketSize);
Class23_Sub4_Sub15.method326(true);
return true;
}