Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 96.61 KB | None | 0 0
  1. /* FloatBuffer - Decompiled by JODE
  2. *
  3. */
  4. import jaclib.memory.Stream;
  5.  
  6. import java.awt.Desktop;
  7. import java.io.IOException;
  8. import java.net.URI;
  9.  
  10. public class PacketParser extends Buffer {
  11. static int anInt9379;
  12. static int anInt9380;
  13. static int anInt9381;
  14. static int anInt9382;
  15. static int anInt9383;
  16. static int anInt9384;
  17. /*synthetic*/static Class<?> aClass9385;
  18.  
  19. static final void method2247(int i, Node_Sub19 node_sub19) {
  20. anInt9379++;
  21. if (Class175.aClass261ArrayArrayArray2099 != null) {
  22. Interface19 interface19 = null;
  23. if ((node_sub19.anInt7166 ^ 0xffffffff) == -1) {
  24. interface19 = (Interface19) Node_Sub38_Sub12.method2830(node_sub19.anInt7165, node_sub19.anInt7171, node_sub19.anInt7161);
  25. }
  26. if ((node_sub19.anInt7166 ^ 0xffffffff) == -2) {
  27. interface19 = (Interface19) CacheNode_Sub8.method2320(node_sub19.anInt7165, node_sub19.anInt7171, node_sub19.anInt7161);
  28. }
  29. if ((node_sub19.anInt7166 ^ 0xffffffff) == -3) {
  30. interface19 = (Interface19) Class262_Sub20.method3203(node_sub19.anInt7165, node_sub19.anInt7171, node_sub19.anInt7161, aClass9385 != null ? aClass9385 : (aClass9385 = method2253("Interface19")));
  31. }
  32. if ((node_sub19.anInt7166 ^ 0xffffffff) == -4) {
  33. interface19 = (Interface19) Class270_Sub1_Sub1.method3303(node_sub19.anInt7165, node_sub19.anInt7171, node_sub19.anInt7161);
  34. }
  35. if (interface19 != null) {
  36. node_sub19.anInt7154 = interface19.method72(-32136);
  37. node_sub19.anInt7164 = interface19.method71(-118);
  38. node_sub19.anInt7170 = interface19.method68(23796);
  39. } else {
  40. node_sub19.anInt7164 = 0;
  41. node_sub19.anInt7154 = -1;
  42. node_sub19.anInt7170 = 0;
  43. }
  44. if (i < 97) {
  45. method2247(-85, null);
  46. }
  47. }
  48. }
  49.  
  50. static final boolean method2248(int i, int i_0_, int i_1_) {
  51. if (i_1_ < 2) {
  52. return false;
  53. }
  54. anInt9380++;
  55. return (Class73.method749((byte) -65, i, i_0_) | (0x2000 & i ^ 0xffffffff) != -1 | Class214.method2060(i, i_0_, 101)) & Class147.method1649(-120, i_0_, i);
  56. }
  57.  
  58. static final boolean method2249(Class123 class123, int i) throws IOException {
  59. anInt9384++;
  60. Class365 class365 = class123.aClass365_1557;
  61. Packet packet = class123.aPacket1570;
  62. if (class365 == null) {
  63. return false;
  64. }
  65. if (class123.incomming_packet == null) {
  66. if (class123.aBoolean1584) {
  67. if (!class365.method4068(1, 91)) {
  68. return false;
  69. }
  70. class365.method4065((byte) -118, class123.aPacket1570.buffer, 1, 0);
  71. class123.anInt1578 = 0;
  72. class123.anInt1575++;
  73. class123.aBoolean1584 = false;
  74. }
  75. packet.offset = 0;
  76. if (packet.method2257(true)) {
  77. if (!class365.method4068(1, 68)) {
  78. return false;
  79. }
  80. class365.method4065((byte) -116, class123.aPacket1570.buffer, 1, 1);
  81. class123.anInt1575++;
  82. class123.anInt1578 = 0;
  83. }
  84. class123.aBoolean1584 = true;
  85. IncommingPacket[] class192s = Class310.method3596((byte) -59);
  86. int i_2_ = packet.readPacket();
  87. if (i_2_ < 0 || class192s.length <= i_2_) {
  88. throw new IOException("invo:" + i_2_ + " ip:" + packet.offset);
  89. }
  90. class123.incomming_packet = class192s[i_2_];
  91. class123.anInt1581 = class123.incomming_packet.anInt2355;
  92. }
  93. if ((class123.anInt1581 ^ 0xffffffff) == 0) {
  94. if (!class365.method4068(1, 126)) {
  95. return false;
  96. }
  97. class365.method4065((byte) -66, packet.buffer, 1, 0);
  98. class123.anInt1581 = packet.buffer[0] & 0xff;
  99. class123.anInt1575++;
  100. class123.anInt1578 = 0;
  101. }
  102. if (class123.anInt1581 == -2) {
  103. if (!class365.method4068(2, 19)) {
  104. return false;
  105. }
  106. class365.method4065((byte) -59, packet.buffer, 2, 0);
  107. packet.offset = 0;
  108. class123.anInt1581 = packet.readUnsignedShort();
  109. class123.anInt1575 += 2;
  110. class123.anInt1578 = 0;
  111. }
  112. if ((class123.anInt1581 ^ 0xffffffff) < -1) {
  113. if (!class365.method4068(class123.anInt1581, 38)) {
  114. return false;
  115. }
  116. packet.offset = 0;
  117. class365.method4065((byte) -88, packet.buffer, class123.anInt1581, 0);
  118. class123.anInt1575 += class123.anInt1581;
  119. class123.anInt1578 = 0;
  120. }
  121. class123.aClass192_1573 = class123.aClass192_1582;
  122. class123.aClass192_1582 = class123.aClass192_1574;
  123. class123.aClass192_1574 = class123.incomming_packet;
  124. if (Class262_Sub21.aClass192_7863 == class123.incomming_packet) {
  125. int i_3_ = packet.readIntLE();
  126. InputStream_Sub2.method129(-1);
  127. Node_Sub2 node_sub2 = (Node_Sub2) Class289.aHashTable3630.get(3512, (long) i_3_);
  128. if (node_sub2 != null) {
  129. Class243.method3060((byte) -91, false, true, node_sub2);
  130. }
  131. if (Node_Sub25_Sub3.aWidget9990 != null) {
  132. ClientScript.method2321(-1, Node_Sub25_Sub3.aWidget9990);
  133. Node_Sub25_Sub3.aWidget9990 = null;
  134. }
  135. class123.incomming_packet = null;
  136. return true;
  137. }
  138. if (Class69.aClass192_935 == class123.incomming_packet) {
  139. Class320_Sub29.method3788(0, CacheNode_Sub1.aClass257_9421);
  140. class123.incomming_packet = null;
  141. return true;
  142. }
  143. if (Class63.aClass192_920 == class123.incomming_packet) {
  144. Class320_Sub29.method3788(0, Class46.aClass257_674);
  145. class123.incomming_packet = null;
  146. return true;
  147. }
  148. if (class123.incomming_packet == Node_Sub15_Sub13.aClass192_9873) {
  149. int i_4_ = packet.readIntV1();
  150. int i_5_ = packet.readUnsignedByte128();
  151. InputStream_Sub2.method129(-1);
  152. Node_Sub15_Sub9.method2576((byte) 26, i_5_, i_4_);
  153. class123.incomming_packet = null;
  154. return true;
  155. }
  156. if (Node_Sub15_Sub6.aClass192_9816 == class123.incomming_packet) {
  157. Class320_Sub29.method3788(0, Class225.aClass257_2674);
  158. class123.incomming_packet = null;
  159. return true;
  160. }
  161. if (Class338.aClass192_4201 == class123.incomming_packet) {
  162. Class173.aString2085 = (class123.anInt1581 ^ 0xffffffff) >= -3 ? Class22.aClass22_389.method297(Class35.language) : packet.readString();
  163. Class173.anInt2086 = class123.anInt1581 <= 0 ? -1 : packet.readUnsignedShort();
  164. if (Class173.anInt2086 == 65535) {
  165. Class173.anInt2086 = -1;
  166. }
  167. class123.incomming_packet = null;
  168. return true;
  169. }
  170. if (class123.incomming_packet == Node_Sub15_Sub10.aClass192_9849) {
  171. Class320_Sub29.method3788(0, Class169_Sub2.aClass257_8804);
  172. class123.incomming_packet = null;
  173. return true;
  174. }
  175. if (class123.incomming_packet == Node_Sub52.aClass192_7650) {
  176. boolean bool = packet.readUnsignedByteC() == 1;
  177. int i_6_ = packet.readIntV2();
  178. InputStream_Sub2.method129(-1);
  179. CacheNode_Sub13.method2345(i_6_, -125, bool);
  180. class123.incomming_packet = null;
  181. return true;
  182. }
  183. if (r_Sub2.aClass192_11056 == class123.incomming_packet) {
  184. int i_7_ = packet.readUnsignedShort128();
  185. int i_8_ = packet.readIntLE();
  186. InputStream_Sub2.method129(-1);
  187. Class262_Sub14.method3187((byte) 104, i_7_, i_8_);
  188. class123.incomming_packet = null;
  189. return true;
  190. }
  191. if (Buffer.aClass192_7014 == class123.incomming_packet) {
  192. int i_9_ = packet.readIntLE();
  193. int i_10_ = packet.readUnsignedShort128();
  194. InputStream_Sub2.method129(-1);
  195. Class371.method4097(-111, i_10_, i_9_);
  196. class123.incomming_packet = null;
  197. return true;
  198. }
  199. if (class123.incomming_packet == Class286.aClass192_3602) {
  200. int i_11_ = packet.method2218(121);
  201. int i_12_ = packet.method2218(-76);
  202. int i_13_ = packet.readIntV2();
  203. InputStream_Sub2.method129(-1);
  204. Class294.method3467(i_12_, 108, i_11_, i_13_);
  205. class123.incomming_packet = null;
  206. return true;
  207. }
  208. if (class123.incomming_packet == Class173.aClass192_2088) {
  209. Class213.anInt2511 = Class345.anInt4270;
  210. boolean isOwner = packet.readUnsignedByte() == 1;
  211. if ((class123.anInt1581 ^ 0xffffffff) == -2) {
  212. class123.incomming_packet = null;
  213. if (!isOwner) {
  214. Class51.playerGuestClan = null;
  215. } else {
  216. Class66.playerOwnedClan = null;
  217. }
  218. return true;
  219. }
  220. if (isOwner) {
  221. Class66.playerOwnedClan = new ClanChat(packet);
  222. } else {
  223. Class51.playerGuestClan = new ClanChat(packet);
  224. }
  225. class123.incomming_packet = null;
  226. return true;
  227. }
  228. if (class123.incomming_packet == Class238.aClass192_2913) {//receive quick private message
  229. boolean hasDisplayName = (packet.readUnsignedByte() ^ 0xffffffff) == -2;
  230. String displayName = packet.readString();
  231. String username = displayName;
  232. if (hasDisplayName) {
  233. username = packet.readString();
  234. }
  235. long l = packet.readLong();
  236. long l_15_ = (long) packet.readUnsignedShort();
  237. long l_16_ = (long) packet.read24BitInteger();
  238. int rights = packet.readUnsignedByte();
  239. int i_18_ = packet.readUnsignedShort();
  240. long l_19_ = (l_15_ << 32) + l_16_;
  241. boolean bool_20_ = false;
  242. while_82_ : do {
  243. for (int i_21_ = 0; i_21_ < 100; i_21_++) {
  244. if ((Class320_Sub22.aLongArray8423[i_21_] ^ 0xffffffffffffffffL) == (l_19_ ^ 0xffffffffffffffffL)) {
  245. bool_20_ = true;
  246. break while_82_;
  247. }
  248. }
  249. if ((rights ^ 0xffffffff) >= -2 && Node_Sub6.method2418(-27891, username)) {
  250. bool_20_ = true;
  251. }
  252. } while (false);
  253. if (!bool_20_ && (CacheNode_Sub17.anInt8835 ^ 0xffffffff) == -1) {
  254. Class320_Sub22.aLongArray8423[Class53.anInt807] = l_19_;
  255. Class53.anInt807 = (Class53.anInt807 + 1) % 100;
  256. String string_22_ = Node_Sub36_Sub1.aClass109_10035.method1128(i_18_, false).method2329(packet);
  257.  
  258. if (rights == 2) {
  259. Node_Sub50.method2966("<img=1>" + username, "<img=1>" + displayName, i_18_, string_22_, CacheNode_Sub6.method2313((byte) -128, l), false, 0, displayName, 20);
  260. } else if (rights == 1) {
  261. Node_Sub50.method2966("<img=0>" + username, "<img=0>" + displayName, i_18_, string_22_, CacheNode_Sub6.method2313((byte) 97, l), false, 0, displayName, 20);
  262. } else if (rights != 0) {
  263. Node_Sub50.method2966("<img=" + rights + ">" + username, "<img=" + rights + ">" + displayName, i_18_, string_22_, CacheNode_Sub6.method2313((byte) 97, l), false, 0, displayName, 20);
  264. } else {
  265. Node_Sub50.method2966(username, displayName, i_18_, string_22_, CacheNode_Sub6.method2313((byte) -31, l), false, 0, displayName, 20);
  266. }
  267.  
  268. }
  269. class123.incomming_packet = null;
  270. return true;
  271. }
  272. if (class123.incomming_packet == CacheNode_Sub16_Sub2.aClass192_11079) {
  273. boolean bool = packet.readUnsignedByte() == 1;
  274. byte[] bs = new byte[class123.anInt1581 - 1];
  275. packet.readBytes(bs, 0, class123.anInt1581 - 1);
  276. Class320_Sub3.method3692(bs, (byte) 121, bool);
  277. class123.incomming_packet = null;
  278. return true;
  279. }
  280. if (class123.incomming_packet == Class51_Sub1.aClass192_9054) {//hidden
  281. int i_23_ = packet.readInt();
  282. boolean bool = (packet.readUnsignedByte() ^ 0xffffffff) == -2;
  283. if (Class364.aBoolean4512 != bool || (Class270_Sub1.anInt8030 ^ 0xffffffff) != (i_23_ ^ 0xffffffff)) {
  284. Class270_Sub1.anInt8030 = i_23_;
  285. Class364.aBoolean4512 = bool;
  286. ClientScriptsExecutor.method3565(IComponentDefinitions.aClass212_4847, -1, -1);
  287. }
  288. class123.incomming_packet = null;
  289. return true;
  290. }
  291. if (Class30.aClass192_495 == class123.incomming_packet) {
  292. int i_24_ = packet.readUnsignedShort();
  293. byte b = packet.readByte128();
  294. Class24.aClass275_442.sendConfig((byte) 112, i_24_, b);
  295. class123.incomming_packet = null;
  296. return true;
  297. }
  298. if (class123.incomming_packet == Class151.aClass192_1845) {
  299. Class24.aClass275_442.method3329((byte) -114);
  300. Class341.anInt4231 += 32;
  301. class123.incomming_packet = null;
  302. return true;
  303. }
  304. if (Class262_Sub7.aClass192_7750 == class123.incomming_packet) {
  305. boolean bool = packet.readUnsignedByte() == 1;
  306. String string = packet.readString();
  307. long l = (long) packet.readUnsignedShort();
  308. long l_25_ = (long) packet.read24BitInteger();
  309. int rights = packet.readUnsignedByte();
  310. int i_27_ = packet.readUnsignedShort();
  311. long l_28_ = (l << 32) + l_25_;
  312. boolean bool_29_ = false;
  313. Node_Sub43 node_sub43 = !bool ? ItemDefinitions.aNode_Sub43_1925 : Class29.aNode_Sub43_477;
  314. while_83_ : do {
  315. if (node_sub43 == null) {
  316. bool_29_ = true;
  317. } else {
  318. for (int i_30_ = 0; (i_30_ ^ 0xffffffff) > -101; i_30_++) {
  319. if ((Class320_Sub22.aLongArray8423[i_30_] ^ 0xffffffffffffffffL) == (l_28_ ^ 0xffffffffffffffffL)) {
  320. bool_29_ = true;
  321. break while_83_;
  322. }
  323. }
  324. if (rights <= 1 && Node_Sub6.method2418(-27891, string)) {
  325. bool_29_ = true;
  326. }
  327. }
  328. } while (false);
  329. if (!bool_29_ && CacheNode_Sub17.anInt8835 == 0) {
  330. //System.out.println("RECEIVED THIS");
  331. Class320_Sub22.aLongArray8423[Class53.anInt807] = l_28_;
  332. Class53.anInt807 = (1 + Class53.anInt807) % 100;
  333. String string_31_ = Node_Sub36_Sub1.aClass109_10035.method1128(i_27_, false).method2329(packet);
  334. int i_32_ = bool ? 42 : 45;
  335.  
  336. if (rights == 2) {
  337. Node_Sub50.method2966("<img=1>" + string, "<img=1>" + string, i_27_, string_31_, node_sub43.aString7544, false, 0, string, i_32_);
  338. } else if (rights == 1) {
  339. Node_Sub50.method2966("<img=0>" + string, "<img=0>" + string, i_27_, string_31_, node_sub43.aString7544, false, 0, string, i_32_);
  340. } else if (rights != 0) {
  341. Node_Sub50.method2966("<img=" + rights + ">" + string, "<img=" + rights + ">" + string, i_27_, string_31_, node_sub43.aString7544, false, 0, string, i_32_);
  342. } else {
  343. Node_Sub50.method2966(string, string, i_27_, string_31_, node_sub43.aString7544, false, 0, string, i_32_);
  344. }
  345. }
  346. class123.incomming_packet = null;
  347. return true;
  348. }
  349. if (class123.incomming_packet == Node_Sub24.aClass192_7214) {
  350. for (int i_33_ = 0; Class270_Sub2.LOCAL_PLAYERS.length > i_33_; i_33_++) {
  351. if (Class270_Sub2.LOCAL_PLAYERS[i_33_] != null) {
  352. Class270_Sub2.LOCAL_PLAYERS[i_33_].anIntArray10817 = null;
  353. Class270_Sub2.LOCAL_PLAYERS[i_33_].anAnimator10876.method249(true, -1);
  354. }
  355. }
  356. for (int i_34_ = 0; (i_34_ ^ 0xffffffff) > (Node_Sub32.cachedNPCcsCount ^ 0xffffffff); i_34_++) {
  357. Class314.LocalNPCs[i_34_].aNpc7518.anIntArray10817 = null;
  358. Class314.LocalNPCs[i_34_].aNpc7518.anAnimator10876.method249(true, -1);
  359. }
  360. class123.incomming_packet = null;
  361. return true;
  362. }
  363. if (IComponentDefinitions.aClass192_4699 == class123.incomming_packet) {
  364. Class147.anObjectArray1821 = new Object[Class336.aClass315_4173.anInt4024];
  365. class123.incomming_packet = null;
  366. return true;
  367. }
  368. if (Class20_Sub1.aClass192_5512 == class123.incomming_packet) {
  369. Class171.aBoolean2058 = (packet.readUnsigned128Byte() ^ 0xffffffff) == -2;
  370. class123.incomming_packet = null;
  371. return true;
  372. }
  373. if (class123.incomming_packet == Class328.aClass192_4114) {
  374. Class262_Sub20.anInt7861 = packet.readUnsignedByte();
  375. class123.incomming_packet = null;
  376. return true;
  377. }
  378. if (class123.incomming_packet == Node_Sub32.aClass192_7376) {
  379. int i_35_ = packet.readIntV1();
  380. int i_36_ = packet.readUnsignedShort128();
  381. if ((i_36_ ^ 0xffffffff) == -65536) {
  382. i_36_ = -1;
  383. }
  384. InputStream_Sub2.method129(-1);
  385. Class257.method3122(i_36_, 1, -1, i_35_, -80);
  386. class123.incomming_packet = null;
  387. return true;
  388. }
  389. if (class123.incomming_packet == Class153.aClass192_1945) {
  390. Class320_Sub29.method3788(0, Class262_Sub13.aClass257_7801);
  391. class123.incomming_packet = null;
  392. return true;
  393. }
  394. if (Class233.aClass192_2785 == class123.incomming_packet) {
  395. Class127.method1542(11582, Class248.aBoolean3146);
  396. class123.incomming_packet = null;
  397. return false;
  398. }
  399. if (class123.incomming_packet == Class168.aClass192_2045) {// friends
  400. while ((packet.offset ^ 0xffffffff) > (class123.anInt1581 ^ 0xffffffff)) {
  401. boolean warnMessage = packet.readUnsignedByte() == 1;
  402. String displayName = packet.readString();
  403. String username = packet.readString();
  404. int worldId = packet.readUnsignedShort();
  405. int unknown = packet.readUnsignedByte();
  406. boolean bool_40_ = (packet.readUnsignedByte() ^ 0xffffffff) == -2;
  407. String listMessage = "";
  408. boolean bool_42_ = false;
  409. if (worldId > 0) {
  410. listMessage = packet.readString();
  411. bool_42_ = (packet.readUnsignedByte() ^ 0xffffffff) == -2;
  412. }
  413. for (int i_43_ = 0; i_43_ < Node_Sub38_Sub14.anInt10242; i_43_++) {
  414. if (warnMessage) {
  415. if (username.equals(Class262_Sub12.aStringArray7793[i_43_])) {
  416. Class262_Sub12.aStringArray7793[i_43_] = displayName;
  417. displayName = null;
  418. Plane.aStringArray3403[i_43_] = username;
  419. break;
  420. }
  421. } else if (displayName.equals(Class262_Sub12.aStringArray7793[i_43_])) {
  422. if ((Class202.anIntArray2448[i_43_] ^ 0xffffffff) != (worldId ^ 0xffffffff)) {
  423. boolean bool_44_ = true;
  424. for (EntityNode_Sub3_Sub1 entitynode_sub3_sub1 = (EntityNode_Sub3_Sub1) Class97.aClass103_1277.method1113((byte) -48); entitynode_sub3_sub1 != null; entitynode_sub3_sub1 = (EntityNode_Sub3_Sub1) Class97.aClass103_1277.method1108(100)) {
  425. if (entitynode_sub3_sub1.aString9156.equals(displayName)) {
  426. if (worldId == 0 || entitynode_sub3_sub1.aShort9164 != 0) {
  427. if (worldId == 0 && (entitynode_sub3_sub1.aShort9164 ^ 0xffffffff) != -1) {
  428. bool_44_ = false;
  429. entitynode_sub3_sub1.method803(false);
  430. }
  431. } else {
  432. bool_44_ = false;
  433. entitynode_sub3_sub1.method803(false);
  434. }
  435. }
  436. }
  437. if (bool_44_) {
  438. Class97.aClass103_1277.method1110(false, new EntityNode_Sub3_Sub1(displayName, worldId));
  439. }
  440. Class202.anIntArray2448[i_43_] = worldId;
  441. }
  442. Plane.aStringArray3403[i_43_] = username;
  443. EntityNode_Sub3_Sub1.aStringArray9157[i_43_] = listMessage;
  444. Class380.anIntArray4887[i_43_] = unknown;
  445. Class330.aBooleanArray4127[i_43_] = bool_42_;
  446. displayName = null;
  447. Class232.aBooleanArray2781[i_43_] = bool_40_;
  448. break;
  449. }
  450. }
  451. if (displayName != null && Node_Sub38_Sub14.anInt10242 < 200) {
  452. Class262_Sub12.aStringArray7793[Node_Sub38_Sub14.anInt10242] = displayName;
  453. Plane.aStringArray3403[Node_Sub38_Sub14.anInt10242] = username;
  454. Class202.anIntArray2448[Node_Sub38_Sub14.anInt10242] = worldId;
  455. EntityNode_Sub3_Sub1.aStringArray9157[Node_Sub38_Sub14.anInt10242] = listMessage;
  456. Class380.anIntArray4887[Node_Sub38_Sub14.anInt10242] = unknown;
  457. Class330.aBooleanArray4127[Node_Sub38_Sub14.anInt10242] = bool_42_;
  458. Class232.aBooleanArray2781[Node_Sub38_Sub14.anInt10242] = bool_40_;
  459. Node_Sub38_Sub14.anInt10242++;
  460. }
  461. }
  462. Class181.anInt2150 = Class345.anInt4270;
  463. Class138.anInt1724 = 2;
  464. boolean bool = false;
  465. int i_45_ = Node_Sub38_Sub14.anInt10242;
  466. while (i_45_ > 0) {
  467. bool = true;
  468. i_45_--;
  469. for (int i_46_ = 0; (i_45_ ^ 0xffffffff) < (i_46_ ^ 0xffffffff); i_46_++) {
  470. boolean bool_47_ = false;
  471. if ((Class181.aClass197_2155.id ^ 0xffffffff) != (Class202.anIntArray2448[i_46_] ^ 0xffffffff) && Class181.aClass197_2155.id == Class202.anIntArray2448[1 + i_46_]) {
  472. bool_47_ = true;
  473. }
  474. if (!bool_47_ && Class202.anIntArray2448[i_46_] == 0 && (Class202.anIntArray2448[i_46_ - -1] ^ 0xffffffff) != -1) {
  475. bool_47_ = true;
  476. }
  477. if (!bool_47_ && !Class232.aBooleanArray2781[i_46_] && Class232.aBooleanArray2781[1 + i_46_]) {
  478. bool_47_ = true;
  479. }
  480. if (bool_47_) {
  481. int i_48_ = Class202.anIntArray2448[i_46_];
  482. Class202.anIntArray2448[i_46_] = Class202.anIntArray2448[1 + i_46_];
  483. Class202.anIntArray2448[i_46_ - -1] = i_48_;
  484. String string = EntityNode_Sub3_Sub1.aStringArray9157[i_46_];
  485. EntityNode_Sub3_Sub1.aStringArray9157[i_46_] = EntityNode_Sub3_Sub1.aStringArray9157[i_46_ - -1];
  486. EntityNode_Sub3_Sub1.aStringArray9157[i_46_ + 1] = string;
  487. String string_49_ = Class262_Sub12.aStringArray7793[i_46_];
  488. Class262_Sub12.aStringArray7793[i_46_] = Class262_Sub12.aStringArray7793[1 + i_46_];
  489. Class262_Sub12.aStringArray7793[1 + i_46_] = string_49_;
  490. String string_50_ = Plane.aStringArray3403[i_46_];
  491. Plane.aStringArray3403[i_46_] = Plane.aStringArray3403[i_46_ - -1];
  492. Plane.aStringArray3403[1 + i_46_] = string_50_;
  493. int i_51_ = Class380.anIntArray4887[i_46_];
  494. Class380.anIntArray4887[i_46_] = Class380.anIntArray4887[1 + i_46_];
  495. Class380.anIntArray4887[i_46_ + 1] = i_51_;
  496. boolean bool_52_ = Class330.aBooleanArray4127[i_46_];
  497. Class330.aBooleanArray4127[i_46_] = Class330.aBooleanArray4127[1 + i_46_];
  498. Class330.aBooleanArray4127[1 + i_46_] = bool_52_;
  499. boolean bool_53_ = Class232.aBooleanArray2781[i_46_];
  500. Class232.aBooleanArray2781[i_46_] = Class232.aBooleanArray2781[i_46_ - -1];
  501. bool = false;
  502. Class232.aBooleanArray2781[1 + i_46_] = bool_53_;
  503. }
  504. }
  505. if (bool) {
  506. break;
  507. }
  508. }
  509. class123.incomming_packet = null;
  510. return true;
  511. }
  512. if (Class115.aClass192_1467 == class123.incomming_packet) {
  513. int i_54_ = packet.readUnsigned128Byte();
  514. byte b = packet.read128Byte();
  515. InputStream_Sub2.method129(-1);
  516. Class378.method4133(b, (byte) 114, i_54_);
  517. class123.incomming_packet = null;
  518. return true;
  519. }
  520. if (Class262_Sub6.aClass192_7748 == class123.incomming_packet) {
  521. int i_55_ = packet.readInt();
  522. int i_56_ = packet.readUnsignedShort();
  523. Class24.aClass275_442.method3333(i_55_, i_56_, -1);
  524. class123.incomming_packet = null;
  525. return true;
  526. }
  527. if (class123.incomming_packet == Class50.aClass192_778) {
  528. String string = packet.readString();
  529. int i_57_ = packet.readUnsignedShort();
  530. String string_58_ = Node_Sub36_Sub1.aClass109_10035.method1128(i_57_, false).method2329(packet);
  531. Node_Sub50.method2966(string, string, i_57_, string_58_, null, false, 0, string, 19);
  532. class123.incomming_packet = null;
  533. return true;
  534. }
  535. if (class123.incomming_packet == Class278.aClass192_3542) {
  536. int i_59_ = packet.readUnsignedShort();
  537. if ((i_59_ ^ 0xffffffff) == -65536) {
  538. i_59_ = -1;
  539. }
  540. int i_60_ = packet.readUnsignedByte();
  541. int i_61_ = packet.readUnsignedShort();
  542. int i_62_ = packet.readUnsignedByte();
  543. int i_63_ = packet.readUnsignedShort();
  544. Class105.method1116(i_59_, i_60_, i_63_, (byte) 78, i_61_, i_62_, false);
  545. class123.incomming_packet = null;
  546. return true;
  547. }
  548. if (CacheNode_Sub14_Sub2.aClass192_11037 == class123.incomming_packet) {
  549. int i_64_ = packet.readUnsignedShortLE();
  550. InputStream_Sub2.method129(-1);
  551. CacheNode_Sub20.method2408(i_64_, true);
  552. class123.incomming_packet = null;
  553. return true;
  554. }
  555. if (class123.incomming_packet == Class153.aClass192_1946) {
  556. int i_65_ = packet.readIntV1();
  557. int i_66_ = packet.readUnsignedShortLE128();
  558. if ((i_66_ ^ 0xffffffff) == -65536) {
  559. i_66_ = -1;
  560. }
  561. InputStream_Sub2.method129(-1);
  562. Class361.method4046(2, i_65_, i_66_);
  563. class123.incomming_packet = null;
  564. return true;
  565. }
  566. if (class123.incomming_packet == Class320_Sub2.aClass192_8221) {
  567. int key = packet.readUnsignedShort();
  568. int hash = packet.readUnsignedByte();
  569. boolean keyLessIntegerSize = (hash & 0x1) == 1;
  570. Class262_Sub6.method3164(key, keyLessIntegerSize, (byte) 65);
  571. int i_69_ = packet.readUnsignedShort();
  572. for (int i_70_ = 0; (i_70_ ^ 0xffffffff) > (i_69_ ^ 0xffffffff); i_70_++) {
  573. int i_71_ = packet.readUnsignedByte();
  574. if (i_71_ == 255) {
  575. i_71_ = packet.readInt();
  576. }
  577. int i_72_ = packet.readUnsignedShortLE();
  578. Node_Sub38_Sub16.method2841(keyLessIntegerSize, -126, i_71_, i_70_, -1 + i_72_, key);
  579. }
  580. Class169.anIntArray4965[Node_Sub30.method2723(Mobile_Sub3.anInt10784++, 31)] = key;
  581. class123.incomming_packet = null;
  582. return true;
  583. }
  584. if (Class134_Sub4.aClass192_9045 == class123.incomming_packet) {
  585. int i_73_ = packet.readInt();
  586. Class237.aClass241_2904 = Class240.aSignLink2946.method3632((byte) -78, i_73_);
  587. class123.incomming_packet = null;
  588. return true;
  589. }
  590. if (Class166.aClass192_5098 == class123.incomming_packet) {
  591. int i_74_ = packet.readUnsignedShortLE();
  592. int i_75_ = packet.readInt();
  593. InputStream_Sub2.method129(-1);
  594. r.method2358(i_75_, (byte) -106, i_74_);
  595. class123.incomming_packet = null;
  596. return true;
  597. }
  598. if (class123.incomming_packet == CacheNode_Sub12.aClass192_9552) {
  599. int i_76_ = packet.readIntV2();
  600. int i_77_ = packet.readUnsignedShort();
  601. int i_78_ = packet.readUnsignedShortLE128();
  602. int i_79_ = packet.readUnsignedShort128();
  603. InputStream_Sub2.method129(-1);
  604. Class257.method3122(i_79_ << 16 | i_78_, 7, i_77_, i_76_, -85);
  605. class123.incomming_packet = null;
  606. return true;
  607. }
  608. if (class123.incomming_packet == Node_Sub25_Sub4.aClass192_9998) {
  609. int i_80_ = packet.readInt();
  610. InputStream_Sub2.method129(-1);
  611. Class257.method3122(Class166.myPlayerIndex, 5, 0, i_80_, 81);
  612. class123.incomming_packet = null;
  613. return true;
  614. }
  615. if (i > -124) {
  616. return true;
  617. }
  618. if (Class10.aClass192_175 == class123.incomming_packet) {
  619. Class127.method1542(11582, false);
  620. class123.incomming_packet = null;
  621. return false;
  622. }
  623. if (class123.incomming_packet == Class156.sendDynamicRegion) {
  624. Class251.decodeReceivedDynamicMapRegions(false);
  625. class123.incomming_packet = null;
  626. return false;
  627. }
  628. if (class123.incomming_packet == Class278.aClass192_3548) {
  629. int i_81_ = packet.readUnsignedShort();
  630. int i_82_ = packet.readUnsignedByte();
  631. boolean bool = (i_82_ & 0x1) == 1;
  632. while (class123.anInt1581 > packet.offset) {
  633. int i_83_ = packet.readSmart();
  634. int i_84_ = packet.readUnsignedShort();
  635. int i_85_ = 0;
  636. if ((i_84_ ^ 0xffffffff) != -1) {
  637. i_85_ = packet.readUnsignedByte();
  638. if ((i_85_ ^ 0xffffffff) == -256) {
  639. i_85_ = packet.readInt();
  640. }
  641. }
  642. Node_Sub38_Sub16.method2841(bool, -127, i_85_, i_83_, -1 + i_84_, i_81_);
  643. }
  644. Class169.anIntArray4965[Node_Sub30.method2723(31, Mobile_Sub3.anInt10784++)] = i_81_;
  645. class123.incomming_packet = null;
  646. return true;
  647. }
  648. if (Class339_Sub5.aClass192_8685 == class123.incomming_packet) {
  649. String string = packet.readString();
  650. Object[] objects = new Object[1 + string.length()];
  651. for (int i_86_ = string.length() + -1; (i_86_ ^ 0xffffffff) <= -1; i_86_--) {
  652. if ((string.charAt(i_86_) ^ 0xffffffff) == -116) {
  653. objects[i_86_ - -1] = packet.readString();
  654. } else {
  655. objects[1 + i_86_] = new Integer(packet.readInt());
  656. }
  657. }
  658. objects[0] = new Integer(packet.readInt());
  659. InputStream_Sub2.method129(-1);
  660. Node_Sub37 node_sub37 = new Node_Sub37();
  661. node_sub37.parameters = objects;
  662. ClientScriptsExecutor.method3556(node_sub37);
  663. class123.incomming_packet = null;
  664. return true;
  665. }
  666. if (class123.incomming_packet == Class187.aClass192_2265) {
  667. int i_87_ = packet.readUnsignedShortLE();
  668. int i_88_ = packet.readInt();
  669. InputStream_Sub2.method129(-1);
  670. Class350.method3992(i_88_, i_87_, 10);
  671. class123.incomming_packet = null;
  672. return true;
  673. }
  674. if (class123.incomming_packet == Class262.aClass192_3327) {
  675. Mobile_Sub4.anInt10981 = packet.readShort();
  676. class123.incomming_packet = null;
  677. Node_Sub23_Sub1.anInt9926 = Class345.anInt4270;
  678. return true;
  679. }
  680. if (Class339_Sub7.INCOMMING_PACKET_67 == class123.incomming_packet) {
  681. int id = packet.readUnsignedShortLE128();
  682. int type = packet.readUnsigned128Byte();
  683. InputStream_Sub2.method129(-1);
  684. if (type == 2) {
  685. Class169.method1760(true);
  686. }
  687. Class320_Sub15.WINDOWS_PANE_ID = id;
  688. FloorItemStack.method2543(id, 0);
  689. Node_Sub29_Sub3.method2717(1, false);
  690. ClientScriptsExecutor.parseIComponentScript(Class320_Sub15.WINDOWS_PANE_ID);
  691. for (int i_91_ = 0; (i_91_ ^ 0xffffffff) > -101; i_91_++)
  692. Class195.aBooleanArray2387[i_91_] = true;
  693. class123.incomming_packet = null;
  694. return true;
  695. }
  696. if (Class344.aClass192_4261 == class123.incomming_packet) {
  697. Class376.method4118(1, packet.readString());
  698. class123.incomming_packet = null;
  699. return true;
  700. }
  701. if (class123.incomming_packet == TileMessage.aClass192_5952) { //npc emote
  702. int i_92_ = packet.readUnsignedByteC();
  703. int[] is = new int[4];
  704. for (int i_93_ = 0; (i_93_ ^ 0xffffffff) > -5; i_93_++)
  705. is[i_93_] = packet.readUnsignedShortLE128();
  706. int i_94_ = packet.readUnsignedShort128(); //npc index
  707. Node_Sub41 node_sub41 = (Node_Sub41) Class12.aHashTable187.get(3512, (long) i_94_);
  708. if (node_sub41 != null) {
  709. Class352.method4011(is, i_92_, true, node_sub41.aNpc7518, -77);
  710. }
  711. class123.incomming_packet = null;
  712. return true;
  713. }
  714. if (class123.incomming_packet == Class43.systemUpdate) {
  715. if (!Class329.method3833((byte) -61, Class151.anInt1843)) {
  716. Node_Sub19.anInt7163 = 30 * packet.readUnsignedShort();
  717. } else {
  718. Node_Sub19.anInt7163 = (int) ((float) packet.readUnsignedShort() * 2.5F);
  719. }
  720. class123.incomming_packet = null;
  721. Node_Sub23_Sub1.anInt9926 = Class345.anInt4270;
  722. return true;
  723. }
  724. if (Class169_Sub2.aClass192_8798 == class123.incomming_packet) {
  725. Class144_Sub3.aByte6822 = packet.readByte();
  726. class123.incomming_packet = null;
  727. if (Class144_Sub3.aByte6822 == 0 || (Class144_Sub3.aByte6822 ^ 0xffffffff) == -2) {
  728. NodeDeque.aBoolean3960 = true;
  729. }
  730. return true;
  731. }
  732. if (TileMessage.aClass192_5954 == class123.incomming_packet) {
  733. int i_95_ = packet.readIntV2();
  734. int i_96_ = packet.readUnsignedShort128();
  735. Class24.aClass275_442.sendConfig((byte) 94, i_96_, i_95_);
  736. class123.incomming_packet = null;
  737. return true;
  738. }
  739. if (class123.incomming_packet == Class124.aClass192_1605) {
  740. Class230_Sub1.anInt9012 = Class345.anInt4270;
  741. boolean bool = packet.readUnsignedByte() == 1;
  742. Class47 class47 = new Class47(packet);
  743. Node_Sub43 node_sub43;
  744. if (bool) {
  745. node_sub43 = Class29.aNode_Sub43_477;
  746. } else {
  747. node_sub43 = ItemDefinitions.aNode_Sub43_1925;
  748. }
  749. class47.method473(node_sub43, false);
  750. class123.incomming_packet = null;
  751. return true;
  752. }
  753. if (NodeDeque.aClass192_3966 == class123.incomming_packet) {
  754. int i_97_ = packet.readIntV1();
  755. int i_98_ = packet.readUnsignedShort();
  756. InputStream_Sub2.method129(-1);
  757. Node_Sub38_Sub1.method2788(121, i_98_, i_97_);
  758. class123.incomming_packet = null;
  759. return true;
  760. }
  761. if (Class181.aClass192_2144 == class123.incomming_packet) {
  762. int i_99_ = packet.readIntLE();
  763. InputStream_Sub2.method129(-1);
  764. if ((i_99_ ^ 0xffffffff) != 0) {
  765. int i_100_ = (0xffff5cc & i_99_) >> 14;
  766. int i_101_ = 0x3fff & i_99_;
  767. i_100_ -= Node_Sub53.gameSceneBaseX;
  768. if ((i_100_ ^ 0xffffffff) <= -1) {
  769. if ((Node_Sub54.GAME_SCENE_WDITH ^ 0xffffffff) >= (i_100_ ^ 0xffffffff)) {
  770. i_100_ = Node_Sub54.GAME_SCENE_WDITH;
  771. }
  772. } else {
  773. i_100_ = 0;
  774. }
  775. i_101_ -= Class320_Sub4.gameSceneBaseY;
  776. Class367.anInt4541 = (i_100_ << 9) - -256;
  777. if (i_101_ < 0) {
  778. i_101_ = 0;
  779. } else if ((i_101_ ^ 0xffffffff) <= (Class377_Sub1.GAME_SCENE_HEIGHT ^ 0xffffffff)) {
  780. i_101_ = Class377_Sub1.GAME_SCENE_HEIGHT;
  781. }
  782. Class368.anInt4551 = (i_101_ << 9) + 256;
  783. } else {
  784. Class368.anInt4551 = -1;
  785. Class367.anInt4541 = -1;
  786. }
  787. class123.incomming_packet = null;
  788. return true;
  789. }
  790. if (class123.incomming_packet == Class262.aClass192_3326) {
  791. Class369.method4084((byte) -95);
  792. class123.incomming_packet = null;
  793. return true;
  794. }
  795. if (Node_Sub38_Sub2.aClass192_10092 == class123.incomming_packet) {
  796. int i_102_ = packet.readUnsignedShort();
  797. byte b = packet.readByte();
  798. if (Class147.anObjectArray1821 == null) {
  799. Class147.anObjectArray1821 = new Object[Class336.aClass315_4173.anInt4024];
  800. }
  801. Class147.anObjectArray1821[i_102_] = new Integer(b);
  802. Class143.anIntArray1764[Node_Sub30.method2723(31, Class377.anInt4664++)] = i_102_;
  803. class123.incomming_packet = null;
  804. return true;
  805. }
  806. if (TileMessage.aClass192_5956 == class123.incomming_packet) {
  807. int i_103_ = packet.readUnsignedShort();
  808. GLXToolkit.anInt9276 = -1;
  809. Class200_Sub2.anInt4935 = i_103_;
  810. aa.anInt101 = 1;
  811. Node_Sub15_Sub10.aClass302_9853.method3510(Class200_Sub2.anInt4935, (byte) 63);
  812. int i_104_ = packet.readUnsignedShort();
  813. Class169.anIntArrayArray4954 = new int[i_104_][4];
  814. for (int i_105_ = 0; (i_104_ ^ 0xffffffff) < (i_105_ ^ 0xffffffff); i_105_++) {
  815. for (int i_106_ = 0; (i_106_ ^ 0xffffffff) > -5; i_106_++)
  816. Class169.anIntArrayArray4954[i_105_][i_106_] = packet.readInt();
  817. }
  818. int i_107_ = packet.readUnsignedByte();
  819. Mobile.aBuffer9128 = new Buffer(i_107_);
  820. Mobile.aBuffer9128.writeBytes(i_107_, packet.buffer, packet.offset);
  821. packet.offset += i_107_;
  822. class123.incomming_packet = null;
  823. return false;
  824. }
  825. if (Class367.aClass192_4534 == class123.incomming_packet) {
  826. if (DrawableModel.aFrame907 != null) {
  827. Node_Sub38_Sub19.method2850(3, Class213.aNode_Sub27_2512.aClass320_Sub1_7287.method3678(false), -1, false, -1);
  828. }
  829. byte[] bs = new byte[class123.anInt1581];
  830. packet.method2260(bs, class123.anInt1581, 0, true);
  831. String string = Class184.method1846(0, bs, class123.anInt1581, (byte) -111);
  832. Class355.method4017(-70, (Class213.aNode_Sub27_2512.aClass320_Sub29_7270.method3791(false) ^ 0xffffffff) == -2, string, true, Class240.aSignLink2946);
  833. class123.incomming_packet = null;
  834. return true;
  835. }
  836. if (class123.incomming_packet == NpcDefinition.aClass192_2884) {
  837. boolean bool = (packet.readUnsignedByte() ^ 0xffffffff) == -2;
  838. String string = packet.readString();
  839. String string_108_ = string;
  840. if (bool) {
  841. string_108_ = packet.readString();
  842. }
  843. long l = (long) packet.readUnsignedShort();
  844. long l_109_ = (long) packet.read24BitInteger();
  845. int rights = packet.readUnsignedByte();
  846. int i_111_ = packet.readUnsignedShort();
  847. long l_112_ = l_109_ + (l << 32);
  848. boolean bool_113_ = false;
  849. while_84_ : do {
  850. for (int i_114_ = 0; i_114_ < 100; i_114_++) {
  851. if (l_112_ == Class320_Sub22.aLongArray8423[i_114_]) {
  852. bool_113_ = true;
  853. break while_84_;
  854. }
  855. }
  856. if (rights <= 1 && Node_Sub6.method2418(-27891, string_108_)) {
  857. bool_113_ = true;
  858. }
  859. } while (false);
  860. if (!bool_113_ && (CacheNode_Sub17.anInt8835 ^ 0xffffffff) == -1) {
  861. Class320_Sub22.aLongArray8423[Class53.anInt807] = l_112_;
  862. Class53.anInt807 = (Class53.anInt807 - -1) % 100;
  863. String string_115_ = Node_Sub36_Sub1.aClass109_10035.method1128(i_111_, false).method2329(packet);
  864.  
  865. if (rights == 2) {
  866. Node_Sub50.method2966("<img=1>" + string_108_, "<img=1>" + string, i_111_, string_115_, null, false, 0, string, 18);
  867. } else if (rights == 1) {
  868. Node_Sub50.method2966("<img=0>" + string_108_, "<img=0>" + string, i_111_, string_115_, null, false, 0, string, 18);
  869. } else if (rights != 0) {
  870. Node_Sub50.method2966("<img=" + rights + ">" + string_108_, "<img=1" + rights + ">" + string, i_111_, string_115_, null, false, 0, string, 18);
  871. } else {
  872. Node_Sub50.method2966(string_108_, string, i_111_, string_115_, null, false, 0, string, 18);
  873. }
  874.  
  875. }
  876. class123.incomming_packet = null;
  877. return true;
  878. }
  879. if (EntityNode_Sub3.aClass192_5959 == class123.incomming_packet) {
  880. int i_116_ = packet.readUnsigned128Byte();
  881. int i_117_ = packet.readUnsignedShort128();
  882. Class24.aClass275_442.method3333(i_116_, i_117_, -1);
  883. class123.incomming_packet = null;
  884. return true;
  885. }
  886. if (Class342.aClass192_4235 == class123.incomming_packet) {
  887. int level = packet.readUnsigned128Byte();
  888. int skillId = packet.readUnsignedByte128();
  889. int xp = packet.readIntLE();
  890. Class188_Sub1.SKILL_XP[skillId] = xp;
  891. Class307.SKILL_LEVEL[skillId] = level;
  892. Class34_Sub1.SKILL_REAL_LEVEL[skillId] = 1;
  893. int i_121_ = -1 + Class134.SKILL_MAX_LEVEL[skillId];
  894. for (int i_122_ = 0; i_121_ > i_122_; i_122_++) {
  895. if ((HashTable.SKILL_LEVEL_XP[i_122_] ^ 0xffffffff) >= (xp ^ 0xffffffff)) {
  896. Class34_Sub1.SKILL_REAL_LEVEL[skillId] = i_122_ - -2;
  897. }
  898. }
  899. Class262_Sub15.anIntArray7821[Node_Sub30.method2723(Class197.anInt2423++, 31)] = skillId;
  900. class123.incomming_packet = null;
  901. return true;
  902. }
  903. if (class123.incomming_packet == Class163.aClass192_2012) {
  904. za.aClass251_7694 = Class106.method1123(packet.readUnsignedByte(), (byte) 39);
  905. class123.incomming_packet = null;
  906. return true;
  907. }
  908. if (Class221.aClass192_2630 == class123.incomming_packet) {
  909. int i_123_ = packet.readUnsigned128Byte();
  910. int i_124_ = packet.readInt();
  911. int i_125_ = packet.readUnsignedShortLE();
  912. int i_126_ = packet.readUnsignedShortLE();
  913. InputStream_Sub2.method129(-1);
  914. Animator.method230(i_123_, i_126_, -49, i_124_, i_125_);
  915. class123.incomming_packet = null;
  916. return true;
  917. }
  918. if (class123.incomming_packet == Class144.receiveClanChatQuickMessage) {
  919. boolean bool = (packet.readUnsignedByte() ^ 0xffffffff) == -2;
  920. String string = packet.readString();
  921. long l = (long) packet.readUnsignedShort();
  922. long l_127_ = (long) packet.read24BitInteger();
  923. int rights = packet.readUnsignedByte();
  924. long l_129_ = (l << 32) + l_127_;
  925. boolean bool_130_ = false;
  926. Node_Sub43 node_sub43 = !bool ? ItemDefinitions.aNode_Sub43_1925 : Class29.aNode_Sub43_477;
  927. while_85_ : do {
  928. if (node_sub43 == null) {
  929. bool_130_ = true;
  930. } else {
  931. for (int i_131_ = 0; (i_131_ ^ 0xffffffff) > -101; i_131_++) {
  932. if (l_129_ == Class320_Sub22.aLongArray8423[i_131_]) {
  933. bool_130_ = true;
  934. break while_85_;
  935. }
  936. }
  937. if (rights <= 1) {
  938. if (Node_Sub38_Sub18.aBoolean10282 && !Class24.aBoolean436 || Class290_Sub11.aBoolean8175) {
  939. bool_130_ = true;
  940. } else if (Node_Sub6.method2418(-27891, string)) {
  941. bool_130_ = true;
  942. }
  943. }
  944. }
  945. } while (false);
  946. if (!bool_130_ && (CacheNode_Sub17.anInt8835 ^ 0xffffffff) == -1) {
  947. Class320_Sub22.aLongArray8423[Class53.anInt807] = l_129_;
  948. Class53.anInt807 = (1 + Class53.anInt807) % 100;
  949. String string_132_ = Class67.method730(false, Node_Sub3.method2172((byte) -72, packet));
  950. int i_133_ = !bool ? 44 : 41;
  951.  
  952. if (rights == 2) {
  953. Node_Sub50.method2966("<img=1>" + string, "<img=1>" + string, -1, string_132_, node_sub43.aString7544, false, 0, string, i_133_);
  954. } else if (rights == 1) {
  955. Node_Sub50.method2966("<img=0>" + string, "<img=0>" + string, -1, string_132_, node_sub43.aString7544, false, 0, string, i_133_);
  956. } else if (rights != 0) {
  957. Node_Sub50.method2966("<img=" + rights + ">" + string, "<img=1" + rights + ">" + string, -1, string_132_, node_sub43.aString7544, false, 0, string, i_133_);
  958. } else {
  959. Node_Sub50.method2966(string, string, -1, string_132_, node_sub43.aString7544, false, 0, string, i_133_);
  960. }
  961. }
  962. class123.incomming_packet = null;
  963. return true;
  964. }
  965. if (class123.incomming_packet == CacheNode_Sub14_Sub2.aClass192_11040) {
  966. int i_134_ = packet.readUnsignedByte();
  967. int i_135_ = i_134_ >> 5;
  968. int i_136_ = i_134_ & 0x1f;
  969. if ((i_136_ ^ 0xffffffff) == -1) {
  970. Class320_Sub24.cachedHintIcons[i_135_] = null;
  971. class123.incomming_packet = null;
  972. return true;
  973. }
  974. Class223 class223 = new Class223();
  975. class223.anInt2654 = i_136_;
  976. class223.anInt2659 = packet.readUnsignedByte();
  977. if (class223.anInt2659 >= 0 && class223.anInt2659 < Class19.aGLSpriteArray312.length) {
  978. if ((class223.anInt2654 ^ 0xffffffff) != -2 && (class223.anInt2654 ^ 0xffffffff) != -11) {
  979. if (class223.anInt2654 >= 2 && class223.anInt2654 <= 6) {
  980. if (class223.anInt2654 == 2) {
  981. class223.anInt2653 = 256;
  982. class223.anInt2662 = 256;
  983. }
  984. if (class223.anInt2654 == 3) {
  985. class223.anInt2662 = 0;
  986. class223.anInt2653 = 256;
  987. }
  988. if ((class223.anInt2654 ^ 0xffffffff) == -5) {
  989. class223.anInt2662 = 512;
  990. class223.anInt2653 = 256;
  991. }
  992. if ((class223.anInt2654 ^ 0xffffffff) == -6) {
  993. class223.anInt2653 = 0;
  994. class223.anInt2662 = 256;
  995. }
  996. if (class223.anInt2654 == 6) {
  997. class223.anInt2653 = 512;
  998. class223.anInt2662 = 256;
  999. }
  1000. class223.anInt2654 = 2;
  1001. class223.anInt2661 = packet.readUnsignedByte();
  1002. class223.anInt2662 += packet.readUnsignedShort() + -Node_Sub53.gameSceneBaseX << 9;
  1003. class223.anInt2653 += packet.readUnsignedShort() - Class320_Sub4.gameSceneBaseY << 9;
  1004. class223.anInt2657 = packet.readUnsignedByte() << 2;
  1005. class223.anInt2655 = packet.readUnsignedShort();
  1006. }
  1007. } else {
  1008. class223.anInt2658 = packet.readUnsignedShort();
  1009. class223.anInt2651 = packet.readUnsignedShort();
  1010. packet.offset += 4;
  1011. }
  1012. class223.anInt2666 = packet.readUnsignedShort();
  1013. if (class223.anInt2666 == 65535) {
  1014. class223.anInt2666 = -1;
  1015. }
  1016. Class320_Sub24.cachedHintIcons[i_135_] = class223;
  1017. }
  1018. class123.incomming_packet = null;
  1019. return true;
  1020. }
  1021. if (class123.incomming_packet == Class339_Sub6.aClass192_8709) { //hide npc under
  1022. int i_137_ = packet.readUnsigned128Byte();
  1023. InputStream_Sub2.method129(-1);
  1024. class123.incomming_packet = null;
  1025. Class83.anInt5180 = i_137_;
  1026. return true;
  1027. }
  1028. if (class123.incomming_packet == Class165.aClass192_2032) {
  1029. packet.offset += 28;
  1030. if (packet.method2216(0)) {
  1031. za_Sub1.method2992(95, -28 + packet.offset, packet);
  1032. }
  1033. class123.incomming_packet = null;
  1034. return true;
  1035. }
  1036. if (class123.incomming_packet == Node_Sub36.PLAYER_TRADE_PACKET) {//reaceive message
  1037. String string = packet.readString();
  1038. String string_312_ = Class67.method730(false, Node_Sub3.method2172((byte) -72, packet));
  1039. Class28.method331(string_312_, string, 106, 0, string, string, 6);
  1040. class123.incomming_packet = null;
  1041. return true;
  1042. }
  1043. if (class123.incomming_packet == Class290_Sub5.FIRST_CLICK_NPC) {
  1044. int i_138_ = packet.readUnsignedShortLE();
  1045. if ((i_138_ ^ 0xffffffff) == -65536) {
  1046. i_138_ = -1;
  1047. }
  1048. int i_139_ = packet.readInt();
  1049. int i_140_ = packet.readIntV2();
  1050. InputStream_Sub2.method129(-1);
  1051. Class161.method1731(i_140_, i_139_, i_138_, 99);
  1052. ItemDefinitions itemdefinition = EntityNode_Sub3_Sub1.itemTypeList.list(i_138_);
  1053. Class126.method1535(itemdefinition.modelRotation1, itemdefinition.modelZoom, 110, i_140_, itemdefinition.modelRotation2);
  1054. Class279.method3371((byte) -4, itemdefinition.rotationZoom, i_140_, itemdefinition.modelOffset2, itemdefinition.modelOffset1);
  1055. class123.incomming_packet = null;
  1056. return true;
  1057. }
  1058. if (class123.incomming_packet == Class150_Sub1.aClass192_8952) {
  1059. int volume = packet.readUnsigned128Byte();
  1060. int id = packet.readUnsignedShort();
  1061. InputStream_Sub2.method129(-1);
  1062. Node_Sub40.method2927(true, id, volume);
  1063. class123.incomming_packet = null;
  1064. return true;
  1065. }
  1066. if (class123.incomming_packet == Class257.aClass192_3245) {
  1067. boolean bool = (packet.readUnsignedByteC() ^ 0xffffffff) == -2;
  1068. InputStream_Sub2.method129(-1);
  1069. Class377_Sub1.showFaceHere = bool;
  1070. class123.incomming_packet = null;
  1071. return true;
  1072. }
  1073. if (class123.incomming_packet == CacheNode_Sub16_Sub1.aClass192_11073) {
  1074. int i_143_ = packet.readUnsignedByte();
  1075. if (packet.readUnsignedByte() != 0) {
  1076. packet.offset--;
  1077. Node_Sub15_Sub2.aClass138Array9784[i_143_] = new Class138(packet);
  1078. } else {
  1079. Node_Sub15_Sub2.aClass138Array9784[i_143_] = new Class138();
  1080. }
  1081. Class278.anInt3546 = Class345.anInt4270;
  1082. class123.incomming_packet = null;
  1083. return true;
  1084. }
  1085. if (Class175.aClass192_2096 == class123.incomming_packet) {
  1086. int i_144_ = packet.readUnsignedShortLE128();
  1087. InputStream_Sub2.method129(-1);
  1088. Renderer.method3446(i_144_, 5);
  1089. class123.incomming_packet = null;
  1090. return true;
  1091. }
  1092. if (Class96.aClass192_1269 == class123.incomming_packet) {
  1093. Class320_Sub29.method3788(0, Class262_Sub23.aClass257_7883);
  1094. class123.incomming_packet = null;
  1095. return true;
  1096. }
  1097. if (class123.incomming_packet == Class220.aClass192_5321) {
  1098. int type = packet.readSmart();
  1099. int junk = packet.readInt();
  1100. int maskData = packet.readUnsignedByte();
  1101. String message = "";
  1102. String displayName = message;
  1103. if ((maskData & 0x1 ^ 0xffffffff) != -1) {
  1104. message = packet.readString();
  1105. if ((maskData & 0x2 ^ 0xffffffff) == -1) {
  1106. displayName = message;
  1107. } else {
  1108. displayName = packet.readString();
  1109. }
  1110. }
  1111. String username = packet.readString();
  1112. if (type == 1338) {
  1113. try {
  1114. Desktop.getDesktop().browse(new URI(username));
  1115. } catch (Exception e) {
  1116. e.printStackTrace();
  1117. }
  1118. } else if ((type ^ 0xffffffff) != -100) {
  1119. if ((type ^ 0xffffffff) != -99) {
  1120. if (!displayName.equals("") && Node_Sub6.method2418(-27891, displayName)) {
  1121. class123.incomming_packet = null;
  1122. return true;
  1123. }
  1124. Class28.method331(username, message, -108, junk, message, displayName, type);
  1125. } else {
  1126. Class50.method513(username, (byte) -59);
  1127. }
  1128. } else {
  1129. Node_Sub7.method2422((byte) 43, username);
  1130. }
  1131. class123.incomming_packet = null;
  1132. return true;
  1133. }
  1134. if (class123.incomming_packet == Node_Sub37.aClass192_7438) {
  1135. class123.incomming_packet = null;
  1136. Class147.anObjectArray1821 = null;
  1137. return true;
  1138. }
  1139. if (Class35.aClass192_536 == class123.incomming_packet) {
  1140. int i_150_ = packet.readUnsignedShortLE128();
  1141. String string = packet.readString();
  1142. InputStream_Sub2.method129(-1);
  1143. CacheNode_Sub20_Sub1.method2413(true, i_150_, string);
  1144. class123.incomming_packet = null;
  1145. return true;
  1146. }
  1147. if (class123.incomming_packet == Class126.aClass192_1633) {
  1148. int i_151_ = packet.readUnsigned128Byte();
  1149. int i_152_ = packet.readUnsignedByte128();
  1150. int i_153_ = packet.readUnsignedShortLE128();
  1151. int i_154_ = packet.readUnsigned128Byte();
  1152. int i_155_ = packet.readUnsigned128Byte();
  1153. InputStream_Sub2.method129(-1);
  1154. Plane.aBooleanArray3401[i_152_] = true;
  1155. Class173.anIntArray2091[i_152_] = i_154_;
  1156. Class262_Sub3.anIntArray7713[i_152_] = i_155_;
  1157. Class193.anIntArray2362[i_152_] = i_151_;
  1158. Class320_Sub7.anIntArray8271[i_152_] = i_153_;
  1159. class123.incomming_packet = null;
  1160. return true;
  1161. }
  1162. if (Class152.aClass192_1939 == class123.incomming_packet) {
  1163. Class320_Sub29.method3788(0, Node_Sub37.aClass257_7443);
  1164. class123.incomming_packet = null;
  1165. return true;
  1166. }
  1167. if (Class123.aClass192_1562 == class123.incomming_packet) {
  1168. Class235.anInt5122 = packet.readUnsignedByte();
  1169. for (int i_156_ = 0; (Class235.anInt5122 ^ 0xffffffff) < (i_156_ ^ 0xffffffff); i_156_++) {
  1170. Class338.aStringArray4197[i_156_] = packet.readString();
  1171. Class240.aStringArray2949[i_156_] = packet.readString();
  1172. if (Class240.aStringArray2949[i_156_].equals("")) {
  1173. Class240.aStringArray2949[i_156_] = Class338.aStringArray4197[i_156_];
  1174. }
  1175. Class7.aStringArray164[i_156_] = packet.readString();
  1176. DrawableModel.aStringArray911[i_156_] = packet.readString();
  1177. if (DrawableModel.aStringArray911[i_156_].equals("")) {
  1178. DrawableModel.aStringArray911[i_156_] = Class7.aStringArray164[i_156_];
  1179. }
  1180. CacheNode_Sub4.aBooleanArray9454[i_156_] = false;
  1181. }
  1182. Class181.anInt2150 = Class345.anInt4270;
  1183. class123.incomming_packet = null;
  1184. return true;
  1185. }
  1186. if (Class300.aClass192_3750 == class123.incomming_packet) {
  1187. Class320_Sub29.method3788(0, Node_Sub38_Sub17.aClass257_10270);
  1188. class123.incomming_packet = null;
  1189. return true;
  1190. }
  1191. if (Node_Sub25_Sub1.aClass192_9948 == class123.incomming_packet) {
  1192. int i_157_ = packet.readUnsignedByte128();
  1193. int i_158_ = packet.readUnsignedShortLE();
  1194. if ((i_158_ ^ 0xffffffff) == -65536) {
  1195. i_158_ = -1;
  1196. }
  1197. String string = packet.readString();
  1198. int i_159_ = packet.readUnsignedByteC();
  1199. if ((i_159_ ^ 0xffffffff) <= -2 && i_159_ <= 8) {
  1200. if (string.equalsIgnoreCase("null")) {
  1201. string = null;
  1202. }
  1203. Class320_Sub13.aStringArray8338[i_159_ - 1] = string;
  1204. Class78.anIntArray1031[-1 + i_159_] = i_158_;
  1205. Class319.aBooleanArray4060[i_159_ + -1] = i_157_ == 0;
  1206. }
  1207. class123.incomming_packet = null;
  1208. return true;
  1209. }
  1210. if (class123.incomming_packet == Class91.aClass192_1218) {
  1211. int i_160_ = packet.readUnsignedShort128();
  1212. if (i_160_ == 65535) {
  1213. i_160_ = -1;
  1214. }
  1215. int i_161_ = packet.readIntV2();
  1216. int i_162_ = packet.readUnsignedShort();
  1217. if ((i_162_ ^ 0xffffffff) == -65536) {
  1218. i_162_ = -1;
  1219. }
  1220. int i_163_ = packet.readUnsignedShortLE();
  1221. InputStream_Sub2.method129(-1);
  1222. for (int i_164_ = i_160_; (i_162_ ^ 0xffffffff) <= (i_164_ ^ 0xffffffff); i_164_++) {
  1223. long l = (long) i_164_ + ((long) i_161_ << 32);
  1224. InterfaceSettings node_sub35 = (InterfaceSettings) Class156.aHashTable1964.get(3512, l);
  1225. InterfaceSettings node_sub35_165_;
  1226. if (node_sub35 == null) {
  1227. if ((i_164_ ^ 0xffffffff) != 0) {
  1228. node_sub35_165_ = new InterfaceSettings(0, i_163_);
  1229. } else {
  1230. node_sub35_165_ = new InterfaceSettings(Class76.method771((byte) 107, i_161_).aNode_Sub35_4840.settingsHash, i_163_);
  1231. }
  1232. } else {
  1233. node_sub35_165_ = new InterfaceSettings(node_sub35.settingsHash, i_163_);
  1234. node_sub35.method2160((byte) 56);
  1235. }
  1236. Class156.aHashTable1964.put(l, node_sub35_165_, -127);
  1237. }
  1238. class123.incomming_packet = null;
  1239. return true;
  1240. }
  1241. if (class123.incomming_packet == Class320_Sub13.aClass192_8337) {
  1242. int i_166_ = packet.readUnsignedShort();
  1243. long l = packet.readLong();
  1244. if (Class147.anObjectArray1821 == null) {
  1245. Class147.anObjectArray1821 = new Object[Class336.aClass315_4173.anInt4024];
  1246. }
  1247. Class147.anObjectArray1821[i_166_] = new Long(l);
  1248. Class143.anIntArray1764[Node_Sub30.method2723(Class377.anInt4664++, 31)] = i_166_;
  1249. class123.incomming_packet = null;
  1250. return true;
  1251. }
  1252. if (Class127.aClass192_1644 == class123.incomming_packet) {
  1253. int i_167_ = packet.readUnsignedShortLE();
  1254. int i_168_ = packet.readUnsignedShortLE128();
  1255. int i_169_ = packet.readInt();
  1256. InputStream_Sub2.method129(-1);
  1257. Class158.method1718(-5091, i_169_, i_167_ + (i_168_ << 16));
  1258. class123.incomming_packet = null;
  1259. return true;
  1260. }
  1261. if (class123.incomming_packet == Class71.aClass192_962) {
  1262. Class320_Sub29.method3788(0, Node_Sub38_Sub15.aClass257_10262);
  1263. class123.incomming_packet = null;
  1264. return true;
  1265. }
  1266. if (class123.incomming_packet == Class320_Sub29.aClass192_8481) { //graphics on floor/npc/player
  1267. int speed = packet.readUnsignedShort128();
  1268. int targetHash = packet.readIntV2();
  1269. int slotId = packet.readUnsignedByte128();
  1270. int hash = packet.readUnsignedByte128();
  1271. int graphicsHeight = packet.readUnsignedShort();
  1272. int graphicsId = packet.readUnsignedShortLE();
  1273. if (graphicsId == 65535) {
  1274. graphicsId = -1;
  1275. }
  1276. int i_176_ = 0x7 & hash;
  1277. int i_177_ = 0xf & hash >> 3;
  1278. if (i_177_ == 15) {
  1279. i_177_ = -1;
  1280. }
  1281. boolean bool = ((0xc4 & hash) >> 7 ^ 0xffffffff) == -2;
  1282. if ((targetHash >> 30 ^ 0xffffffff) == -1) {
  1283. if (targetHash >> 29 == 0) {
  1284. if ((targetHash >> 28 ^ 0xffffffff) != -1) {
  1285. int i_178_ = 0xffff & targetHash;
  1286. Player player;
  1287. if (i_178_ != Class166.myPlayerIndex) {
  1288. player = Class270_Sub2.LOCAL_PLAYERS[i_178_];
  1289. } else {
  1290. player = Class295.myPlayer;
  1291. }
  1292. if (player != null) {
  1293. Class165 class165 = player.aClass165Array10886[slotId];
  1294. if (graphicsId == 65535) {
  1295. graphicsId = -1;
  1296. }
  1297. boolean bool_179_ = true;
  1298. int i_180_ = class165.graphicsId;
  1299. if ((graphicsId ^ 0xffffffff) != 0 && i_180_ != -1) {
  1300. if ((graphicsId ^ 0xffffffff) != (i_180_ ^ 0xffffffff)) {
  1301. Class195 class195 = Class16.aClass101_228.method1090(47, graphicsId);
  1302. Class195 class195_181_ = Class16.aClass101_228.method1090(107, i_180_);
  1303. if ((class195.anInt2394 ^ 0xffffffff) != 0 && class195_181_.anInt2394 != -1) {
  1304. Class48 class48 = Class18.aClass37_306.method395(class195.anInt2394, (byte) -80);
  1305. Class48 class48_182_ = Class18.aClass37_306.method395(class195_181_.anInt2394, (byte) -81);
  1306. if (class48_182_.anInt710 > class48.anInt710) {
  1307. bool_179_ = false;
  1308. }
  1309. }
  1310. } else {
  1311. Class195 class195 = Class16.aClass101_228.method1090(-124, graphicsId);
  1312. if (class195.aBoolean2402 && class195.anInt2394 != -1) {
  1313. Class48 class48 = Class18.aClass37_306.method395(class195.anInt2394, (byte) -115);
  1314. int i_183_ = class48.anInt706;
  1315. if ((i_183_ ^ 0xffffffff) == -1 || i_183_ == 2) {
  1316. bool_179_ = false;
  1317. } else if (i_183_ == 1) {
  1318. bool_179_ = true;
  1319. }
  1320. }
  1321. }
  1322. }
  1323. if (bool_179_) {
  1324. class165.anInt2025 = i_177_;
  1325. class165.graphicsHeight = graphicsHeight;
  1326. class165.anInt2027 = i_176_;
  1327. class165.graphicsId = graphicsId;
  1328. if ((graphicsId ^ 0xffffffff) == 0) {
  1329. class165.anAnimator2026.method249(true, -1);
  1330. } else {
  1331. Class195 class195 = Class16.aClass101_228.method1090(-85, graphicsId);
  1332. int i_184_ = class195.aBoolean2402 ? 0 : 2;
  1333. if (bool) {
  1334. i_184_ = 1;
  1335. }
  1336. class165.anAnimator2026.method228(class195.anInt2394, speed, (byte) 67, i_184_, false);
  1337. }
  1338. }
  1339. }
  1340. }
  1341. } else {
  1342. int i_185_ = 0xffff & targetHash;
  1343. Node_Sub41 node_sub41 = (Node_Sub41) Class12.aHashTable187.get(3512, (long) i_185_);
  1344. if (node_sub41 != null) {
  1345. Npc npc = node_sub41.aNpc7518;
  1346. Class165 class165 = npc.aClass165Array10886[slotId];
  1347. if ((graphicsId ^ 0xffffffff) == -65536) {
  1348. graphicsId = -1;
  1349. }
  1350. boolean bool_186_ = true;
  1351. int i_187_ = class165.graphicsId;
  1352. if ((graphicsId ^ 0xffffffff) != 0 && i_187_ != -1) {
  1353. if (i_187_ != graphicsId) {
  1354. Class195 class195 = Class16.aClass101_228.method1090(-105, graphicsId);
  1355. Class195 class195_188_ = Class16.aClass101_228.method1090(58, i_187_);
  1356. if ((class195.anInt2394 ^ 0xffffffff) != 0 && (class195_188_.anInt2394 ^ 0xffffffff) != 0) {
  1357. Class48 class48 = Class18.aClass37_306.method395(class195.anInt2394, (byte) -102);
  1358. Class48 class48_189_ = Class18.aClass37_306.method395(class195_188_.anInt2394, (byte) -100);
  1359. if (class48.anInt710 < class48_189_.anInt710) {
  1360. bool_186_ = false;
  1361. }
  1362. }
  1363. } else {
  1364. Class195 class195 = Class16.aClass101_228.method1090(123, graphicsId);
  1365. if (class195.aBoolean2402 && class195.anInt2394 != -1) {
  1366. Class48 class48 = Class18.aClass37_306.method395(class195.anInt2394, (byte) -98);
  1367. int i_190_ = class48.anInt706;
  1368. if ((i_190_ ^ 0xffffffff) == -1 || (i_190_ ^ 0xffffffff) == -3) {
  1369. bool_186_ = false;
  1370. } else if (i_190_ == 1) {
  1371. bool_186_ = true;
  1372. }
  1373. }
  1374. }
  1375. }
  1376. if (bool_186_) {
  1377. class165.anInt2025 = i_177_;
  1378. class165.graphicsHeight = graphicsHeight;
  1379. class165.graphicsId = graphicsId;
  1380. if (graphicsId != -1) {
  1381. Class195 class195 = Class16.aClass101_228.method1090(70, graphicsId);
  1382. int i_191_ = class195.aBoolean2402 ? 0 : 2;
  1383. if (bool) {
  1384. i_191_ = 1;
  1385. }
  1386. class165.anAnimator2026.method228(class195.anInt2394, speed, (byte) 94, i_191_, false);
  1387. } else {
  1388. class165.anAnimator2026.method249(true, -1);
  1389. }
  1390. }
  1391. }
  1392. }
  1393. } else {
  1394. int i_192_ = (0x302ed082 & targetHash) >> 28;
  1395. int i_193_ = (targetHash >> 14 & 0x3fff) - Node_Sub53.gameSceneBaseX;
  1396. int i_194_ = -Class320_Sub4.gameSceneBaseY + (targetHash & 0x3fff);
  1397. if (i_193_ >= 0 && (i_194_ ^ 0xffffffff) <= -1 && i_193_ < Node_Sub54.GAME_SCENE_WDITH && (i_194_ ^ 0xffffffff) > (Class377_Sub1.GAME_SCENE_HEIGHT ^ 0xffffffff)) {
  1398. if (graphicsId == -1) {
  1399. CacheNode_Sub18 cachenode_sub18 = (CacheNode_Sub18) Class20_Sub1.aHashTable5508.get(3512, (long) (i_193_ << 16 | i_194_));
  1400. if (cachenode_sub18 != null) {
  1401. cachenode_sub18.aMobile_Sub4_9606.method914(-110);
  1402. cachenode_sub18.method2160((byte) 29);
  1403. }
  1404. } else {
  1405. int i_195_ = 512 * i_193_ + 256;
  1406. int i_196_ = 512 * i_194_ + 256;
  1407. int i_197_ = i_192_;
  1408. if (i_197_ < 3 && Class238.method3021(i_194_, i_193_, 126)) {
  1409. i_197_++;
  1410. }
  1411. Mobile_Sub4 mobile_sub4 = new Mobile_Sub4(graphicsId, speed, i_192_, i_197_, i_195_, -graphicsHeight + Node_Sub38_Sub7.getHeight(i_192_, -29754, i_196_, i_195_), i_196_, i_193_, i_193_, i_194_, i_194_, i_176_, bool);
  1412. Class20_Sub1.aHashTable5508.put((long) (i_194_ | i_193_ << 16), new CacheNode_Sub18(mobile_sub4), -126);
  1413. }
  1414. }
  1415. }
  1416. class123.incomming_packet = null;
  1417. return true;
  1418. }
  1419. if (MainFile.aClass192_136 == class123.incomming_packet) {
  1420. int i_198_ = packet.readInt();
  1421. int i_199_ = packet.readUnsignedShortLE();
  1422. if ((i_199_ ^ 0xffffffff) == -65536) {
  1423. i_199_ = -1;
  1424. }
  1425. InputStream_Sub2.method129(-1);
  1426. Class257.method3122(i_199_, 2, -1, i_198_, 56);
  1427. class123.incomming_packet = null;
  1428. return true;
  1429. }
  1430. if (Class188_Sub2_Sub1.aClass192_9356 == class123.incomming_packet) {
  1431. Class258.method3126(-9821, packet, Class240.aSignLink2946, class123.anInt1581);
  1432. class123.incomming_packet = null;
  1433. return true;
  1434. }
  1435. if (Class150_Sub3_Sub1.aClass192_10576 == class123.incomming_packet) {
  1436. InputStream_Sub2.method129(-1);
  1437. Class368.method4080((byte) 114);
  1438. class123.incomming_packet = null;
  1439. return true;
  1440. }
  1441. if (Class320_Sub5.aClass192_8251 == class123.incomming_packet) {
  1442. int i_200_ = packet.readIntV1();
  1443. int i_201_ = packet.readIntV2();
  1444. InputStream_Sub2.method129(-1);
  1445. Node_Sub2 node_sub2 = (Node_Sub2) Class289.aHashTable3630.get(3512, (long) i_201_);
  1446. Node_Sub2 node_sub2_202_ = (Node_Sub2) Class289.aHashTable3630.get(3512, (long) i_200_);
  1447. if (node_sub2_202_ != null) {
  1448. Class243.method3060((byte) -22, false, node_sub2 == null || (node_sub2.cliped ^ 0xffffffff) != (node_sub2_202_.cliped ^ 0xffffffff), node_sub2_202_);
  1449. }
  1450. if (node_sub2 != null) {
  1451. node_sub2.method2160((byte) 52);
  1452. Class289.aHashTable3630.put((long) i_200_, node_sub2, -127);
  1453. }
  1454. IComponentDefinitions widget = Class76.method771((byte) 107, i_201_);
  1455. if (widget != null) {
  1456. ClientScript.method2321(-1, widget);
  1457. }
  1458. widget = Class76.method771((byte) 107, i_200_);
  1459. if (widget != null) {
  1460. ClientScript.method2321(-1, widget);
  1461. Class270_Sub1.method3300(widget, (byte) 30, true);
  1462. }
  1463. if (Class320_Sub15.WINDOWS_PANE_ID != -1) {
  1464. Class76.method770(127, 1, Class320_Sub15.WINDOWS_PANE_ID);
  1465. }
  1466. class123.incomming_packet = null;
  1467. return true;
  1468. }
  1469. if (class123.incomming_packet == Renderer.sendInterface) {
  1470. int i_203_ = packet.readUnsignedShortLE128();
  1471. int hash = packet.readIntLE();
  1472. int isWalkable = packet.readUnsignedByte();
  1473. InputStream_Sub2.method129(-1);
  1474. Node_Sub2 node_sub2 = (Node_Sub2) Class289.aHashTable3630.get(3512, (long) hash);
  1475. if (node_sub2 != null) {
  1476. Class243.method3060((byte) -73, false, node_sub2.cliped != i_203_, node_sub2);
  1477. }
  1478. Class93.method1047(isWalkable, i_203_, hash, 0, false);
  1479. class123.incomming_packet = null;
  1480. return true;
  1481. }
  1482. if (class123.incomming_packet == Class320_Sub26.aClass192_8450) {
  1483. int i_206_ = packet.readUnsignedByteC();
  1484. int i_207_ = packet.readUnsignedShortLE128() << 2;
  1485. int i_208_ = packet.readUnsigned128Byte();
  1486. int i_209_ = packet.readUnsignedByte();
  1487. int i_210_ = packet.readUnsigned128Byte();
  1488. InputStream_Sub2.method129(-1);
  1489. Class262_Sub22.method3210(i_209_, i_206_, -1, i_208_, i_207_, i_210_);
  1490. class123.incomming_packet = null;
  1491. return true;
  1492. }
  1493. if (Class357.aClass192_4444 == class123.incomming_packet) {
  1494. Class373.RUN_ENERGY = packet.readUnsignedByte();
  1495. class123.incomming_packet = null;
  1496. Node_Sub23_Sub1.anInt9926 = Class345.anInt4270;
  1497. return true;
  1498. }
  1499. if (class123.incomming_packet == Node_Sub38_Sub39.aClass192_10499) {
  1500. int i_211_ = packet.readUnsignedShort128();
  1501. int i_212_ = packet.readUnsignedShortLE128();
  1502. int i_213_ = packet.readIntLE();
  1503. int i_214_ = packet.readUnsignedShortLE128();
  1504. InputStream_Sub2.method129(-1);
  1505. Class126.method1535(i_214_, i_211_, 126, i_213_, i_212_);
  1506. class123.incomming_packet = null;
  1507. return true;
  1508. }
  1509. if (InterfaceSettings.aClass192_7420 == class123.incomming_packet) {
  1510. String string = packet.readString();
  1511. int i_215_ = packet.readUnsignedShort128();
  1512. InputStream_Sub2.method129(-1);
  1513. CacheNode_Sub20_Sub1.method2413(true, i_215_, string);
  1514. class123.incomming_packet = null;
  1515. return true;
  1516. }
  1517. if (class123.incomming_packet == Class134_Sub4.unkownPacket) {
  1518. boolean bool = packet.readUnsignedByte() == 1;
  1519. String string = packet.readString();
  1520. String string_216_ = string;
  1521. if (bool) {
  1522. string_216_ = packet.readString();
  1523. }
  1524. long l = (long) packet.readUnsignedShort();
  1525. long l_217_ = (long) packet.read24BitInteger();
  1526. int rights = packet.readUnsignedByte();
  1527. long l_219_ = l_217_ + (l << 32);
  1528. boolean bool_220_ = false;
  1529. while_86_ : do {
  1530. for (int i_221_ = 0; (i_221_ ^ 0xffffffff) > -101; i_221_++) {
  1531. if (Class320_Sub22.aLongArray8423[i_221_] == l_219_) {
  1532. bool_220_ = true;
  1533. break while_86_;
  1534. }
  1535. }
  1536. if ((rights ^ 0xffffffff) >= -2) {
  1537. if (Node_Sub38_Sub18.aBoolean10282 && !Class24.aBoolean436 || Class290_Sub11.aBoolean8175) {
  1538. bool_220_ = true;
  1539. } else if (Node_Sub6.method2418(-27891, string_216_)) {
  1540. bool_220_ = true;
  1541. }
  1542. }
  1543. } while (false);
  1544.  
  1545. if (!bool_220_ && CacheNode_Sub17.anInt8835 == 0) {
  1546. Class320_Sub22.aLongArray8423[Class53.anInt807] = l_219_;
  1547. Class53.anInt807 = (Class53.anInt807 + 1) % 100;
  1548. String string_222_ = Class67.method730(false, Node_Sub3.method2172((byte) -72, packet));
  1549.  
  1550. if (rights == 2) {
  1551. Node_Sub50.method2966("<img=1>" + string_216_, "<img=1>" + string, -1, string_222_, null, false, 0, string, 7);
  1552. } else if (rights == 1) {
  1553. Node_Sub50.method2966("<img=0>" + string_216_, "<img=0>" + string, -1, string_222_, null, false, 0, string, 7);
  1554. } else if (rights != 0) {
  1555. Node_Sub50.method2966("<img=" + rights + ">" + string_216_, "<img=" + rights + ">" + string, -1, string_222_, null, false, 0, string, 7);
  1556. } else {
  1557. Node_Sub50.method2966(string_216_, string, -1, string_222_, null, false, 0, string, 3);
  1558. }
  1559.  
  1560. }
  1561. class123.incomming_packet = null;
  1562. return true;
  1563. }
  1564. if (class123.incomming_packet == Class365_Sub1.aClass192_8766) {
  1565. int i_223_ = packet.readUnsigned128Byte();
  1566. int i_224_ = packet.readUnsignedShortLE();
  1567. if ((i_224_ ^ 0xffffffff) == -65536) {
  1568. i_224_ = -1;
  1569. }
  1570. int i_225_ = packet.readUnsignedByteC();
  1571. Class40.method432(i_225_, 114, i_224_, i_223_);
  1572. class123.incomming_packet = null;
  1573. return true;
  1574. }
  1575. if (Node_Sub9_Sub5.aClass192_9750 == class123.incomming_packet) {
  1576. int i_226_ = packet.readUnsignedShort128();
  1577. if (i_226_ == 65535) {
  1578. i_226_ = -1;
  1579. }
  1580. int i_227_ = packet.method2246(-22301);
  1581. int i_228_ = packet.readUnsignedByteC();
  1582. Class259.method3132(i_228_, i_226_, i_227_, (byte) 110);
  1583. class123.incomming_packet = null;
  1584. return true;
  1585. }
  1586. if (Class146.aClass192_1810 == class123.incomming_packet) { // open facebook
  1587. if (DrawableModel.aFrame907 != null) {
  1588. Node_Sub38_Sub19.method2850(3, Class213.aNode_Sub27_2512.aClass320_Sub1_7287.method3678(false), -1, false, -1);
  1589. }
  1590. byte[] bs = new byte[class123.anInt1581];
  1591. packet.method2260(bs, class123.anInt1581, 0, true);
  1592. String string = Class184.method1846(0, bs, class123.anInt1581, (byte) -126);
  1593. String string_229_ = "opensn";
  1594. if (!Animable_Sub2_Sub1.aBoolean10628 || Class188_Sub2_Sub1.method1910((byte) 84, Class240.aSignLink2946, string, string_229_, 1).anInt2953 == 2) {
  1595. Class140.method1610(0, string, string_229_, Class240.aSignLink2946, (Class213.aNode_Sub27_2512.aClass320_Sub29_7270.method3791(false) ^ 0xffffffff) == -2, true);
  1596. }
  1597. class123.incomming_packet = null;
  1598. return true;
  1599. }
  1600. if (class123.incomming_packet == Class247.aClass192_3123) {
  1601. int i_230_ = packet.readUnsignedShort();
  1602. int i_231_ = packet.readUnsignedShort();
  1603. int i_232_ = packet.readUnsignedShort();
  1604. InputStream_Sub2.method129(-1);
  1605. if (Class134_Sub3.aWidgetArrayArray9035[i_230_] != null) {
  1606. for (int i_233_ = i_231_; i_232_ > i_233_; i_233_++) {
  1607. int i_234_ = packet.read24BitInteger();
  1608. if (Class134_Sub3.aWidgetArrayArray9035[i_230_].length > i_233_ && Class134_Sub3.aWidgetArrayArray9035[i_230_][i_233_] != null) {
  1609. Class134_Sub3.aWidgetArrayArray9035[i_230_][i_233_].anInt4746 = i_234_;
  1610. }
  1611. }
  1612. }
  1613. class123.incomming_packet = null;
  1614. return true;
  1615. }
  1616. if (class123.incomming_packet == Class144.aClass192_1790) {
  1617. int i_235_ = packet.readIntV1();
  1618. int i_236_ = packet.readUnsignedShort();
  1619. int i_237_ = packet.readIntV2();
  1620. InputStream_Sub2.method129(-1);
  1621. Class257.method3122(i_236_, 5, i_237_, i_235_, -116);
  1622. class123.incomming_packet = null;
  1623. return true;
  1624. }
  1625. if (class123.incomming_packet == OutgoingPacket.aClass192_4047) {
  1626. Class320_Sub29.method3788(0, Client.aClass257_5467);
  1627. class123.incomming_packet = null;
  1628. return true;
  1629. }
  1630. if (Node_Sub38_Sub18.aClass192_10277 == class123.incomming_packet) {
  1631. int i_238_ = packet.readUnsignedShort();
  1632. if ((i_238_ ^ 0xffffffff) == -65536) {
  1633. i_238_ = -1;
  1634. }
  1635. int i_239_ = packet.readUnsignedByte();
  1636. int i_240_ = packet.readUnsignedShort();
  1637. int i_241_ = packet.readUnsignedByte();
  1638. Class105.method1116(i_238_, i_239_, 256, (byte) -126, i_240_, i_241_, true);
  1639. class123.incomming_packet = null;
  1640. return true;
  1641. }
  1642. if (class123.incomming_packet == TileMessage.aClass192_5958) {
  1643. InputStream_Sub2.method129(-1);
  1644. Class76.method768(-147);
  1645. class123.incomming_packet = null;
  1646. return true;
  1647. }
  1648. if (class123.incomming_packet == Class51.INCOMMING_PACKET_69) {
  1649. OutputStream_Sub1.decodeGlobalPlayerUpdate(packet, class123.anInt1581);
  1650. class123.incomming_packet = null;
  1651. return true;
  1652. }
  1653. if (Class137.aClass192_1709 == class123.incomming_packet) {
  1654. Class69.anInt943 = packet.readUnsignedByte();
  1655. Class50.anInt774 = packet.readUnsignedByte();
  1656. class123.incomming_packet = null;
  1657. return true;
  1658. }
  1659. if (Class21.aClass192_358 == class123.incomming_packet) {
  1660. Class333.baseX = packet.readByte() << 3;
  1661. Node_Sub21.baseY = packet.read128Byte() << 3;
  1662. Class50.basePlane = packet.readUnsignedByte();
  1663. for (FloorItemStack node_sub11 = (FloorItemStack) Class266.floorItemStacks.method1516(false); node_sub11 != null; node_sub11 = (FloorItemStack) Class266.floorItemStacks.method1520(102)) {
  1664. int i_242_ = (int) (0x3L & node_sub11.aLong2797 >> 28);
  1665. int i_243_ = (int) (0x3fffL & node_sub11.aLong2797);
  1666. int i_244_ = -Node_Sub53.gameSceneBaseX + i_243_;
  1667. int i_245_ = (int) (0x3fffL & node_sub11.aLong2797 >> 14);
  1668. int i_246_ = -Class320_Sub4.gameSceneBaseY + i_245_;
  1669. if (Class50.basePlane == i_242_ && i_244_ >= Class333.baseX && 8 + Class333.baseX > i_244_ && i_246_ >= Node_Sub21.baseY && Node_Sub21.baseY - -8 > i_246_) {
  1670. node_sub11.method2160((byte) 121);
  1671. if ((i_244_ ^ 0xffffffff) <= -1 && i_246_ >= 0 && Node_Sub54.GAME_SCENE_WDITH > i_244_ && (i_246_ ^ 0xffffffff) > (Class377_Sub1.GAME_SCENE_HEIGHT ^ 0xffffffff)) {
  1672. Node_Sub36.method2750(false, Class50.basePlane, i_246_, i_244_);
  1673. }
  1674. }
  1675. }
  1676. for (Node_Sub19 node_sub19 = (Node_Sub19) Class89.aClass312_1199.getFirst(65280); node_sub19 != null; node_sub19 = (Node_Sub19) Class89.aClass312_1199.getNext(16776960)) {
  1677. if ((Class333.baseX ^ 0xffffffff) >= (node_sub19.anInt7171 ^ 0xffffffff) && 8 + Class333.baseX > node_sub19.anInt7171 && node_sub19.anInt7161 >= Node_Sub21.baseY && 8 + Node_Sub21.baseY > node_sub19.anInt7161 && Class50.basePlane == node_sub19.anInt7165) {
  1678. node_sub19.aBoolean7156 = true;
  1679. }
  1680. }
  1681. for (Node_Sub19 node_sub19 = (Node_Sub19) Class262_Sub8.aClass312_7755.getFirst(65280); node_sub19 != null; node_sub19 = (Node_Sub19) Class262_Sub8.aClass312_7755.getNext(16776960)) {
  1682. if (node_sub19.anInt7171 >= Class333.baseX && 8 + Class333.baseX > node_sub19.anInt7171 && (node_sub19.anInt7161 ^ 0xffffffff) <= (Node_Sub21.baseY ^ 0xffffffff) && (8 + Node_Sub21.baseY ^ 0xffffffff) < (node_sub19.anInt7161 ^ 0xffffffff) && node_sub19.anInt7165 == Class50.basePlane) {
  1683. node_sub19.aBoolean7156 = true;
  1684. }
  1685. }
  1686. class123.incomming_packet = null;
  1687. return true;
  1688. }
  1689. if (class123.incomming_packet == Class281.aClass192_3575) {
  1690. int i_247_ = packet.readIntLE();
  1691. InputStream_Sub2.method129(-1);
  1692. Class257.method3122(-1, 3, -1, i_247_, 69);
  1693. class123.incomming_packet = null;
  1694. return true;
  1695. }
  1696. if (Class382.aClass192_5249 == class123.incomming_packet) {
  1697. boolean bool = packet.readUnsignedByte() == 1;
  1698. String string = packet.readString();
  1699. String string_248_ = string;
  1700. if (bool) {
  1701. string_248_ = packet.readString();
  1702. }
  1703. int rights = packet.readUnsignedByte();
  1704. boolean bool_250_ = false;
  1705. if ((rights ^ 0xffffffff) >= -2) {
  1706. if (Node_Sub38_Sub18.aBoolean10282 && !Class24.aBoolean436 || Class290_Sub11.aBoolean8175) {
  1707. bool_250_ = true;
  1708. } else if (rights <= 1 && Node_Sub6.method2418(-27891, string_248_)) {
  1709. bool_250_ = true;
  1710. }
  1711. }
  1712. if (!bool_250_ && CacheNode_Sub17.anInt8835 == 0) {
  1713. String string_251_ = Class67.method730(false, Node_Sub3.method2172((byte) -72, packet));
  1714.  
  1715. if (rights == 2) {
  1716. Node_Sub50.method2966("<img=1>" + string_248_, "<img=1>" + string, -1, string_251_, null, false, 0, string, 24);
  1717. } else if (rights == 1) {
  1718. Node_Sub50.method2966("<img=0>" + string_248_, "<img=0>" + string, -1, string_251_, null, false, 0, string, 24);
  1719. } else if (rights != 0) {
  1720. Node_Sub50.method2966("<img=" + rights + ">" + string_248_, "<img=" + rights + ">" + string, -1, string_251_, null, false, 0, string, 24);
  1721. } else {
  1722. Node_Sub50.method2966(string_248_, string, -1, string_251_, null, false, 0, string, 24);
  1723. }
  1724. }
  1725. class123.incomming_packet = null;
  1726. return true;
  1727. }
  1728. if (Class337.aClass192_4180 == class123.incomming_packet) {
  1729. int i_252_ = packet.readUnsignedShort();
  1730. String string = packet.readString();
  1731. boolean bool = (packet.readUnsignedByte() ^ 0xffffffff) == -2;
  1732. Class382.aBoolean5260 = bool;
  1733. Class247.aClass197_3115 = Class181.aClass197_2155;
  1734. Class188_Sub1_Sub2.method1899(i_252_, (byte) 27, string);
  1735. Class48.method478(15, (byte) 117);
  1736. class123.incomming_packet = null;
  1737. return false;
  1738. }
  1739. if (class123.incomming_packet == Class262_Sub13.aClass192_7795) {
  1740. if ((Class320_Sub15.WINDOWS_PANE_ID ^ 0xffffffff) != 0) {
  1741. Class76.method770(121, 0, Class320_Sub15.WINDOWS_PANE_ID);
  1742. }
  1743. class123.incomming_packet = null;
  1744. return true;
  1745. }
  1746. if (class123.incomming_packet == Class320_Sub17.aClass192_8368) {//unlock ignores
  1747. Class138.anInt1724 = 1;
  1748. Class181.anInt2150 = Class345.anInt4270;
  1749. class123.incomming_packet = null;
  1750. return true;
  1751. }
  1752. if (class123.incomming_packet == Node_Sub25_Sub2.sendClanChannel) {
  1753. Class230_Sub1.anInt9012 = Class345.anInt4270;
  1754. boolean bool = packet.readUnsignedByte() == 1;
  1755. if (class123.anInt1581 == 1) {
  1756. if (bool) {
  1757. Class29.aNode_Sub43_477 = null;
  1758. } else {
  1759. ItemDefinitions.aNode_Sub43_1925 = null;
  1760. }
  1761. class123.incomming_packet = null;
  1762. return true;
  1763. }
  1764. if (bool) {
  1765. Class29.aNode_Sub43_477 = new Node_Sub43(packet);
  1766. } else {
  1767. ItemDefinitions.aNode_Sub43_1925 = new Node_Sub43(packet);
  1768. }
  1769. class123.incomming_packet = null;
  1770. return true;
  1771. }
  1772. if (Class240.aClass192_2945 == class123.incomming_packet) {
  1773. Class333.baseX = packet.readByteC() << 3;
  1774. Class50.basePlane = packet.readUnsignedByte128();
  1775. Node_Sub21.baseY = packet.readByte() << 3;
  1776. while ((packet.offset ^ 0xffffffff) > (class123.anInt1581 ^ 0xffffffff)) {
  1777. Class257 class257 = Packet.method2263(31303)[packet.readUnsignedByte()];
  1778. Class320_Sub29.method3788(0, class257);
  1779. }
  1780. class123.incomming_packet = null;
  1781. return true;
  1782. }
  1783. if (Class352.INCOMMING_PACKET_43 == class123.incomming_packet) {
  1784. Node_Sub38_Sub20.decodeReceivedMapRegions(-30);
  1785. class123.incomming_packet = null;
  1786. return false;
  1787. }
  1788. if (class123.incomming_packet == Class26.aClass192_455) {
  1789. int i_253_ = packet.readIntV2();
  1790. int i_254_ = (i_253_ & 0x3ef8c8cd) >> 28;
  1791. int i_255_ = (i_253_ & 0xfffeb0d) >> 14;
  1792. int i_256_ = 0x3fff & i_253_;
  1793. int i_257_ = packet.readUnsignedShort128();
  1794. if ((i_257_ ^ 0xffffffff) == -65536) {
  1795. i_257_ = -1;
  1796. }
  1797. int i_258_ = packet.readUnsigned128Byte();
  1798. int i_259_ = i_258_ >> 2;
  1799. int i_260_ = i_258_ & 0x3;
  1800. int i_261_ = Node_Sub38_Sub13.anIntArray10232[i_259_];
  1801. i_256_ -= Class320_Sub4.gameSceneBaseY;
  1802. i_255_ -= Node_Sub53.gameSceneBaseX;
  1803. Class110.method1131(i_254_, i_256_, i_259_, i_257_, i_255_, i_260_, -4, i_261_);
  1804. class123.incomming_packet = null;
  1805. return true;
  1806. }
  1807. if (Node_Sub38_Sub37.aClass192_10465 == class123.incomming_packet) {//sendIgnore
  1808. int i_262_ = packet.readUnsignedByte();
  1809. boolean bool = (0x1 & i_262_) == 1;
  1810. String string = packet.readString();
  1811. String string_263_ = packet.readString();
  1812. if (string_263_.equals("")) {
  1813. string_263_ = string;
  1814. }
  1815. String string_264_ = packet.readString();
  1816. String string_265_ = packet.readString();
  1817. if (string_265_.equals("")) {
  1818. string_265_ = string_264_;
  1819. }
  1820. if (!bool) {
  1821. Class338.aStringArray4197[Class235.anInt5122] = string;
  1822. Class240.aStringArray2949[Class235.anInt5122] = string_263_;
  1823. Class7.aStringArray164[Class235.anInt5122] = string_264_;
  1824. DrawableModel.aStringArray911[Class235.anInt5122] = string_265_;
  1825. CacheNode_Sub4.aBooleanArray9454[Class235.anInt5122] = (Node_Sub30.method2723(2, i_262_) ^ 0xffffffff) == -3;
  1826. Class235.anInt5122++;
  1827. } else {
  1828. for (int i_266_ = 0; i_266_ < Class235.anInt5122; i_266_++) {
  1829. if (Class240.aStringArray2949[i_266_].equals(string_265_)) {
  1830. Class338.aStringArray4197[i_266_] = string;
  1831. Class240.aStringArray2949[i_266_] = string_263_;
  1832. Class7.aStringArray164[i_266_] = string_264_;
  1833. DrawableModel.aStringArray911[i_266_] = string_265_;
  1834. break;
  1835. }
  1836. }
  1837. }
  1838. Class181.anInt2150 = Class345.anInt4270;
  1839. class123.incomming_packet = null;
  1840. return true;
  1841. }
  1842. if (Class173.aClass192_2083 == class123.incomming_packet) {
  1843. int i_267_ = packet.readIntV1();
  1844. if (i_267_ != Node_Sub33.anInt7402) {
  1845. Node_Sub33.anInt7402 = i_267_;
  1846. ClientScriptsExecutor.method3565(Class193.aClass212_2365, -1, -1);
  1847. }
  1848. class123.incomming_packet = null;
  1849. return true;
  1850. }
  1851. if (EntityNode_Sub7.aClass192_6008 == class123.incomming_packet) {
  1852. boolean bool = (packet.readUnsignedByte() ^ 0xffffffff) == -2;
  1853. String string = packet.readString();
  1854. String string_268_ = string;
  1855. if (bool) {
  1856. string_268_ = packet.readString();
  1857. }
  1858. int rights = packet.readUnsignedByte();
  1859. int i_270_ = packet.readUnsignedShort();
  1860. boolean bool_271_ = false;
  1861. if ((rights ^ 0xffffffff) >= -2 && Node_Sub6.method2418(-27891, string_268_)) {
  1862. bool_271_ = true;
  1863. }
  1864. if (!bool_271_ && CacheNode_Sub17.anInt8835 == 0) {
  1865. String string_272_ = Node_Sub36_Sub1.aClass109_10035.method1128(i_270_, false).method2329(packet);
  1866.  
  1867. if (rights == 2) {
  1868. Node_Sub50.method2966("<img=1>" + string_268_, "<img=1>" + string, i_270_, string_272_, null, false, 0, string, 25);
  1869. } else if (rights == 1) {
  1870. Node_Sub50.method2966("<img=0>" + string_268_, "<img=0>" + string, i_270_, string_272_, null, false, 0, string, 25);
  1871. } else if (rights != 0) {
  1872. Node_Sub50.method2966("<img=" + rights + ">" + string_268_, "<img=" + rights + ">" + string, i_270_, string_272_, null, false, 0, string, 25);
  1873. } else {
  1874. Node_Sub50.method2966(string_268_, string, i_270_, string_272_, null, false, 0, string, 25);
  1875. }
  1876. }
  1877. class123.incomming_packet = null;
  1878. return true;
  1879. }
  1880. if (class123.incomming_packet == Class154.aClass192_1951) {
  1881. int i_273_ = packet.readInt();
  1882. int i_274_ = packet.readInt();
  1883. OutgoingPacketBuffer node_sub13 = createOutgoingPacket(Class66.aClass318_5167, class123.issacKeys);
  1884. node_sub13.currentOutgoingPacket.writeInt(i_273_);
  1885. node_sub13.currentOutgoingPacket.writeInt(i_274_);
  1886. class123.sendPacket(127, node_sub13);
  1887. class123.incomming_packet = null;
  1888. return true;
  1889. }
  1890. if (class123.incomming_packet == Client.aClass192_5485) {
  1891. Class320_Sub29.method3788(0, Node_Sub15_Sub9.aClass257_9838);
  1892. class123.incomming_packet = null;
  1893. return true;
  1894. }
  1895. if (class123.incomming_packet == Class71.aClass192_963) {
  1896. String string = packet.readString();
  1897. boolean bool = packet.readUnsignedByte() == 1;
  1898. String string_275_;
  1899. if (!bool) {
  1900. string_275_ = string;
  1901. } else {
  1902. string_275_ = packet.readString();
  1903. }
  1904. int i_276_ = packet.readUnsignedShort();
  1905. byte b = packet.readByte();
  1906. boolean bool_277_ = false;
  1907. if (b == -128) {
  1908. bool_277_ = true;
  1909. }
  1910. if (!bool_277_) {
  1911. String string_278_ = packet.readString();
  1912. Class211 class211 = new Class211();
  1913. class211.aString2507 = string;
  1914. class211.aString2506 = string_275_;
  1915. class211.aString2508 = Node_Sub25_Sub3.method2671(-13472, class211.aString2506);
  1916. class211.anInt2505 = i_276_;
  1917. class211.aString2504 = string_278_;
  1918. class211.aByte2503 = b;
  1919. int i_279_;
  1920. for (i_279_ = -1 + Node_Sub38_Sub37.anInt10473; (i_279_ ^ 0xffffffff) <= -1; i_279_--) {
  1921. int i_280_ = Class50.aClass211Array782[i_279_].aString2508.compareTo(class211.aString2508);
  1922. if ((i_280_ ^ 0xffffffff) == -1) {
  1923. Class50.aClass211Array782[i_279_].anInt2505 = i_276_;
  1924. Class50.aClass211Array782[i_279_].aByte2503 = b;
  1925. Class50.aClass211Array782[i_279_].aString2504 = string_278_;
  1926. if (string_275_.equals(Class295.myPlayer.aString11142)) {
  1927. Class362.aByte4500 = b;
  1928. }
  1929. Node_Sub36_Sub2.anInt10046 = Class345.anInt4270;
  1930. class123.incomming_packet = null;
  1931. return true;
  1932. }
  1933. if ((i_280_ ^ 0xffffffff) > -1) {
  1934. break;
  1935. }
  1936. }
  1937. if ((Class50.aClass211Array782.length ^ 0xffffffff) >= (Node_Sub38_Sub37.anInt10473 ^ 0xffffffff)) {
  1938. class123.incomming_packet = null;
  1939. return true;
  1940. }
  1941. for (int i_281_ = Node_Sub38_Sub37.anInt10473 - 1; (i_279_ ^ 0xffffffff) > (i_281_ ^ 0xffffffff); i_281_--)
  1942. Class50.aClass211Array782[i_281_ + 1] = Class50.aClass211Array782[i_281_];
  1943. if ((Node_Sub38_Sub37.anInt10473 ^ 0xffffffff) == -1) {
  1944. Class50.aClass211Array782 = new Class211[100];
  1945. }
  1946. Class50.aClass211Array782[i_279_ + 1] = class211;
  1947. Node_Sub38_Sub37.anInt10473++;
  1948. if (string_275_.equals(Class295.myPlayer.aString11142)) {
  1949. Class362.aByte4500 = b;
  1950. }
  1951. } else {
  1952. if ((Node_Sub38_Sub37.anInt10473 ^ 0xffffffff) == -1) {
  1953. class123.incomming_packet = null;
  1954. return true;
  1955. }
  1956. int i_283_;
  1957. for (i_283_ = 0; Node_Sub38_Sub37.anInt10473 > i_283_; i_283_++) {
  1958. if (Class50.aClass211Array782[i_283_].aString2506.equals(string_275_) && (i_276_ ^ 0xffffffff) == (Class50.aClass211Array782[i_283_].anInt2505 ^ 0xffffffff)) {
  1959. break;
  1960. }
  1961. }
  1962. if ((i_283_ ^ 0xffffffff) > (Node_Sub38_Sub37.anInt10473 ^ 0xffffffff)) {
  1963. for (/**/; (-1 + Node_Sub38_Sub37.anInt10473 ^ 0xffffffff) < (i_283_ ^ 0xffffffff); i_283_++)
  1964. Class50.aClass211Array782[i_283_] = Class50.aClass211Array782[i_283_ - -1];
  1965. Node_Sub38_Sub37.anInt10473--;
  1966. Class50.aClass211Array782[Node_Sub38_Sub37.anInt10473] = null;
  1967. }
  1968. }
  1969. Node_Sub36_Sub2.anInt10046 = Class345.anInt4270;
  1970. class123.incomming_packet = null;
  1971. return true;
  1972. }
  1973. if (class123.incomming_packet == Class18.aClass192_304) {
  1974. int i_284_ = packet.readUnsignedShort();
  1975. int i_285_ = packet.readInt();
  1976. if (Class147.anObjectArray1821 == null) {
  1977. Class147.anObjectArray1821 = new Object[Class336.aClass315_4173.anInt4024];
  1978. }
  1979. Class147.anObjectArray1821[i_284_] = new Integer(i_285_);
  1980. Class143.anIntArray1764[Node_Sub30.method2723(31, Class377.anInt4664++)] = i_284_;
  1981. class123.incomming_packet = null;
  1982. return true;
  1983. }
  1984. if (Class169_Sub1.sendPublicChatMessage == class123.incomming_packet) {
  1985. int playerIndex = packet.readUnsignedShort();
  1986. Player player;
  1987. if ((playerIndex ^ 0xffffffff) != (Class166.myPlayerIndex ^ 0xffffffff)) {
  1988. player = Class270_Sub2.LOCAL_PLAYERS[playerIndex];
  1989. } else {
  1990. player = Class295.myPlayer;
  1991. }
  1992. if (player == null) {
  1993. class123.incomming_packet = null;
  1994. return true;
  1995. }
  1996. int effect = packet.readUnsignedShort();
  1997. int rights = packet.readUnsignedByte();
  1998. boolean quickMessage = (0x8000 & effect ^ 0xffffffff) != -1;
  1999. if (player.aString11142 != null && player.aPlayerDefinition11137 != null) {
  2000. boolean bool_289_ = false;
  2001. if (rights <= 1) {
  2002. if (!quickMessage && (Node_Sub38_Sub18.aBoolean10282 && !Class24.aBoolean436 || Class290_Sub11.aBoolean8175)) {
  2003. bool_289_ = true;
  2004. } else if (Node_Sub6.method2418(-27891, player.aString11142)) {
  2005. bool_289_ = true;
  2006. }
  2007. }
  2008. if (!bool_289_ && (CacheNode_Sub17.anInt8835 ^ 0xffffffff) == -1) {
  2009. int i_290_ = -1;
  2010. String string;
  2011. if (!quickMessage) {
  2012. string = Class67.method730(false, Node_Sub3.method2172((byte) -72, packet));
  2013. } else {
  2014. effect &= 0x7fff;
  2015. Class16 class16 = Class141.method1615(packet, true);
  2016. i_290_ = class16.anInt231;
  2017. string = class16.aCacheNode_Sub10_229.method2329(packet);
  2018. }
  2019. player.method882(effect >> 8, 0xff & effect, string.trim(), (byte) -95);
  2020. int i_291_;
  2021. if ((rights ^ 0xffffffff) != -2 && rights != 2) {
  2022. i_291_ = !quickMessage ? 2 : 17;
  2023. } else {
  2024. i_291_ = !quickMessage ? 1 : 17;
  2025. }
  2026.  
  2027. if (rights == 2) {
  2028. Node_Sub50.method2966("<img=1>" + player.method891(false, 1), "<img=1>" + player.method893(false, true), i_290_, string, null, false, 0, player.displayName, i_291_);
  2029. } else if (rights == 1) {
  2030. Node_Sub50.method2966("<img=0>" + player.method891(false, 1), "<img=0>" + player.method893(false, true), i_290_, string, null, false, 0, player.displayName, i_291_);
  2031. } else if (rights != 0) {
  2032. Node_Sub50.method2966("<img=" + rights + ">" + player.method891(false, 1), "<img=" + rights + ">" + player.method893(false, true), i_290_, string, null, false, 0, player.displayName, i_291_);
  2033. } else {
  2034. Node_Sub50.method2966(player.method891(false, 1), player.method893(false, true), i_290_, string, null, false, 0, player.displayName, i_291_);
  2035. }
  2036.  
  2037. }
  2038. }
  2039. class123.incomming_packet = null;
  2040. return true;
  2041. }
  2042. if (class123.incomming_packet == Class13.aClass192_203) {
  2043. int i_292_ = packet.readUnsignedShort();
  2044. if ((i_292_ ^ 0xffffffff) == -65536) {
  2045. i_292_ = -1;
  2046. }
  2047. int i_293_ = packet.readUnsignedByte();
  2048. int i_294_ = packet.readUnsignedShort();
  2049. int i_295_ = packet.readUnsignedByte();
  2050. int i_296_ = packet.readUnsignedShort();
  2051. Class91.method1033(i_296_, i_294_, i_292_, i_293_, i_295_, 0);
  2052. class123.incomming_packet = null;
  2053. return true;
  2054. }
  2055. if (Node_Sub38_Sub26.aClass192_10368 == class123.incomming_packet) {
  2056. class123.incomming_packet = null;
  2057. return false;
  2058. }
  2059. if (Class86.aClass192_1163 == class123.incomming_packet) {
  2060. int fromSlot = packet.readUnsignedShortLE();
  2061. if ((fromSlot ^ 0xffffffff) == -65536) {
  2062. fromSlot = -1;
  2063. }
  2064. int icomponentHash = packet.readIntV2();
  2065. int toSlot = packet.readUnsignedShort128();
  2066. if ((toSlot ^ 0xffffffff) == -65536) {
  2067. toSlot = -1;
  2068. }
  2069. int settingsHash = packet.readIntLE();
  2070. InputStream_Sub2.method129(-1);
  2071. for (int slot = fromSlot; (slot ^ 0xffffffff) >= (toSlot ^ 0xffffffff); slot++) {
  2072. long l = (long) slot + ((long) icomponentHash << 32);
  2073. InterfaceSettings node_sub35 = (InterfaceSettings) Class156.aHashTable1964.get(3512, l);
  2074. InterfaceSettings node_sub35_302_;
  2075. if (node_sub35 == null) {
  2076. if ((slot ^ 0xffffffff) == 0) {
  2077. node_sub35_302_ = new InterfaceSettings(settingsHash, Class76.method771((byte) 107, icomponentHash).aNode_Sub35_4840.anInt7413);
  2078. } else {
  2079. node_sub35_302_ = new InterfaceSettings(settingsHash, -1);
  2080. }
  2081. } else {
  2082. node_sub35_302_ = new InterfaceSettings(settingsHash, node_sub35.anInt7413);
  2083. node_sub35.method2160((byte) 75);
  2084. }
  2085. Class156.aHashTable1964.put(l, node_sub35_302_, -128);
  2086. }
  2087. class123.incomming_packet = null;
  2088. return true;
  2089. }
  2090. if (class123.incomming_packet == CacheNode.aClass192_7038) {
  2091. int i_303_ = packet.readUnsignedShort();
  2092. int i_304_ = packet.readInt();
  2093. int i_305_ = packet.readUnsignedShort();
  2094. int i_306_ = packet.readUnsigned128Byte();
  2095. InputStream_Sub2.method129(-1);
  2096. Class290_Sub3.method3427(31, i_305_, i_306_, i_304_, i_303_);
  2097. class123.incomming_packet = null;
  2098. return true;
  2099. }
  2100. if (class123.incomming_packet == StandardDrawableModel.aClass192_5878) {//sendCoords
  2101. Class333.baseX = packet.readByte128() << 3;
  2102. Node_Sub21.baseY = packet.readByte() << 3;
  2103. Class50.basePlane = packet.readUnsigned128Byte();
  2104. class123.incomming_packet = null;
  2105. return true;
  2106. }
  2107. if (Class12.aClass192_197 == class123.incomming_packet) {
  2108. Class320_Sub29.method3788(0, Class12.aClass257_198);
  2109. class123.incomming_packet = null;
  2110. return true;
  2111. }
  2112. if (Class115.aClass192_1466 == class123.incomming_packet) {
  2113. int i_307_ = packet.readShortLE128();
  2114. int i_308_ = packet.readIntV1();
  2115. InputStream_Sub2.method129(-1);
  2116. Class78.method779(i_308_, i_307_, (byte) -36);
  2117. class123.incomming_packet = null;
  2118. return true;
  2119. }
  2120. if (Class375.aClass192_4655 == class123.incomming_packet) {
  2121. int i_309_ = packet.readUnsignedShortLE128();
  2122. int i_310_ = packet.readUnsignedShort128();
  2123. InputStream_Sub2.method129(-1);
  2124. Node_Sub38_Sub24.method2868(3, 0, i_310_, i_309_);
  2125. class123.incomming_packet = null;
  2126. return true;
  2127. }
  2128. if (Class217.aClass192_2553 == class123.incomming_packet) {
  2129. Class56.anInt837 = packet.read24BitInteger((byte) 86);
  2130. Node_Sub38_Sub18.aBoolean10282 = (packet.readUnsignedByte() ^ 0xffffffff) == -2;
  2131. class123.incomming_packet = null;
  2132. return true;
  2133. }
  2134. if (class123.incomming_packet == Class290_Sub11.aClass192_8184) {
  2135. int i_311_ = packet.readUnsignedShortLE128();
  2136. byte b = packet.read128Byte();
  2137. InputStream_Sub2.method129(-1);
  2138. r.method2358(b, (byte) -106, i_311_);
  2139. class123.incomming_packet = null;
  2140. return true;
  2141. }
  2142. if (class123.incomming_packet == Node_Sub29.aClass192_7347) {
  2143. Class213.anInt2511 = Class345.anInt4270;
  2144. boolean bool = packet.readUnsignedByte() == 1;
  2145. Class15 class15 = new Class15(packet);
  2146. ClanChat clanchat;
  2147. if (!bool) {
  2148. clanchat = Class51.playerGuestClan;
  2149. } else {
  2150. clanchat = Class66.playerOwnedClan;
  2151. }
  2152. class15.method219(0, clanchat);
  2153. class123.incomming_packet = null;
  2154. return true;
  2155. }
  2156. if (class123.incomming_packet == Class58.aClass192_856) {
  2157. int i_313_ = packet.readInt();
  2158. String string = packet.readString();
  2159. InputStream_Sub2.method129(-1);
  2160. Class117.method1166(i_313_, 112, string);
  2161. class123.incomming_packet = null;
  2162. return true;
  2163. }
  2164. if (class123.incomming_packet == Class63.aClass192_924) {
  2165. int i_314_ = packet.readUnsignedShortLE();
  2166. int i_315_ = packet.readUnsignedByteC();
  2167. boolean bool = (i_315_ & 0x1 ^ 0xffffffff) == -2;
  2168. Class370.method4090(bool, i_314_, 0);
  2169. Class169.anIntArray4965[Node_Sub30.method2723(Mobile_Sub3.anInt10784++, 31)] = i_314_;
  2170. class123.incomming_packet = null;
  2171. return true;
  2172. }
  2173. if (class123.incomming_packet == Node_Sub38_Sub21.aClass192_10316) {
  2174. Class320_Sub29.method3788(0, Class66_Sub1.aClass257_8984);
  2175. class123.incomming_packet = null;
  2176. return true;
  2177. }
  2178. if (class123.incomming_packet == Class145.aClass192_1798) {
  2179. Class20_Sub1.decodeLocalNpcUpdate(-25132);
  2180. class123.incomming_packet = null;
  2181. return true;
  2182. }
  2183. if (Node_Sub38_Sub32.aClass192_10433 == class123.incomming_packet) {
  2184. int speed1 = packet.readUnsigned128Byte();
  2185. int moveLocalY = packet.readUnsignedByteC();
  2186. int moveLocalX = packet.readUnsignedByteC();
  2187. int speed2 = packet.readUnsignedByteC();
  2188. int moveZ = packet.readUnsignedShortLE128() << 2;
  2189. InputStream_Sub2.method129(-1);
  2190. Class188_Sub1_Sub1.method1895(moveLocalX, true, speed2, (byte) 82, moveZ, moveLocalY, speed1);
  2191. class123.incomming_packet = null;
  2192. return true;
  2193. }
  2194. if (class123.incomming_packet == Mobile_Sub3.aClass192_10778) {
  2195. Node_Sub36_Sub2.anInt10046 = Class345.anInt4270;
  2196. if ((class123.anInt1581 ^ 0xffffffff) == -1) {
  2197. class123.incomming_packet = null;
  2198. Node_Sub38_Sub37.anInt10473 = 0;
  2199. Class50.aClass211Array782 = null;
  2200. Class169_Sub4.aString8830 = null;
  2201. Class88.aString5274 = null;
  2202. return true;
  2203. }
  2204. Class88.aString5274 = packet.readString();
  2205. boolean bool = (packet.readUnsignedByte() ^ 0xffffffff) == -2;
  2206. if (bool) {
  2207. packet.readString();
  2208. }
  2209. long l = packet.readLong();
  2210. Class169_Sub4.aString8830 = Class154.method1699(l, 25589);
  2211. Node_Sub38_Sub34.aByte10445 = packet.readByte();
  2212. int i_321_ = packet.readUnsignedByte();
  2213. if ((i_321_ ^ 0xffffffff) == -256) {
  2214. class123.incomming_packet = null;
  2215. return true;
  2216. }
  2217. Node_Sub38_Sub37.anInt10473 = i_321_;
  2218. Class211[] class211s = new Class211[100];
  2219. for (int i_322_ = 0; (i_322_ ^ 0xffffffff) > (Node_Sub38_Sub37.anInt10473 ^ 0xffffffff); i_322_++) {
  2220. class211s[i_322_] = new Class211();
  2221. class211s[i_322_].aString2507 = packet.readString();
  2222. bool = (packet.readUnsignedByte() ^ 0xffffffff) == -2;
  2223. if (bool) {
  2224. class211s[i_322_].aString2506 = packet.readString();
  2225. } else {
  2226. class211s[i_322_].aString2506 = class211s[i_322_].aString2507;
  2227. }
  2228. class211s[i_322_].aString2508 = Node_Sub25_Sub3.method2671(-13472, class211s[i_322_].aString2506);
  2229. class211s[i_322_].anInt2505 = packet.readUnsignedShort();
  2230. class211s[i_322_].aByte2503 = packet.readByte();
  2231. class211s[i_322_].aString2504 = packet.readString();
  2232. if (class211s[i_322_].aString2506.equals(Class295.myPlayer.aString11142)) {
  2233.  
  2234. Class362.aByte4500 = class211s[i_322_].aByte2503;
  2235. }
  2236. }
  2237. boolean bool_323_ = false;
  2238. int i_324_ = Node_Sub38_Sub37.anInt10473;
  2239. while ((i_324_ ^ 0xffffffff) < -1) {
  2240. bool_323_ = true;
  2241. i_324_--;
  2242. for (int i_325_ = 0; (i_325_ ^ 0xffffffff) > (i_324_ ^ 0xffffffff); i_325_++) {
  2243. if (class211s[i_325_].aString2508.compareTo(class211s[i_325_ - -1].aString2508) > 0) {
  2244. Class211 class211 = class211s[i_325_];
  2245. class211s[i_325_] = class211s[i_325_ + 1];
  2246. class211s[1 + i_325_] = class211;
  2247. bool_323_ = false;
  2248. }
  2249. }
  2250. if (bool_323_) {
  2251. break;
  2252. }
  2253. }
  2254. class123.incomming_packet = null;
  2255. Class50.aClass211Array782 = class211s;
  2256. return true;
  2257. }
  2258. if (Class339_Sub9.aClass192_8749 == class123.incomming_packet) {
  2259. Class320_Sub29.method3788(0, Actor.aClass257_10823);
  2260. class123.incomming_packet = null;
  2261. return true;
  2262. }
  2263. if (class123.incomming_packet == Class119.sendMinimapFlag) {
  2264. int x = packet.readUnsignedByte();
  2265. int y = packet.readUnsignedByte128();
  2266. if (x == 255) {
  2267. x = -1;
  2268. y = -1;
  2269. }
  2270. Class34.method371(y, x, (byte) -115);
  2271. class123.incomming_packet = null;
  2272. return true;
  2273. }
  2274. if (class123.incomming_packet == Class117.aClass192_1475) {
  2275. Class320_Sub29.method3788(0, Class189_Sub1.aClass257_6882);
  2276. class123.incomming_packet = null;
  2277. return true;
  2278. }
  2279. if (class123.incomming_packet == Node_Sub25_Sub3.aClass192_9978) {
  2280. int i_328_ = packet.readUnsignedShort();
  2281. String string = packet.readString();
  2282. if (Class147.anObjectArray1821 == null) {
  2283. Class147.anObjectArray1821 = new Object[Class336.aClass315_4173.anInt4024];
  2284. }
  2285. Class147.anObjectArray1821[i_328_] = string;
  2286. Class143.anIntArray1764[Node_Sub30.method2723(31, Class377.anInt4664++)] = i_328_;
  2287. class123.incomming_packet = null;
  2288. return true;
  2289. }
  2290. if (class123.incomming_packet == Node_Sub38_Sub28.aClass192_10402) {
  2291. boolean bool = (packet.readUnsignedByte() ^ 0xffffffff) == -2;
  2292. String string = packet.readString();
  2293. String string_329_ = string;
  2294. if (bool) {
  2295. string_329_ = packet.readString();
  2296. }
  2297. long l = packet.readLong();
  2298. long l_330_ = (long) packet.readUnsignedShort();
  2299. long l_331_ = (long) packet.read24BitInteger();
  2300. int rights = packet.readUnsignedByte();
  2301. long l_333_ = l_331_ + (l_330_ << 32);
  2302. boolean bool_334_ = false;
  2303. while_87_ : do {
  2304. for (int i_335_ = 0; (i_335_ ^ 0xffffffff) > -101; i_335_++) {
  2305. if ((Class320_Sub22.aLongArray8423[i_335_] ^ 0xffffffffffffffffL) == (l_333_ ^ 0xffffffffffffffffL)) {
  2306. bool_334_ = true;
  2307. break while_87_;
  2308. }
  2309. }
  2310. if (rights <= 1) {
  2311. if (Node_Sub38_Sub18.aBoolean10282 && !Class24.aBoolean436 || Class290_Sub11.aBoolean8175) {
  2312. bool_334_ = true;
  2313. } else if (Node_Sub6.method2418(-27891, string_329_)) {
  2314. bool_334_ = true;
  2315. }
  2316. }
  2317. } while (false);
  2318. if (!bool_334_ && CacheNode_Sub17.anInt8835 == 0) {
  2319. Class320_Sub22.aLongArray8423[Class53.anInt807] = l_333_;
  2320. Class53.anInt807 = (Class53.anInt807 + 1) % 100;
  2321. String string_336_ = Class67.method730(false, Node_Sub3.method2172((byte) -72, packet));
  2322.  
  2323. if (rights == 2) {
  2324. Node_Sub50.method2966("<img=1>" + string_329_, "<img=1>" + string, -1, string_336_, CacheNode_Sub6.method2313((byte) -40, l), false, 0, string, 9);
  2325. } else if (rights == 1) {
  2326. Node_Sub50.method2966("<img=0>" + string_329_, "<img=0>" + string, -1, string_336_, CacheNode_Sub6.method2313((byte) -40, l), false, 0, string, 9);
  2327. } else if (rights != 0) {
  2328. Node_Sub50.method2966("<img=" + rights + ">" + string_329_, "<img=" + rights + ">" + string, -1, string_336_, CacheNode_Sub6.method2313((byte) -40, l), false, 0, string, 9);
  2329. } else {
  2330. Node_Sub50.method2966(string_329_, string, -1, string_336_, CacheNode_Sub6.method2313((byte) -29, l), false, 0, string, 9);
  2331. }
  2332. }
  2333. class123.incomming_packet = null;
  2334. return true;
  2335. }
  2336. ClanChat.method507(null, "T1 - " + (class123.incomming_packet == null ? -1 : class123.incomming_packet.method1953(90)) + "," + (class123.aClass192_1582 != null ? class123.aClass192_1582.method1953(32) : -1) + "," + (class123.aClass192_1573 == null ? -1 : class123.aClass192_1573.method1953(86)) + " - " + class123.anInt1581, -106);
  2337. Class127.method1542(11582, false);
  2338. return true;
  2339. }
  2340.  
  2341. PacketParser(int i) {
  2342. super(i);
  2343. }
  2344.  
  2345. static final OutgoingPacketBuffer createOutgoingPacket(OutgoingPacket class318, IsaacCipher isaaccipher) {
  2346.  
  2347. anInt9381++;
  2348. OutgoingPacketBuffer node_sub13 = Class320_Sub5.method3699(103);
  2349. node_sub13.anInt7110 = class318.packetLength;
  2350. node_sub13.aClass318_7109 = class318;
  2351. if (node_sub13.anInt7110 == -1) {
  2352. node_sub13.currentOutgoingPacket = new Packet(260);
  2353. } else if ((node_sub13.anInt7110 ^ 0xffffffff) != 1) {
  2354. if (node_sub13.anInt7110 <= 18) {
  2355. node_sub13.currentOutgoingPacket = new Packet(20);
  2356. } else if ((node_sub13.anInt7110 ^ 0xffffffff) >= -99) {
  2357. node_sub13.currentOutgoingPacket = new Packet(100);
  2358. } else {
  2359. node_sub13.currentOutgoingPacket = new Packet(260);
  2360. }
  2361. } else {
  2362. node_sub13.currentOutgoingPacket = new Packet(10000);
  2363. }
  2364. node_sub13.currentOutgoingPacket.method2266(isaaccipher, -113);
  2365. node_sub13.currentOutgoingPacket.method2262(node_sub13.aClass318_7109.method3667(-24626));
  2366. node_sub13.anInt7114 = 0;
  2367. return node_sub13;
  2368. }
  2369.  
  2370. static final OutgoingPacketBuffer createOutgoingPacket(int i, OutgoingPacket class318, IsaacCipher isaaccipher) {
  2371.  
  2372.  
  2373. anInt9381++;
  2374. OutgoingPacketBuffer node_sub13 = Class320_Sub5.method3699(103);
  2375. node_sub13.anInt7110 = class318.packetLength;
  2376. node_sub13.aClass318_7109 = class318;
  2377. if (node_sub13.anInt7110 == -1) {
  2378. node_sub13.currentOutgoingPacket = new Packet(260);
  2379. } else if ((node_sub13.anInt7110 ^ 0xffffffff) != 1) {
  2380. if (node_sub13.anInt7110 <= 18) {
  2381. node_sub13.currentOutgoingPacket = new Packet(20);
  2382. } else if ((node_sub13.anInt7110 ^ 0xffffffff) >= -99) {
  2383. node_sub13.currentOutgoingPacket = new Packet(100);
  2384. } else {
  2385. node_sub13.currentOutgoingPacket = new Packet(260);
  2386. }
  2387. } else {
  2388. node_sub13.currentOutgoingPacket = new Packet(10000);
  2389. }
  2390. node_sub13.currentOutgoingPacket.method2266(isaaccipher, -113);
  2391. node_sub13.currentOutgoingPacket.method2262(i + 387, node_sub13.aClass318_7109.method3667(-24626));
  2392. if (i != -386) {
  2393. return null;
  2394. }
  2395. node_sub13.anInt7114 = 0;
  2396. return node_sub13;
  2397. }
  2398.  
  2399. final void method2251(int i, float f) {
  2400. anInt9383++;
  2401. int i_337_ = Stream.floatToRawIntBits(f);
  2402. buffer[offset++] = (byte) (i_337_ >> 24);
  2403. buffer[offset++] = (byte) (i_337_ >> 16);
  2404. buffer[offset++] = (byte) (i_337_ >> 8);
  2405. if (i == 8) {
  2406. buffer[offset++] = (byte) i_337_;
  2407. }
  2408. }
  2409.  
  2410. final void method2252(int i, float f) {
  2411. anInt9382++;
  2412. int i_338_ = Stream.floatToRawIntBits(f);
  2413. buffer[offset++] = (byte) i_338_;
  2414. if (i == -229385392) {
  2415. buffer[offset++] = (byte) (i_338_ >> 8);
  2416. buffer[offset++] = (byte) (i_338_ >> 16);
  2417. buffer[offset++] = (byte) (i_338_ >> 24);
  2418. }
  2419. }
  2420.  
  2421. /*synthetic*/static Class<?> method2253(String string) {
  2422. Class<?> var_class;
  2423. try {
  2424. var_class = Class.forName(string);
  2425. } catch (ClassNotFoundException classnotfoundexception) {
  2426. throw (NoClassDefFoundError) new NoClassDefFoundError().initCause(classnotfoundexception);
  2427. }
  2428. return var_class;
  2429. }
  2430. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement