Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.75 KB | None | 0 0
  1. #region TowerOfMystery
  2. case 4020:
  3. {
  4. switch (client.ActiveNpc)
  5. {
  6. #region FieryDragon
  7. case 19166:
  8. {
  9. switch (npcRequest.OptionID)
  10. {
  11. case 0:
  12. {
  13. dialog.Text("Have you been to the Fiery Dragon region? The land was home to the Bright Tribe.");
  14. dialog.Text("~I wonder what it looks like now.");
  15.  
  16. dialog.Option("Send~me~to~Fiery~Dragon.", 1);
  17. dialog.Option("You`ll~return~home~soon.", 255);
  18. dialog.Send();
  19. break;
  20. }
  21. case 1:
  22. {
  23. Data datapacket = new Data(true);
  24. datapacket.UID = client.Entity.UID;
  25. datapacket.ID = 162;
  26. datapacket.dwParam = 4020;
  27. datapacket.Facing = (Game.Enums.ConquerAngle)client.Entity.Facing;
  28. datapacket.wParam1 = 73;
  29. datapacket.wParam2 = 98;
  30. client.Send(datapacket);
  31. break;
  32. }
  33. }
  34. break;
  35. }
  36. #endregion
  37. #region Conductress
  38. case 19231:
  39. {
  40. switch (npcRequest.OptionID)
  41. {
  42. case 0:
  43. {
  44. dialog.Text("Where do you want to go? I may be able to help you.");
  45.  
  46. dialog.Option("Twin~City.", 1);
  47. dialog.Option("Market.", 2);
  48. dialog.Option("Nothing.", 255);
  49. dialog.Send();
  50. break;
  51. }
  52. case 1:
  53. client.Entity.Teleport(1002, 252, 234);
  54. break;
  55. case 2:
  56. client.Entity.Teleport(1036, 254, 152);
  57. break;
  58. }
  59. break;
  60. }
  61. #endregion
  62. #region TowerKeeper
  63. case 19127:
  64. {
  65. switch (npcRequest.OptionID)
  66. {
  67. case 0:
  68. {
  69. if (client.Entity.TOM == 0)
  70. {
  71. dialog.Text("You must be here to challenge the Tower of Mystery. Since the tower is extremely dangerous, I suggest you to");
  72. dialog.Text("~make adequate preparations, and team up with your friends for the challenge. If you`re ready, I`ll lead you into the Mystery.");
  73. dialog.Text("You can unlock Elite mode after completing all floors of the tower at Common mode.");
  74.  
  75. dialog.Option("Start~the~challenge.~(Common)", 1);
  76. dialog.Option("Could~you~tell~me~more~details?", 2);
  77. dialog.Option("I`ll~talk~to~you~later.", 255);
  78. dialog.Send();
  79. }
  80. else
  81. {
  82. dialog.Text("You can challenge any floor of the tower every day, but you can only claim the reward up to 3 times in a day.");
  83. dialog.Text(" Today`s challenge mode: Common");
  84. dialog.Text(" Remaining challenge chances: " + client.Entity.TOMRC + "");
  85. if (client.Entity.TOM == 1)
  86. dialog.Option("Continue~to~challenge~1F.", 101);
  87. if (client.Entity.TOM == 2)
  88. dialog.Option("Continue~to~challenge~2F.", 102);
  89. if (client.Entity.TOM == 3)
  90. dialog.Option("Continue~to~challenge~3F.", 103);
  91. if (client.Entity.TOM == 4)
  92. dialog.Option("Continue~to~challenge~4F.", 104);
  93. if (client.Entity.TOM == 5)
  94. dialog.Option("Continue~to~challenge~5F.", 105);
  95. if (client.Entity.TOM == 6)
  96. dialog.Option("Continue~to~challenge~6F.", 106);
  97. if (client.Entity.TOM == 7)
  98. dialog.Option("Continue~to~challenge~7F.", 107);
  99. if (client.Entity.TOM == 8)
  100. dialog.Option("Continue~to~challenge~8F.", 108);
  101. if (client.Entity.TOM == 9)
  102. dialog.Option("Continue~to~challenge~9F.", 109);
  103. dialog.Option("Choose~a~floor~to~challenge.", 200);
  104. dialog.Option("I`ll~talk~to~you~later.", 255);
  105. dialog.Send();
  106. }
  107. break;
  108. }
  109. case 200:
  110. {
  111. dialog.Text("Which floor of the tower would you like to challenge now?");
  112. if (client.Entity.TOM >= 1)
  113. dialog.Option("Floor~1.", 201);
  114. if (client.Entity.TOM >= 2)
  115. dialog.Option("Floor~2.", 202);
  116. if (client.Entity.TOM >= 3)
  117. dialog.Option("Floor~3.", 203);
  118. if (client.Entity.TOM >= 4)
  119. dialog.Option("Floor~4.", 204);
  120. if (client.Entity.TOM >= 5)
  121. dialog.Option("Floor~5.", 205);
  122. if (client.Entity.TOM >= 6)
  123. dialog.Option("Floor~6.", 206);
  124. if (client.Entity.TOM >= 7)
  125. dialog.Option("Floor~7.", 207);
  126. if (client.Entity.TOM >= 8)
  127. dialog.Option("Floor~8.", 208);
  128. if (client.Entity.TOM >= 9)
  129. dialog.Option("Floor~9.", 209);
  130. dialog.Option("Let~me~think~about~it.", 255);
  131. dialog.Send();
  132. break;
  133. }
  134. case 201:
  135. case 202:
  136. case 203:
  137. case 204:
  138. case 205:
  139. case 206:
  140. case 207:
  141. case 208:
  142. case 209:
  143. {
  144. dialog.Text("Okay, you`ve selected a floor. If you want to challenge this floor in person,");
  145. dialog.Text("~I`ll send you there. While if you want to enable `Sweep` function,");
  146. dialog.Text("~you can directly get the reward without challenging it in person. So, what do you say?");
  147.  
  148. dialog.Option("Challenge~it~in~person.", (byte)(npcRequest.OptionID + 10));
  149. dialog.Option("Enable~`Sweep`.", (byte)(npcRequest.OptionID + 20));
  150. dialog.Option("I~need~to~think~about~it.", 255);
  151. dialog.Send();
  152. break;
  153. }
  154. case 221:
  155. case 222:
  156. case 223:
  157. case 224:
  158. case 225:
  159. case 226:
  160. case 227:
  161. case 228:
  162. case 229:
  163. {
  164. if (client.Entity.TOMQ == 0 || client.Entity.TOMQ == 255)
  165. client.Entity.TOMQ = (byte)Kernel.Random.Next(1, 6);
  166. dialog.Text(" Bright Tribe`s Reward ");
  167. if (client.Entity.TOMQ == 1)
  168. {
  169. dialog.Text(" **************************************");
  170. dialog.Text(" <tip color=0xffffffff desc=Item#Reward:#a#Blazing#CP#Fragment,#30-min#EXP#Pack>Normal</tip>");
  171. dialog.Text(" <tip color=0xffffffff desc=Item#Reward:#a#Blazing#CP#Fragment,#30-min#EXP#Pack>1-Star</tip>");
  172. dialog.Text(" **************************************");
  173. }
  174. if (client.Entity.TOMQ == 2)
  175. {
  176. dialog.Text(" **************************************");
  177. dialog.Text(" <tip color=0xff5d86c9 desc=Item#Reward:#a#Blazing#CP#Fragment,#60-min#EXP#Pack>Refined</tip>");
  178. dialog.Text(" <tip color=0xff5d86c9 desc=Item#Reward:#a#Blazing#CP#Fragment,#60-min#EXP#Pack>2-PerfectionLevel</tip>");
  179. dialog.Text(" **************************************");
  180. }
  181. if (client.Entity.TOMQ == 3)
  182. {
  183. dialog.Text(" **************************************");
  184. dialog.Text(" <tip color=0xff00fa00 desc=Item#Reward:#a#Blazing#CP#Fragment,#90-min#EXP#Pack,#a#Super#Protection#Pill>Unique</tip>");
  185. dialog.Text(" <tip color=0xff00fa00 desc=Item#Reward:#a#Blazing#CP#Fragment,#90-min#EXP#Pack,#a#Super#Protection#Pill>3-PerfectionLevel</tip>");
  186. dialog.Text(" **************************************");
  187. }
  188. if (client.Entity.TOMQ == 4)
  189. {
  190. dialog.Text(" **************************************");
  191. dialog.Text(" <tip color=0xffc501e7 desc=Item#Reward:#a#Blazing#CP#Fragment,#120-min#EXP#Pack,#2#Super#Protection#Pills>Elite</tip>");
  192. dialog.Text(" <tip color=0xffc501e7 desc=Item#Reward:#a#Blazing#CP#Fragment,#120-min#EXP#Pack,#2#Super#Protection#Pills>4-PerfectionLevel</tip>");
  193. dialog.Text(" **************************************");
  194.  
  195. }
  196. if (client.Entity.TOMQ >= 5)
  197. {
  198. dialog.Text(" **************************************");
  199. dialog.Text(" <tip color=0xffffae00 desc=Item#Reward:#a#Blazing#CP#Fragment,#180-min#EXP#Pack,#3#Super#Protection#Pills>Super</tip>");
  200. dialog.Text(" <tip color=0xffffae00 desc=Item#Reward:#a#Blazing#CP#Fragment,#180-min#EXP#Pack,#3#Super#Protection#Pills>5-PerfectionLevel</tip>");
  201. dialog.Text(" **************************************");
  202.  
  203. }
  204.  
  205. dialog.Option("Refresh~reward.~(1~CP)", 245);
  206. dialog.Option("Enable~`Sweep`.~(5~CPs)", 246);
  207. dialog.Option("Refresh~reward.~(25~Study~Pts)", 247);
  208. dialog.Option("`Sweep`.~(1~MetorScrolls)", 248);
  209. dialog.Option("I`ll~think~about~it.", 255);
  210. dialog.Send();
  211. break;
  212. }
  213. case 246:
  214. {
  215. if (client.Entity.ConquerPoints >= 5)
  216. {
  217. client.Entity.ConquerPoints -= 5;
  218. client.Inventory.Add(3008727, 0, 1);
  219. if (client.Entity.TOMQ == 1)
  220. {
  221. client.Inventory.AddTime(3008956, 1 * 24 * 60 * 60);
  222. dialog.Text(" You received a Blazing CP Fragment, 30-min EXP Pack!");
  223. }
  224. if (client.Entity.TOMQ == 2)
  225. {
  226. client.Inventory.AddTime(3008957, 1 * 24 * 60 * 60);
  227. dialog.Text(" You received a Blazing CP Fragment, 60-min EXP Pack!");
  228. }
  229. if (client.Entity.TOMQ == 3)
  230. {
  231. client.Inventory.Add(3002030, 0, 1);
  232. client.Inventory.AddTime(3008958, 1 * 24 * 60 * 60);
  233. dialog.Text(" You received a Blazing CP Fragment, 90-min EXP Pack, 1 Super Protection Pills!");
  234. }
  235. if (client.Entity.TOMQ == 4)
  236. {
  237. client.Inventory.Add(3002030, 0, 2);
  238. client.Inventory.AddTime(3008959, 1 * 24 * 60 * 60);
  239. dialog.Text(" You received a Blazing CP Fragment, 120-min EXP Pack, 2 Super Protection Pills!");
  240. }
  241. if (client.Entity.TOMQ >= 5)
  242. {
  243. client.Inventory.Add(3002030, 0, 3);
  244. client.Inventory.AddTime(3008962, 1 * 24 * 60 * 60);
  245. dialog.Text(" You received a Blazing CP Fragment, 180-min EXP Pack, 3 Super Protection Pills!");
  246. }
  247. dialog.Option("Thanks.", 255);
  248. dialog.Send();
  249. client.Entity.TOMRC--;
  250. }
  251. else
  252. {
  253. dialog.Text("You don't have enough Conquer Points!");
  254.  
  255. dialog.Option("Sorry!", 255);
  256. dialog.Send();
  257. }
  258. break;
  259. }
  260. case 245:
  261. {
  262. if (client.Entity.ConquerPoints >= 1)
  263. {
  264. client.Entity.ConquerPoints -= 1;
  265. client.Entity.TOMQ = (byte)Kernel.Random.Next(1, 5);
  266. dialog.Text(" Bright Tribe`s Reward ");
  267. if (client.Entity.TOMQ == 1)
  268. {
  269. dialog.Text(" **************************************");
  270. dialog.Text(" <tip color=0xffffffff desc=Item#Reward:#a#Blazing#CP#Fragment,#30-min#EXP#Pack>Normal</tip>");
  271. dialog.Text(" <tip color=0xffffffff desc=Item#Reward:#a#Blazing#CP#Fragment,#30-min#EXP#Pack>1-Star</tip>");
  272. dialog.Text(" **************************************");
  273. }
  274. if (client.Entity.TOMQ == 2)
  275. {
  276. dialog.Text(" **************************************");
  277. dialog.Text(" <tip color=0xff5d86c9 desc=Item#Reward:#a#Blazing#CP#Fragment,#60-min#EXP#Pack>Refined</tip>");
  278. dialog.Text(" <tip color=0xff5d86c9 desc=Item#Reward:#a#Blazing#CP#Fragment,#60-min#EXP#Pack>2-PerfectionLevel</tip>");
  279. dialog.Text(" **************************************");
  280. }
  281. if (client.Entity.TOMQ == 3)
  282. {
  283. dialog.Text(" **************************************");
  284. dialog.Text(" <tip color=0xff00fa00 desc=Item#Reward:#a#Blazing#CP#Fragment,#90-min#EXP#Pack,#a#Super#Protection#Pill>Unique</tip>");
  285. dialog.Text(" <tip color=0xff00fa00 desc=Item#Reward:#a#Blazing#CP#Fragment,#90-min#EXP#Pack,#a#Super#Protection#Pill>3-PerfectionLevel</tip>");
  286. dialog.Text(" **************************************");
  287. }
  288. if (client.Entity.TOMQ == 4)
  289. {
  290. dialog.Text(" **************************************");
  291. dialog.Text(" <tip color=0xffc501e7 desc=Item#Reward:#a#Blazing#CP#Fragment,#120-min#EXP#Pack,#2#Super#Protection#Pills>Elite</tip>");
  292. dialog.Text(" <tip color=0xffc501e7 desc=Item#Reward:#a#Blazing#CP#Fragment,#120-min#EXP#Pack,#2#Super#Protection#Pills>4-PerfectionLevel</tip>");
  293. dialog.Text(" **************************************");
  294.  
  295. }
  296. if (client.Entity.TOMQ >= 5)
  297. {
  298. dialog.Text(" **************************************");
  299. dialog.Text(" <tip color=0xffffae00 desc=Item#Reward:#a#Blazing#CP#Fragment,#180-min#EXP#Pack,#3#Super#Protection#Pills>Super</tip>");
  300. dialog.Text(" <tip color=0xffffae00 desc=Item#Reward:#a#Blazing#CP#Fragment,#180-min#EXP#Pack,#3#Super#Protection#Pills>5-PerfectionLevel</tip>");
  301. dialog.Text(" **************************************");
  302.  
  303. }
  304.  
  305. dialog.Option("Refresh~reward.~(1~CP)", 225);
  306. dialog.Option("Enable~`Sweep`.~(5~CPs)", 246);
  307. dialog.Option("Refresh~reward.~(25~Study~Pts)", 227);
  308. dialog.Option("`Sweep`.~(1~MetorScrolls)", 248);
  309. dialog.Option("I`ll~think~about~it.", 255);
  310. dialog.Send();
  311. }
  312. else
  313. {
  314. dialog.Text("You don't have enough Conquer Points!");
  315.  
  316. dialog.Option("Sorry!", 255);
  317. dialog.Send();
  318. }
  319. break;
  320. }
  321.  
  322. case 248:
  323. {
  324. if (client.Inventory.Contains(720027, 5))
  325. {
  326. client.Entity.TOMRC--;
  327. client.Inventory.Remove(720027, 5);
  328. client.Inventory.Add(3008727, 0, 1);
  329. if (client.Entity.TOMQ == 1)
  330. {
  331. client.Inventory.AddTime(3008956, 1 * 24 * 60 * 60);
  332. dialog.Text(" You received a Blazing CP Fragment, 30-min EXP Pack!");
  333. }
  334. if (client.Entity.TOMQ == 2)
  335. {
  336. client.Inventory.AddTime(3008957, 1 * 24 * 60 * 60);
  337. dialog.Text(" You received a Blazing CP Fragment, 60-min EXP Pack!");
  338. }
  339. if (client.Entity.TOMQ == 3)
  340. {
  341. client.Inventory.Add(3002030, 0, 1);
  342. client.Inventory.AddTime(3008958, 1 * 24 * 60 * 60);
  343. dialog.Text(" You received a Blazing CP Fragment, 90-min EXP Pack, 1 Super Protection Pills!");
  344. }
  345. if (client.Entity.TOMQ == 4)
  346. {
  347. client.Inventory.Add(3002030, 0, 2);
  348. client.Inventory.AddTime(3008959, 1 * 24 * 60 * 60);
  349. dialog.Text(" You received a Blazing CP Fragment, 120-min EXP Pack, 2 Super Protection Pills!");
  350. }
  351. if (client.Entity.TOMQ >= 5)
  352. {
  353. client.Inventory.Add(3002030, 0, 3);
  354. client.Inventory.AddTime(3008962, 1 * 24 * 60 * 60);
  355. dialog.Text(" You received a Blazing CP Fragment, 180-min EXP Pack, 3 Super Protection Pills!");
  356. }
  357. dialog.Option("Thanks.", 255);
  358. dialog.Send();
  359. }
  360. else
  361. {
  362. dialog.Text("You don't have enough Meteor Scrolls!");
  363.  
  364. dialog.Option("Sorry!", 255);
  365. dialog.Send();
  366. }
  367. break;
  368. }
  369. case 247:
  370. {
  371. if (client.Entity.SubClasses.StudyPoints >= 25)
  372. {
  373. client.Entity.SubClasses.StudyPoints -= 25;
  374. client.Entity.TOMQ = (byte)Kernel.Random.Next(1, 5);
  375. dialog.Text(" Bright Tribe`s Reward ");
  376. if (client.Entity.TOMQ == 1)
  377. {
  378. dialog.Text(" **************************************");
  379. dialog.Text(" <tip color=0xffffffff desc=Item#Reward:#a#Blazing#CP#Fragment,#30-min#EXP#Pack>Normal</tip>");
  380. dialog.Text(" <tip color=0xffffffff desc=Item#Reward:#a#Blazing#CP#Fragment,#30-min#EXP#Pack>1-Star</tip>");
  381. dialog.Text(" **************************************");
  382. }
  383. if (client.Entity.TOMQ == 2)
  384. {
  385. dialog.Text(" **************************************");
  386. dialog.Text(" <tip color=0xff5d86c9 desc=Item#Reward:#a#Blazing#CP#Fragment,#60-min#EXP#Pack>Refined</tip>");
  387. dialog.Text(" <tip color=0xff5d86c9 desc=Item#Reward:#a#Blazing#CP#Fragment,#60-min#EXP#Pack>2-PerfectionLevel</tip>");
  388. dialog.Text(" **************************************");
  389. }
  390. if (client.Entity.TOMQ == 3)
  391. {
  392. dialog.Text(" **************************************");
  393. dialog.Text(" <tip color=0xff00fa00 desc=Item#Reward:#a#Blazing#CP#Fragment,#90-min#EXP#Pack,#a#Super#Protection#Pill>Unique</tip>");
  394. dialog.Text(" <tip color=0xff00fa00 desc=Item#Reward:#a#Blazing#CP#Fragment,#90-min#EXP#Pack,#a#Super#Protection#Pill>3-PerfectionLevel</tip>");
  395. dialog.Text(" **************************************");
  396. }
  397. if (client.Entity.TOMQ == 4)
  398. {
  399. dialog.Text(" **************************************");
  400. dialog.Text(" <tip color=0xffc501e7 desc=Item#Reward:#a#Blazing#CP#Fragment,#120-min#EXP#Pack,#2#Super#Protection#Pills>Elite</tip>");
  401. dialog.Text(" <tip color=0xffc501e7 desc=Item#Reward:#a#Blazing#CP#Fragment,#120-min#EXP#Pack,#2#Super#Protection#Pills>4-PerfectionLevel</tip>");
  402. dialog.Text(" **************************************");
  403.  
  404. }
  405. if (client.Entity.TOMQ >= 5)
  406. {
  407. dialog.Text(" **************************************");
  408. dialog.Text(" <tip color=0xffffae00 desc=Item#Reward:#a#Blazing#CP#Fragment,#180-min#EXP#Pack,#3#Super#Protection#Pills>Super</tip>");
  409. dialog.Text(" <tip color=0xffffae00 desc=Item#Reward:#a#Blazing#CP#Fragment,#180-min#EXP#Pack,#3#Super#Protection#Pills>5-PerfectionLevel</tip>");
  410. dialog.Text(" **************************************");
  411.  
  412. }
  413.  
  414. dialog.Option("Refresh~reward.~(1~CP)", 225);
  415. dialog.Option("Enable~`Sweep`.~(5~CPs)", 226);
  416. dialog.Option("Refresh~reward.~(25~Study~Pts)", 227);
  417. dialog.Option("`Sweep`.~(1~MetorScrolls)", 228);
  418. dialog.Option("I`ll~think~about~it.", 255);
  419. dialog.Send();
  420. }
  421. else
  422. {
  423. dialog.Text("You don't have enough Study Points!");
  424.  
  425. dialog.Option("Sorry!", 255);
  426. dialog.Send();
  427. }
  428. break;
  429. }
  430. case 211:
  431. case 212:
  432. case 213:
  433. case 214:
  434. case 215:
  435. case 216:
  436. case 217:
  437. case 218:
  438. case 219:
  439. {
  440. client.Entity.InTOM = true;
  441. var DM = Kernel.Maps[4000].MakeDynamicMap();
  442. INpc npc = new Network.GamePackets.NpcSpawn();
  443. if ((npcRequest.OptionID - 210) == 1)
  444. {
  445. npc.UID = 56550;
  446. npc.Mesh = 40460;
  447. npc.Name = "GreatPheasant";
  448. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 1F where an aggressive devil, GreatPheasant(Common), was sealed. Be careful! ", Color.Red, Message.System));
  449. }
  450. if ((npcRequest.OptionID - 210) == 2)
  451. {
  452. npc.UID = 56551;
  453. npc.Mesh = 40470;
  454. npc.Name = "WingedLord";
  455. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 2F where an aggressive devil, WingedLord(Common), was sealed. Be careful! ", Color.Red, Message.System));
  456. }
  457. if ((npcRequest.OptionID - 210) == 3)
  458. {
  459. npc.UID = 56552;
  460. npc.Mesh = 40480;
  461. npc.Name = "WaterTerror";
  462. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 3F where an aggressive devil, WaterTerror(Common), was sealed. Be careful! ", Color.Red, Message.System));
  463. }
  464. if ((npcRequest.OptionID - 210) == 4)
  465. {
  466. npc.UID = 56553;
  467. npc.Mesh = 40490;
  468. npc.Name = "RuthlessAsura";
  469. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 4F where an aggressive devil, RuthlessAsura(Common), was sealed. Be careful! ", Color.Red, Message.System));
  470. }
  471. if ((npcRequest.OptionID - 210) == 5)
  472. {
  473. npc.UID = 56554;
  474. npc.Mesh = 40500;
  475. npc.Name = "SoulStrangler";
  476. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 5F where an aggressive devil, SoulStrangler(Common), was sealed. Be careful! ", Color.Red, Message.System));
  477. }
  478. if ((npcRequest.OptionID - 210) == 6)
  479. {
  480. npc.UID = 56555;
  481. npc.Mesh = 40510;
  482. npc.Name = "InfernalGlutton";
  483. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 6F where an aggressive devil, InfernalGlutton(Common), was sealed. Be careful! ", Color.Red, Message.System));
  484. }
  485. if ((npcRequest.OptionID - 210) == 7)
  486. {
  487. npc.UID = 56556;
  488. npc.Mesh = 40520;
  489. npc.Name = "AlienDragon";
  490. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 7F where an aggressive devil, AlienDragon(Common), was sealed. Be careful! ", Color.Red, Message.System));
  491. }
  492. if ((npcRequest.OptionID - 210) == 8)
  493. {
  494. npc.UID = 56557;
  495. npc.Mesh = 40530;
  496. npc.Name = "ShadowSpider";
  497. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 8F where an aggressive devil, ShadowSpider(Common), was sealed. Be careful! ", Color.Red, Message.System));
  498. }
  499. if ((npcRequest.OptionID - 210) == 9)
  500. {
  501. npc.UID = 56558;
  502. npc.Mesh = 40540;
  503. npc.Name = "FlameGiant";
  504. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 9F where an aggressive devil, FlameGiant(Common), was sealed. Be careful! ", Color.Red, Message.System));
  505. }
  506. if (client.Entity.TOM > 9) break;
  507. npc.Type = (Enums.NpcType)2;
  508. npc.X = 66;
  509. npc.Y = 66;
  510. npc.MapID = DM.ID;
  511. DM.AddNpc(npc);
  512. client.Entity.TOMM = DM;
  513.  
  514. client.Entity.Teleport(DM.ID, (ushort)Kernel.Random.Next(49, 79), (ushort)Kernel.Random.Next(49, 79));
  515.  
  516. break;
  517. }
  518. case 2:
  519. {
  520. dialog.Text("There is no limit on the number of times you can challenge the tower, but only 3 chances to claim the reward every day.");
  521. dialog.Text("~Alternatively, you can use CPs or Meteor Scrolls to start `sweeping` and directly get the reward. If you create a team");
  522. dialog.Text("~to challenge the tower at Elite mode, you can also claim a Concerted Effort Pack from the Cloud Sweeper after completing it.");
  523.  
  524. dialog.Option("Start~the~challenge.", 1);
  525. dialog.Option("I`ll~talk~to~you~later.", 255);
  526. dialog.Send();
  527. break;
  528. }
  529. case 101:
  530. case 102:
  531. case 103:
  532. case 104:
  533. case 105:
  534. case 106:
  535. case 107:
  536. case 108:
  537. case 109:
  538. case 1:
  539. {
  540.  
  541. if (client.Entity.TOM == 0)
  542. client.Entity.TOM = 1;
  543. client.Entity.InTOM = true;
  544. var DM = Kernel.Maps[4000].MakeDynamicMap();
  545. INpc npc = new Network.GamePackets.NpcSpawn();
  546. if (client.Entity.TOM == 1)
  547. {
  548. npc.UID = 56550;
  549. npc.Mesh = 40460;
  550. npc.Name = "GreatPheasant";
  551. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 1F where an aggressive devil, GreatPheasant(Common), was sealed. Be careful! ", Color.Red, Message.System));
  552.  
  553. }
  554. if (client.Entity.TOM == 2)
  555. {
  556. npc.UID = 56551;
  557. npc.Mesh = 40470;
  558. npc.Name = "WingedLord";
  559. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 2F where an aggressive devil, WingedLord(Common), was sealed. Be careful! ", Color.Red, Message.System));
  560. }
  561. if (client.Entity.TOM == 3)
  562. {
  563. npc.UID = 56552;
  564. npc.Mesh = 40480;
  565. npc.Name = "WaterTerror";
  566. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 3F where an aggressive devil, WaterTerror(Common), was sealed. Be careful! ", Color.Red, Message.System));
  567. }
  568. if (client.Entity.TOM == 4)
  569. {
  570. npc.UID = 56553;
  571. npc.Mesh = 40490;
  572. npc.Name = "RuthlessAsura";
  573. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 4F where an aggressive devil, RuthlessAsura(Common), was sealed. Be careful! ", Color.Red, Message.System));
  574. }
  575. if (client.Entity.TOM == 5)
  576. {
  577. npc.UID = 56554;
  578. npc.Mesh = 40500;
  579. npc.Name = "SoulStrangler";
  580. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 5F where an aggressive devil, SoulStrangler(Common), was sealed. Be careful! ", Color.Red, Message.System));
  581. }
  582. if (client.Entity.TOM == 6)
  583. {
  584. npc.UID = 56555;
  585. npc.Mesh = 40510;
  586. npc.Name = "InfernalGlutton";
  587. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 6F where an aggressive devil, InfernalGlutton(Common), was sealed. Be careful! ", Color.Red, Message.System));
  588. }
  589. if (client.Entity.TOM == 7)
  590. {
  591. npc.UID = 56556;
  592. npc.Mesh = 40520;
  593. npc.Name = "AlienDragon";
  594. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 7F where an aggressive devil, AlienDragon(Common), was sealed. Be careful! ", Color.Red, Message.System));
  595. }
  596. if (client.Entity.TOM == 8)
  597. {
  598. npc.UID = 56557;
  599. npc.Mesh = 40530;
  600. npc.Name = "ShadowSpider";
  601. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 8F where an aggressive devil, ShadowSpider(Common), was sealed. Be careful! ", Color.Red, Message.System));
  602. }
  603. if (client.Entity.TOM == 9)
  604. {
  605. npc.UID = 56558;
  606. npc.Mesh = 40540;
  607. npc.Name = "FlameGiant";
  608. client.Send(new Message("You`ve already arrived (Common) in Tower of Mystery 9F where an aggressive devil, FlameGiant(Common), was sealed. Be careful! ", Color.Red, Message.System));
  609. }
  610. if (client.Entity.TOM > 9) break;
  611. npc.Type = (Enums.NpcType)2;
  612. npc.X = 66;
  613. npc.Y = 66;
  614. npc.MapID = DM.ID;
  615. DM.AddNpc(npc);
  616. client.Entity.TOMM = DM;
  617. client.Entity.Teleport(DM.ID, (ushort)Kernel.Random.Next(49, 79), (ushort)Kernel.Random.Next(49, 79));
  618.  
  619. break;
  620. }
  621. }
  622. break;
  623. }
  624. #endregion
  625. #region CloudSweeper
  626. case 19128:
  627. {
  628. switch (npcRequest.OptionID)
  629. {
  630. case 0:
  631. {
  632. dialog.Text("Every day, when you team up with at least one friend, and conquer the Tower of Mystery at any challenge mode,");
  633. dialog.Text("~you can claim a reward from me.");
  634.  
  635. dialog.Option("Claim~my~team~reward.", 1);
  636. dialog.Option("I~see.", 255);
  637. dialog.Send();
  638. break;
  639. }
  640. case 1:
  641. {
  642. dialog.Text("To claim a reward from me, you need to team up with your friends and conquere the Tower of Mystery.");
  643.  
  644. dialog.Option("I~see.", 255);
  645. dialog.Send();
  646. break;
  647. }
  648. }
  649. break;
  650. }
  651. #endregion
  652. }
  653. break;
  654. }
  655. #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement