Advertisement
Guest User

كنج دوم

a guest
Dec 11th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.62 KB | None | 0 0
  1. #region KingdomMissionEnvoy
  2.  
  3. case 174001:
  4. {
  5. //uint DbCount = 2;
  6. //uint DbPrize = 1000;
  7. ///////////////////////////
  8. //uint DbCount1 = 5;
  9. //uint DbPrize1 = 2000;
  10. ///////////////////////////
  11. //uint DbCount2 = 300000;
  12. //uint DbPrize2 = 3000;
  13. switch (npcRequest.OptionID)
  14. {
  15. #region Dialog KingdomMissionEnvoy
  16. case 0:
  17. {
  18.  
  19. dialog.Text("A real hero must harbor great ambition for his kingdom.");
  20. dialog.Text("~In the name of conquer, I`m calling heroes who`ve reached Level 130 of the 2st rebirth.");
  21. dialog.Text("~for a series of Kingdom Missions. Go to the Realm, and you`ll find a way to explore");
  22. dialog.Text("~a new world out of this world.");
  23. dialog.Text("\nYou`ve earned 50 points of Kingdom Deeds.");
  24. //dialog.Option("Enter~the~Realm.", 1);
  25. dialog.Option("Kingdom~Mission.", 2);
  26. dialog.Option("Submit~Gold~Bricks.~(special)", 3);
  27. //dialog.Option("Exchange~my~Point~for~rewards.", 2);
  28. dialog.Option("How~to~travel~across~server?", 5);
  29. dialog.Option("What~should~I~pay~attention~to?", 6);
  30. dialog.Option("I~see.", 255);
  31. dialog.Avatar(6);
  32. break;
  33. }
  34. #endregion
  35.  
  36. #region Enter~the~Realm
  37. case 1:
  38. {
  39. if (client.Player.Level >= 110)
  40. if (client.Player.Reborn >= 1)
  41. {
  42. client.Player.Teleport(3935, 162, 163);
  43. MsgName str = new MsgName(true);
  44. str.UID = client.Player.UID;
  45. str.TextsCount = 1;
  46. str.Action = MsgName.Mode.Effect;
  47. str.Texts.Add("jinrulingtu_zhengduo");
  48.  
  49. client.Player.Teleport(3935, 162, 163);
  50. //client.Player.OwnerUID = client.Player.UID;
  51. //client.Player.UID = (client.Player.UID);
  52. //byte[] tets = new byte[396];
  53. //Writer.Ushort(388, 0, tets);
  54. //Writer.Ushort(2501, 2, tets);
  55. //Writer.Uint(client.Player.OwnerUID, 8, tets);
  56. //Writer.Uint(client.Player.OwnerUID + 3997256388, 12, tets);
  57. //Writer.Uint(client.Player.UID, 12, tets);
  58. //client.Send(tets);
  59.  
  60. //client.Send(new MsgAction(true)
  61. //{
  62. // UID = client.Player.UID,
  63. // ID = Network.GamePackets.MsgAction.Mode.ChangePKMode,
  64. // dwParam = (uint)Enums.PKMode.CS
  65. //});
  66. client.SendScreen(str, true);
  67.  
  68.  
  69. //client.Player.PKMode = Game.Enums.PKMode.CS;
  70. //client.Send(new MsgAction(true) { UID = client.Player.UID, ID = MsgAction.Mode.ChangePKMode, dwParam = (uint)client.Player.PKMode });
  71. if (client.Player.UnderCoverTimes != 5)
  72. {
  73. client.Quests.Accept(QuestID.Undercover);
  74. client.Quests.Accept(QuestID.Evil_Invasion);
  75. client.Quests.Accept(QuestID.Doom_of_Beast);
  76. client.Quests.Accept(QuestID.Struggle_for_Ores);
  77.  
  78. }
  79. }
  80. else
  81. {
  82. dialog.Text("Your Rebotn not 1st Reborn or Your Level not 110.");
  83. dialog.Option("Thanks Alot!", 255);
  84. dialog.Avatar(50);
  85. dialog.Send();
  86. }
  87. break;
  88. }
  89. #endregion
  90. case 2:
  91. {
  92. dialog.Text("A real hero must harbor great ambition for his kingdom. In the name of Conquer,");
  93. dialog.Text("~I`m calling heroes who`ve reached Level 110 of the 1st rebirth to take the Kingdom Mission.");
  94. dialog.Text("~Let`s fight and make a way to explore the new world.");
  95.  
  96. dialog.Option("The~Undercover~[Realm].", 20);
  97. dialog.Option("Realm~Ore~[Realm].", 21);
  98. dialog.Option("Doom~of~Beast~[Realm].", 22);
  99. dialog.Option("Evil~Invasion~[Realm].", 4);
  100. //dialog.Option("Bloody~Fight~[Kingdom].", 24);
  101. dialog.Option("I~see.", 5);
  102. dialog.Avatar(92);
  103. break;
  104. }
  105. #region Undercover
  106. case 20:
  107. {
  108. dialog.Text("City Lurker, Mr. Mystery, Military Spy, Official Agent, and Travelling Scout were dispatched to the Realm");
  109. dialog.Text("~to collect military intelligence. Um... 10 years ago? 20? 30? Anyway, I want you to contact 3 of them, and bring");
  110. dialog.Text("~back the latest intelligence.");
  111.  
  112. dialog.Option("I`ve~got~the~intelligence.", 31);
  113. dialog.Option("Directly~complete~it.~(1000~CPs)", 45);
  114. dialog.Option("I`m~getting~ready.", 2);
  115. dialog.Avatar(92);
  116. break;
  117. }
  118. case 21:
  119. {
  120. dialog.Text("Big Stone And Small Stone to the Realm");
  121. dialog.Text("~to collect military intelligence. Um... 10 years ago? 20? 30? Anyway, I want you to contact 3 of them, and bring");
  122. dialog.Text("~back the latest intelligence.");
  123.  
  124. dialog.Option("Small Crystal", 97);
  125. dialog.Option("Big Crystal", 98);
  126. dialog.Option("I`m~getting~ready.", 2);
  127. dialog.Avatar(92);
  128. break;
  129. }
  130. case 97:
  131. {
  132. if (client.Player.SmallCrystal > 0)
  133. {
  134.  
  135. if (client.Inventory.Count <= 38)
  136. {
  137. Random R = new Random();
  138. int Nr = R.Next(1, 3);
  139. if (Nr == 1)
  140. {
  141. client.Inventory.AddBound(3003126, 0, 1);
  142. client.Player.lacb += 5;
  143. }
  144. if (Nr == 2)
  145. {
  146. client.Inventory.AddBound(3002029, 0, 1);
  147. client.Player.lacb += 20;
  148. }
  149. if (Nr == 3)
  150. {
  151. client.Inventory.AddBound(3002029, 0, 1);
  152. client.Player.lacb += 50;
  153. }
  154. //client.Inventory.AddBound(3007108, 0, 1);
  155. MsgName str = new MsgName(true);
  156. str.UID = client.Player.UID;
  157. str.TextsCount = 1;
  158. str.Action = MsgName.Mode.Effect;
  159. str.Texts.Add("relive");
  160. client.SendScreen(str, true);
  161.  
  162. client.Player.SmallCrystal = 0;
  163.  
  164. }
  165. else
  166. {
  167. client.MessageBox("You Don't Have free Space in Uour Inventroy");
  168. }
  169.  
  170.  
  171. }
  172. else
  173. {
  174. client.MessageBox("You don't have small crystalpoint");
  175. }
  176. break;
  177.  
  178. }
  179. case 98:
  180. {
  181. if (client.Player.BigCrystal > 0)
  182. {
  183.  
  184. if (client.Inventory.Count <= 38)
  185. {
  186. Random R = new Random();
  187. int Nr = R.Next(1, 3);
  188. if (Nr == 1)
  189. {
  190. client.Inventory.AddBound(3003126, 0, 1);
  191. client.Player.lacb += 10;
  192. }
  193. if (Nr == 2)
  194. {
  195. client.Inventory.AddBound(3002029, 0, 1);
  196. client.Player.lacb += 100;
  197. }
  198. if (Nr == 3)
  199. {
  200. client.Inventory.AddBound(3002029, 0, 1);
  201. client.Player.lacb += 200;
  202. }
  203. client.Inventory.AddBound(3007109, 0, 1);
  204. MsgName str = new MsgName(true);
  205. str.UID = client.Player.UID;
  206. str.TextsCount = 1;
  207. str.Action = MsgName.Mode.Effect;
  208. str.Texts.Add("relive");
  209. client.SendScreen(str, true);
  210. client.Player.lacb += 15;
  211. client.Player.BigCrystal = 0;
  212.  
  213. }
  214. else
  215. {
  216. client.MessageBox("You Don't Have free Space in Uour Inventroy");
  217. }
  218.  
  219.  
  220. }
  221. else
  222. {
  223. client.MessageBox("You don't have big crystalpoint");
  224. }
  225. break;
  226.  
  227. }
  228. case 22:
  229. {
  230. dialog.Text("thunderDragon1 and ThunderDragon2 should be captured to ");
  231. dialog.Text("~to collect military intelligence. Um... 10 years ago? 20? 30? Anyway, I want you to contact 3 of them, and bring");
  232. dialog.Text("~back the latest intelligence.");
  233.  
  234. dialog.Option("I`ve~got~the~intelligence.", 111);
  235. dialog.Option("Directly~complete~it.~(1000~CPs)", 112);
  236. dialog.Option("I`m~getting~ready.", 2);
  237. dialog.Avatar(92);
  238. break;
  239. }
  240. case 112:
  241. {
  242. if (!client.Player.DoomBeast)
  243. {
  244. if (client.Player.ConquerPoints >= 1000)
  245. {
  246. if (client.Inventory.Count <= 39)
  247. {
  248. client.Inventory.AddBound(3007107, 0, 1);
  249.  
  250. MsgName str = new MsgName(true);
  251. str.UID = client.Player.UID;
  252. str.TextsCount = 1;
  253. str.Action = MsgName.Mode.Effect;
  254. str.Texts.Add("relive1");
  255. client.SendScreen(str, true);
  256. client.Player.ConquerPointsFake -= 1000;
  257. client.Player.ConquerPoints -= 1000;
  258. client.Quests.FinishQuest(QuestID.Doom_of_Beast);
  259. client.Player.DoomBeast = true;
  260. }
  261. else
  262. {
  263. client.MessageBox("You Don't Have free Space in Uour Inventroy");
  264. }
  265. }
  266. else
  267. {
  268. client.MessageBox("You Don't Have 1000 Cps");
  269. }
  270. }
  271. else
  272. {
  273. client.MessageBox("You Have Finish The Quest Already");
  274. }
  275. break;
  276.  
  277. }
  278. case 111:
  279. {
  280. if (!client.Player.DoomBeast)
  281. {
  282. if (client.Player.ThunderDragon)
  283. {
  284. if (client.Inventory.Count <= 39)
  285. {
  286. client.Inventory.AddBound(3007107, 0, 1);
  287.  
  288. MsgName str = new MsgName(true);
  289. str.UID = client.Player.UID;
  290. str.TextsCount = 1;
  291. str.Action = MsgName.Mode.Effect;
  292. str.Texts.Add("relive1");
  293. client.SendScreen(str, true);
  294. client.Player.ThunderDragon = false;
  295. client.Quests.FinishQuest(QuestID.Doom_of_Beast);
  296. client.Player.DoomBeast = true;
  297. }
  298. else
  299. {
  300. client.MessageBox("You Don't Have free Space in Uour Inventroy");
  301. }
  302. }
  303. else
  304. {
  305. client.MessageBox("You Don't Have Enough Cps");
  306. }
  307. }
  308. else
  309. {
  310. client.MessageBox("You Have Finish The Quest Already");
  311. }
  312. break;
  313.  
  314. }
  315.  
  316. case 31:
  317. {
  318. if (client.Player.UnderCoverTimes >= 3 && client.Player.UnderCoverTimes != 5)
  319. {
  320. dialog.Text("It seems you haven`t collected intelligence in the Realm. Hurry and contact any three of City Lurker, Mr. Mystery,");
  321. dialog.Text("~Military Spy, Official Agent, and Travelling Scout in the Realm, and bring back the latest information.");
  322.  
  323. dialog.Option("Okay.", 32);
  324. dialog.Avatar(92);
  325. }
  326. else
  327. {
  328. dialog.Text("You`ve already brought back intelligence from the Realm. No need to take the risk, again.");
  329.  
  330. dialog.Option("Okay.", 255);
  331. dialog.Avatar(92);
  332. }
  333. break;
  334. }
  335. case 32:
  336. {
  337. if (client.Player.UnderCoverTimes >= 3 && client.Player.UnderCoverTimes != 5)
  338. {
  339. if (client.Inventory.Count <= 37)
  340. {
  341. client.Inventory.Add(3002029, 0, 2);
  342.  
  343. client.Inventory.AddBound(3007110, 0, 1);
  344.  
  345. MsgName str = new MsgName(true);
  346. str.UID = client.Player.UID;
  347. str.TextsCount = 1;
  348. str.Action = MsgName.Mode.Effect;
  349. str.Texts.Add("relive");
  350. client.SendScreen(str, true);
  351. client.Quests.FinishQuest(QuestID.Undercover);
  352. client.Player.UnderCoverTimes = 5;
  353. }
  354. else
  355. {
  356. client.MessageBox("You Don't Have free Space in Uour Inventroy");
  357. }
  358. }
  359. else
  360. {
  361. client.MessageBox("You Havn't Finish The Quest Yet");
  362. }
  363. break;
  364. }
  365. case 45:
  366. {
  367. if (client.Player.UnderCoverTimes != 5)
  368. {
  369. if (client.Player.ConquerPoints >= 1000)
  370. {
  371. if (client.Inventory.Count <= 37)
  372. {
  373. client.Inventory.Add(3002029, 0, 2);
  374.  
  375. client.Inventory.AddBound(3007110, 0, 1);
  376.  
  377. MsgName str = new MsgName(true);
  378. str.UID = client.Player.UID;
  379. str.TextsCount = 1;
  380. str.Action = MsgName.Mode.Effect;
  381. str.Texts.Add("relive");
  382. client.SendScreen(str, true);
  383. client.Player.ConquerPointsFake -= 1000;
  384. client.Player.ConquerPoints -= 1000;
  385. client.Quests.FinishQuest(QuestID.Undercover);
  386. client.Player.UnderCoverTimes = 5;
  387. }
  388. else
  389. {
  390. client.MessageBox("You Don't Have free Space in Uour Inventroy");
  391. }
  392. }
  393. else
  394. {
  395. client.MessageBox("You Don't Have 1000 Cps");
  396. }
  397. }
  398. else
  399. {
  400. client.MessageBox("You Have Finish The Quest Already");
  401. }
  402. break;
  403. }
  404. #endregion
  405. case 3:
  406. {
  407. dialog.Text("You Hve " + client.Player.PlanderP + " GoldBricks, What do you want to Submit?");
  408. dialog.Option("Yes.", 5);
  409. dialog.Option("No, Thanks!", 255);
  410. dialog.Avatar(50);
  411. dialog.Send();
  412. break;
  413. }
  414. case 5:
  415. {
  416. if (client.Union != null)
  417. {
  418. byte[] Packet = new byte[17 + 8];
  419. Writer.WriteUInt16(17, 0, Packet);
  420. Writer.WriteUInt16(3001, 2, Packet);
  421. Writer.WriteUInt16(2, 4, Packet);
  422. Writer.WriteUInt32(client.Player.PlanderP, 6, Packet);
  423. //Writer.WriteUInt16(2, 8, Packet);
  424. //Writer.WriteUInt16(2, 10, Packet);
  425. Writer.WriteUInt16(2, 14, Packet);
  426.  
  427. client.Send(Packet);
  428.  
  429. //client.Send("you Submit " + client.Player.PlanderP + " GoldBricks ");
  430.  
  431. }
  432. else
  433. {
  434. client.MessageBox("please Join in union first");
  435. }
  436.  
  437. break;
  438. }
  439. case 4:
  440. {
  441. dialog.Text("You Got " + client.Player.StrikePoints + " StrikePoints, What do you want to exchange?");
  442. dialog.Option(" change.", 25);
  443. //dialog.Option(" ExcellentExploitPack (" + DbPrize1 + " Points).", 26);
  444. //dialog.Option(" SupremeExploitPack (" + DbPrize2 + " Points).", 27);
  445. dialog.Option("No, Thanks!", 255);
  446. dialog.Avatar(50);
  447. dialog.Send();
  448. break;
  449. }
  450. case 25:
  451. {
  452. if (!client.Player.EvilInvasion)
  453. {
  454. if (client.Player.StrikePoints >= 300)
  455. {
  456. client.Player.StrikePoints = 500;
  457. if (Kernel.Rate(30))
  458. {
  459. client.Inventory.Add(3007109, 0, 1);
  460. MsgName str = new MsgName(true);
  461. str.UID = client.Player.UID;
  462. str.Action = MsgName.Mode.Effect;
  463. str.Texts.Add("relive");
  464. str.TextsCount = 1;
  465. client.Player.SendScreen(str);
  466. }
  467. if (Kernel.Rate(15))
  468. {
  469. client.Inventory.Add(3007110, 0, 1);
  470. MsgName str = new MsgName(true);
  471. str.UID = client.Player.UID;
  472. str.Action = MsgName.Mode.Effect;
  473. str.Texts.Add("relive1");
  474. str.TextsCount = 1;
  475. client.Player.SendScreen(str);
  476. }
  477. else
  478. {
  479. client.Inventory.Add(3007108, 0, 1);
  480. MsgName str = new MsgName(true);
  481. str.UID = client.Player.UID;
  482. str.Action = MsgName.Mode.Effect;
  483. str.Texts.Add("accession1");
  484. str.TextsCount = 1;
  485. client.Player.SendScreen(str);
  486. }
  487. client.Inventory.AddBound(3002926, 0, 1);
  488. client.Inventory.AddBound(3002218, 0, 1);
  489. client.Player.EvilInvasion = true;
  490.  
  491. //dialog.Text("You got OutstandingExploitPack, your Points now are : " + client.Player.StrikePoints + ".");
  492. dialog.Option("Thanks Alot!", 255);
  493. dialog.Avatar(50);
  494. dialog.Send();
  495.  
  496. }
  497. else
  498. {
  499. dialog.Text("You don't have more Pont To get it, your Points now are : " + client.Player.StrikePoints + ".");
  500. dialog.Option("Thanks Alot!", 255);
  501. dialog.Avatar(50);
  502. dialog.Send();
  503. }
  504. }
  505. else
  506. {
  507.  
  508. client.MessageBox("You Have Finish The Quest Already");
  509.  
  510. }
  511. break;
  512. }
  513. case 26:
  514. {
  515. if (client.Player.StrikePoints >= 300)
  516. {
  517. client.Player.StrikePoints -= 300;
  518. client.Inventory.Add(3007109, 0, 1);
  519. MsgName str = new MsgName(true);
  520. str.UID = client.Player.UID;
  521. str.Action = MsgName.Mode.Effect;
  522. str.Texts.Add("accession2");
  523. str.TextsCount = 1;
  524. client.Player.SendScreen(str);
  525. dialog.Text("You got OutstandingExploitPack, your Points now are : " + client.Player.StrikePoints + ".");
  526. dialog.Option("Thanks Alot!", 255);
  527. dialog.Avatar(50);
  528. dialog.Send();
  529.  
  530. }
  531. else
  532. {
  533. dialog.Text("You don't have more Pont To get it, your Points now are : " + client.Player.StrikePoints + ".");
  534. dialog.Option("Thanks Alot!", 255);
  535. dialog.Avatar(50);
  536. dialog.Send();
  537. }
  538. break;
  539. }
  540. case 27:
  541. {
  542. if (client.Player.StrikePoints >= 300)
  543. {
  544. client.Player.StrikePoints -= 300;
  545. client.Inventory.Add(3007110, 0, 1);
  546. MsgName str = new MsgName(true);
  547. str.UID = client.Player.UID;
  548. str.Action = MsgName.Mode.Effect;
  549. str.Texts.Add("accession4");
  550. str.TextsCount = 1;
  551. client.Player.SendScreen(str);
  552. dialog.Text("You got SupremeExploitPack, your Points now are : " + client.Player.StrikePoints + ".");
  553. dialog.Option("Thanks Alot!", 255);
  554. dialog.Avatar(50);
  555. dialog.Send();
  556.  
  557. }
  558. else
  559. {
  560. dialog.Text("You don't have more Pont To get it, your Points now are : " + client.Player.StrikePoints + ".");
  561. dialog.Option("Thanks Alot!", 255);
  562. dialog.Avatar(50);
  563. dialog.Send();
  564. }
  565. break;
  566. }
  567.  
  568. }
  569. break;
  570. }
  571. #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement