Guest User

GL CONVERTING BITCHES

a guest
Jun 2nd, 2011
231
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private void readValues(int i, RSInputStream stream, int opcode) throws IOException {
  2. if (opcode != 1 && opcode != 5) {
  3. if (opcode != 2) {
  4. if (opcode != 14) {
  5. if (opcode != 15) {
  6. if (opcode == 17) {
  7. isWalkable = false;
  8. firstInt = 0;
  9. } else if (opcode != 18) {
  10. if (opcode == 19)
  11. secondInt = stream.readUnsignedByte();
  12. else if (opcode == 21)
  13. aByte3912 = (byte) 1;
  14. else if (opcode != 22) {
  15. if (opcode != 23) {
  16. if (opcode != 24) {
  17. if (opcode == 27)
  18. firstInt = 1;
  19. else if (opcode == 28)
  20. anInt3892 = (stream
  21. .readUnsignedByte() << 2);
  22. else if (opcode != 29) {
  23. if (opcode != 39) {
  24. if (opcode < 30 || opcode >= 35) {
  25. if (opcode == 40) {
  26. int i_53_ = (stream
  27. .readUnsignedByte());
  28. originalColors = new short[i_53_];
  29. modifiedColors = new short[i_53_];
  30. for (int i_54_ = 0; i_53_ > i_54_; i_54_++) {
  31. originalColors[i_54_] = (short) (stream
  32. .readUnsignedShort());
  33. modifiedColors[i_54_] = (short) (stream
  34. .readUnsignedShort());
  35. }
  36. } else if (opcode != 41) {
  37. if (opcode != 42) {
  38. if (opcode != 62) {
  39. if (opcode != 64) {
  40. if (opcode == 65)
  41. anInt3902 = stream
  42. .readUnsignedShort();
  43. else if (opcode != 66) {
  44. if (opcode != 67) {
  45. if (opcode == 69)
  46. anInt3925 = stream
  47. .readUnsignedByte();
  48. else if (opcode != 70) {
  49. if (opcode == 71)
  50. anInt3889 = stream
  51. .readShort() << 2;
  52. else if (opcode != 72) {
  53. if (opcode == 73)
  54. secondBool = true;
  55. else if (opcode == 74)
  56. firstBool = true;
  57. else if (opcode != 75) {
  58. if (opcode != 77
  59. && opcode != 92) {
  60. if (opcode == 78) {
  61. anInt3860 = stream
  62. .readUnsignedShort();
  63. anInt3904 = stream
  64. .readUnsignedByte();
  65. } else if (opcode != 79) {
  66. if (opcode == 81) {
  67. aByte3912 = (byte) 2;
  68. anInt3882 = 256 * stream
  69. .readUnsignedByte();
  70. } else if (opcode != 82) {
  71. if (opcode == 88)
  72. aBoolean3853 = false;
  73. else if (opcode != 89) {
  74. if (opcode == 90)
  75. aBoolean3870 = true;
  76. else if (opcode != 91) {
  77. if (opcode != 93) {
  78. if (opcode == 94)
  79. aByte3912 = (byte) 4;
  80. else if (opcode != 95) {
  81. if (opcode != 96) {
  82. if (opcode == 97)
  83. aBoolean3866 = true;
  84. else if (opcode == 98)
  85. aBoolean3923 = true;
  86. else if (opcode == 99) {
  87. anInt3857 = stream
  88. .readUnsignedByte();
  89. anInt3835 = stream
  90. .readUnsignedShort();
  91. } else if (opcode == 100) {
  92. anInt3844 = stream
  93. .readUnsignedByte();
  94. anInt3913 = stream
  95. .readUnsignedShort();
  96. } else if (opcode != 101) {
  97. if (opcode == 102)
  98. anInt3838 = stream
  99. .readUnsignedShort();
  100. else if (opcode == 103)
  101. thirdInt = 0;
  102. else if (opcode != 104) {
  103. if (opcode == 105)
  104. aBoolean3906 = true;
  105. else if (opcode == 106) {
  106. int i_55_ = stream
  107. .readUnsignedByte();
  108. anIntArray3869 = new int[i_55_];
  109. anIntArray3833 = new int[i_55_];
  110. for (int i_56_ = 0; i_56_ < i_55_; i_56_++) {
  111. anIntArray3833[i_56_] = stream
  112. .readUnsignedShort();
  113. int i_57_ = stream
  114. .readUnsignedByte();
  115. anIntArray3869[i_56_] = i_57_;
  116. anInt3881 += i_57_;
  117. }
  118. } else if (opcode == 107)
  119. anInt3851 = stream
  120. .readUnsignedShort();
  121. else if (opcode >= 150
  122. && opcode < 155) {
  123. options[opcode
  124. + -150] = stream
  125. .readCString();
  126. /*if (!loader.showOptions)
  127. options[opcode + -150] = null;*/
  128. } else if (opcode != 160) {
  129. if (opcode == 162) {
  130. aByte3912 = (byte) 3;
  131. anInt3882 = stream
  132. .readInt();
  133. } else if (opcode == 163) {
  134. aByte3847 = stream
  135. .readByte();
  136. aByte3849 = stream
  137. .readByte();
  138. aByte3837 = stream
  139. .readByte();
  140. aByte3914 = stream
  141. .readByte();
  142. } else if (opcode != 164) {
  143. if (opcode != 165) {
  144. if (opcode != 166) {
  145. if (opcode == 167)
  146. anInt3921 = stream
  147. .readUnsignedShort();
  148. else if (opcode != 168) {
  149. if (opcode == 169) {
  150. aBoolean3845 = true;
  151. //added opcode
  152. }else if (opcode == 170) {
  153. int anInt3383 = stream.readUnsignedSmart();
  154. //added opcode
  155. }else if (opcode == 171) {
  156. int anInt3362 = stream.readUnsignedSmart();
  157. //added opcode
  158. }else if (opcode == 173) {
  159. int anInt3302 = stream.readUnsignedShort();
  160. int anInt3336 = stream.readUnsignedShort();
  161. //added opcode
  162. }else if (opcode == 177) {
  163. boolean ub = true;
  164. //added opcode
  165. }else if (opcode == 178) {
  166. int db = stream.readUnsignedByte();
  167. } else if (opcode == 249) {
  168. int i_58_ = stream
  169. .readUnsignedByte();
  170. if (aClass194_3922 == null) {
  171. /*int i_59_ = Class307
  172. .method3331(
  173. (byte) -117,
  174. i_58_);
  175. aClass194_3922 = new HashTable(
  176. i_59_);*/
  177. }
  178. for (int i_60_ = 0; i_60_ < i_58_; i_60_++) {
  179. boolean bool = stream
  180. .readUnsignedByte() == 1;
  181. int i_61_ = stream.read24BitInt();
  182. Object class279;
  183. if (!bool)
  184. /*class279 = new IntegerNode(*/
  185. stream
  186. .readInt();//);
  187. else
  188. /*class279 = new Class279_Sub4(*/
  189. stream
  190. .readCString();//);
  191. /*aClass194_3922
  192. .method1598(
  193. (long) i_61_,
  194. -125,
  195. class279);*/
  196. }
  197. }
  198. } else
  199. aBoolean3894 = true;
  200. } else
  201. anInt3877 = stream
  202. .readShort();
  203. } else
  204. anInt3875 = stream
  205. .readShort();
  206. } else
  207. anInt3834 = stream
  208. .readShort();
  209. } else {
  210. int i_62_ = stream
  211. .readUnsignedByte();
  212. anIntArray3908 = new int[i_62_];
  213. for (int i_63_ = 0; i_62_ > i_63_; i_63_++)
  214. anIntArray3908[i_63_] = stream
  215. .readUnsignedShort();
  216. }
  217. } else
  218. anInt3865 = stream
  219. .readUnsignedByte();
  220. } else
  221. anInt3850 = stream
  222. .readUnsignedByte();
  223. } else
  224. aBoolean3924 = true;
  225. } else {
  226. aByte3912 = (byte) 5;
  227. anInt3882 = stream
  228. .readShort();
  229. }
  230. } else {
  231. aByte3912 = (byte) 3;
  232. anInt3882 = stream
  233. .readUnsignedShort();
  234. }
  235. } else
  236. aBoolean3873 = true;
  237. } else
  238. aBoolean3895 = false;
  239. } else
  240. aBoolean3891 = true;
  241. } else {
  242. anInt3900 = stream
  243. .readUnsignedShort();
  244. anInt3905 = stream
  245. .readUnsignedShort();
  246. anInt3904 = stream
  247. .readUnsignedByte();
  248. int i_64_ = stream
  249. .readUnsignedByte();
  250. anIntArray3859 = new int[i_64_];
  251. for (int i_65_ = 0; i_65_ < i_64_; i_65_++)
  252. anIntArray3859[i_65_] = stream
  253. .readUnsignedShort();
  254. }
  255. } else {
  256. configFileId = stream
  257. .readUnsignedShort();
  258. if (configFileId == 65535)
  259. configFileId = -1;
  260. configId = stream
  261. .readUnsignedShort();
  262. if (configId == 65535)
  263. configId = -1;
  264. int i_66_ = -1;
  265. if (opcode == 92) {
  266. i_66_ = stream
  267. .readUnsignedShort();
  268. if (i_66_ == 65535)
  269. i_66_ = -1;
  270. }
  271. int i_67_ = stream
  272. .readUnsignedByte();
  273. childrenIds = new int[i_67_
  274. - -2];
  275. for (int i_68_ = 0; i_67_ >= i_68_; i_68_++) {
  276. childrenIds[i_68_] = stream
  277. .readUnsignedShort();
  278. if (childrenIds[i_68_] == 65535)
  279. childrenIds[i_68_] = -1;
  280. }
  281. childrenIds[i_67_ + 1] = i_66_;
  282. }
  283. } else
  284. anInt3855 = stream
  285. .readUnsignedByte();
  286. } else
  287. anInt3915 = stream
  288. .readShort() << 2;
  289. } else
  290. anInt3883 = stream
  291. .readShort() << 2;
  292. } else
  293. anInt3917 = stream
  294. .readUnsignedShort();
  295. } else
  296. anInt3841 = stream
  297. .readUnsignedShort();
  298. } else
  299. aBoolean3872 = false;
  300. } else
  301. aBoolean3839 = true;
  302. } else {
  303. int i_69_ = (stream
  304. .readUnsignedByte());
  305. aByteArray3858 = (new byte[i_69_]);
  306. for (int i_70_ = 0; i_70_ < i_69_; i_70_++)
  307. aByteArray3858[i_70_] = (stream
  308. .readByte());
  309. }
  310. } else {
  311. int i_71_ = (stream
  312. .readUnsignedByte());
  313. aShortArray3920 = new short[i_71_];
  314. aShortArray3919 = new short[i_71_];
  315. for (int i_72_ = 0; i_71_ > i_72_; i_72_++) {
  316. aShortArray3920[i_72_] = (short) (stream
  317. .readUnsignedShort());
  318. aShortArray3919[i_72_] = (short) (stream
  319. .readUnsignedShort());
  320. }
  321. }
  322. } else
  323. options[-30
  324. + opcode] = (stream
  325. .readCString());
  326. } else
  327. anInt3840 = (stream.readByte() * 5);
  328. } else
  329. anInt3878 = stream.readByte();
  330. } else {
  331. anInt3876 = stream.readUnsignedShort();
  332. if (anInt3876 == 65535)
  333. anInt3876 = -1;
  334. }
  335. } else
  336. thirdInt = 1;
  337. } else
  338. aBoolean3867 = true;
  339. } else
  340. isWalkable = false;
  341. } else
  342. height = stream.readUnsignedByte();
  343. } else
  344. width = stream.readUnsignedByte();
  345. } else
  346. name = stream.readCString();
  347. } else {
  348. boolean aBoolean1162 = false;
  349. if (opcode == 5 && aBoolean1162)
  350. method3297(stream);
  351. int i_73_ = stream.readUnsignedByte();
  352. anIntArrayArray3916 = new int[i_73_][];
  353. aByteArray3899 = new byte[i_73_];
  354. for (int i_74_ = 0; i_74_ < i_73_; i_74_++) {
  355. aByteArray3899[i_74_] = stream.readByte();
  356. int i_75_ = stream.readUnsignedByte();
  357. anIntArrayArray3916[i_74_] = new int[i_75_];
  358. for (int i_76_ = 0; i_75_ > i_76_; i_76_++)
  359. anIntArrayArray3916[i_74_][i_76_] = stream
  360. .readUnsignedShort();
  361. }
  362. if (opcode == 5 && !aBoolean1162)
  363. method3297(stream);
  364. }
  365. }
  366.  
  367. private void method3297(RSInputStream stream) throws IOException {
  368. int length = stream.readUnsignedByte();
  369. for (int index = 0; index < length; index++) {
  370. stream.skip(1);
  371. stream.skip(stream.readUnsignedByte() * 2);
  372. }
  373. }
  374.  
  375. private void readValueLoop(RSInputStream stream) throws IOException {
  376. for (; ;) {
  377. int opcode = stream.readByte();
  378. if (opcode == 0)
  379. break;
  380. readValues(-2129513334, stream, opcode);
  381. }
  382. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×