Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region KingdomMissionEnvoy
- case 174001:
- {
- //uint DbCount = 2;
- //uint DbPrize = 1000;
- ///////////////////////////
- //uint DbCount1 = 5;
- //uint DbPrize1 = 2000;
- ///////////////////////////
- //uint DbCount2 = 300000;
- //uint DbPrize2 = 3000;
- switch (npcRequest.OptionID)
- {
- #region Dialog KingdomMissionEnvoy
- case 0:
- {
- dialog.Text("A real hero must harbor great ambition for his kingdom.");
- dialog.Text("~In the name of conquer, I`m calling heroes who`ve reached Level 130 of the 2st rebirth.");
- dialog.Text("~for a series of Kingdom Missions. Go to the Realm, and you`ll find a way to explore");
- dialog.Text("~a new world out of this world.");
- dialog.Text("\nYou`ve earned 50 points of Kingdom Deeds.");
- //dialog.Option("Enter~the~Realm.", 1);
- dialog.Option("Kingdom~Mission.", 2);
- dialog.Option("Submit~Gold~Bricks.~(special)", 3);
- //dialog.Option("Exchange~my~Point~for~rewards.", 2);
- dialog.Option("How~to~travel~across~server?", 5);
- dialog.Option("What~should~I~pay~attention~to?", 6);
- dialog.Option("I~see.", 255);
- dialog.Avatar(6);
- break;
- }
- #endregion
- #region Enter~the~Realm
- case 1:
- {
- if (client.Player.Level >= 110)
- if (client.Player.Reborn >= 1)
- {
- client.Player.Teleport(3935, 162, 163);
- MsgName str = new MsgName(true);
- str.UID = client.Player.UID;
- str.TextsCount = 1;
- str.Action = MsgName.Mode.Effect;
- str.Texts.Add("jinrulingtu_zhengduo");
- client.Player.Teleport(3935, 162, 163);
- //client.Player.OwnerUID = client.Player.UID;
- //client.Player.UID = (client.Player.UID);
- //byte[] tets = new byte[396];
- //Writer.Ushort(388, 0, tets);
- //Writer.Ushort(2501, 2, tets);
- //Writer.Uint(client.Player.OwnerUID, 8, tets);
- //Writer.Uint(client.Player.OwnerUID + 3997256388, 12, tets);
- //Writer.Uint(client.Player.UID, 12, tets);
- //client.Send(tets);
- //client.Send(new MsgAction(true)
- //{
- // UID = client.Player.UID,
- // ID = Network.GamePackets.MsgAction.Mode.ChangePKMode,
- // dwParam = (uint)Enums.PKMode.CS
- //});
- client.SendScreen(str, true);
- //client.Player.PKMode = Game.Enums.PKMode.CS;
- //client.Send(new MsgAction(true) { UID = client.Player.UID, ID = MsgAction.Mode.ChangePKMode, dwParam = (uint)client.Player.PKMode });
- if (client.Player.UnderCoverTimes != 5)
- {
- client.Quests.Accept(QuestID.Undercover);
- client.Quests.Accept(QuestID.Evil_Invasion);
- client.Quests.Accept(QuestID.Doom_of_Beast);
- client.Quests.Accept(QuestID.Struggle_for_Ores);
- }
- }
- else
- {
- dialog.Text("Your Rebotn not 1st Reborn or Your Level not 110.");
- dialog.Option("Thanks Alot!", 255);
- dialog.Avatar(50);
- dialog.Send();
- }
- break;
- }
- #endregion
- case 2:
- {
- dialog.Text("A real hero must harbor great ambition for his kingdom. In the name of Conquer,");
- dialog.Text("~I`m calling heroes who`ve reached Level 110 of the 1st rebirth to take the Kingdom Mission.");
- dialog.Text("~Let`s fight and make a way to explore the new world.");
- dialog.Option("The~Undercover~[Realm].", 20);
- dialog.Option("Realm~Ore~[Realm].", 21);
- dialog.Option("Doom~of~Beast~[Realm].", 22);
- dialog.Option("Evil~Invasion~[Realm].", 4);
- //dialog.Option("Bloody~Fight~[Kingdom].", 24);
- dialog.Option("I~see.", 5);
- dialog.Avatar(92);
- break;
- }
- #region Undercover
- case 20:
- {
- dialog.Text("City Lurker, Mr. Mystery, Military Spy, Official Agent, and Travelling Scout were dispatched to the Realm");
- dialog.Text("~to collect military intelligence. Um... 10 years ago? 20? 30? Anyway, I want you to contact 3 of them, and bring");
- dialog.Text("~back the latest intelligence.");
- dialog.Option("I`ve~got~the~intelligence.", 31);
- dialog.Option("Directly~complete~it.~(1000~CPs)", 45);
- dialog.Option("I`m~getting~ready.", 2);
- dialog.Avatar(92);
- break;
- }
- case 21:
- {
- dialog.Text("Big Stone And Small Stone to the Realm");
- dialog.Text("~to collect military intelligence. Um... 10 years ago? 20? 30? Anyway, I want you to contact 3 of them, and bring");
- dialog.Text("~back the latest intelligence.");
- dialog.Option("Small Crystal", 97);
- dialog.Option("Big Crystal", 98);
- dialog.Option("I`m~getting~ready.", 2);
- dialog.Avatar(92);
- break;
- }
- case 97:
- {
- if (client.Player.SmallCrystal > 0)
- {
- if (client.Inventory.Count <= 38)
- {
- Random R = new Random();
- int Nr = R.Next(1, 3);
- if (Nr == 1)
- {
- client.Inventory.AddBound(3003126, 0, 1);
- client.Player.lacb += 5;
- }
- if (Nr == 2)
- {
- client.Inventory.AddBound(3002029, 0, 1);
- client.Player.lacb += 20;
- }
- if (Nr == 3)
- {
- client.Inventory.AddBound(3002029, 0, 1);
- client.Player.lacb += 50;
- }
- //client.Inventory.AddBound(3007108, 0, 1);
- MsgName str = new MsgName(true);
- str.UID = client.Player.UID;
- str.TextsCount = 1;
- str.Action = MsgName.Mode.Effect;
- str.Texts.Add("relive");
- client.SendScreen(str, true);
- client.Player.SmallCrystal = 0;
- }
- else
- {
- client.MessageBox("You Don't Have free Space in Uour Inventroy");
- }
- }
- else
- {
- client.MessageBox("You don't have small crystalpoint");
- }
- break;
- }
- case 98:
- {
- if (client.Player.BigCrystal > 0)
- {
- if (client.Inventory.Count <= 38)
- {
- Random R = new Random();
- int Nr = R.Next(1, 3);
- if (Nr == 1)
- {
- client.Inventory.AddBound(3003126, 0, 1);
- client.Player.lacb += 10;
- }
- if (Nr == 2)
- {
- client.Inventory.AddBound(3002029, 0, 1);
- client.Player.lacb += 100;
- }
- if (Nr == 3)
- {
- client.Inventory.AddBound(3002029, 0, 1);
- client.Player.lacb += 200;
- }
- client.Inventory.AddBound(3007109, 0, 1);
- MsgName str = new MsgName(true);
- str.UID = client.Player.UID;
- str.TextsCount = 1;
- str.Action = MsgName.Mode.Effect;
- str.Texts.Add("relive");
- client.SendScreen(str, true);
- client.Player.lacb += 15;
- client.Player.BigCrystal = 0;
- }
- else
- {
- client.MessageBox("You Don't Have free Space in Uour Inventroy");
- }
- }
- else
- {
- client.MessageBox("You don't have big crystalpoint");
- }
- break;
- }
- case 22:
- {
- dialog.Text("thunderDragon1 and ThunderDragon2 should be captured to ");
- dialog.Text("~to collect military intelligence. Um... 10 years ago? 20? 30? Anyway, I want you to contact 3 of them, and bring");
- dialog.Text("~back the latest intelligence.");
- dialog.Option("I`ve~got~the~intelligence.", 111);
- dialog.Option("Directly~complete~it.~(1000~CPs)", 112);
- dialog.Option("I`m~getting~ready.", 2);
- dialog.Avatar(92);
- break;
- }
- case 112:
- {
- if (!client.Player.DoomBeast)
- {
- if (client.Player.ConquerPoints >= 1000)
- {
- if (client.Inventory.Count <= 39)
- {
- client.Inventory.AddBound(3007107, 0, 1);
- MsgName str = new MsgName(true);
- str.UID = client.Player.UID;
- str.TextsCount = 1;
- str.Action = MsgName.Mode.Effect;
- str.Texts.Add("relive1");
- client.SendScreen(str, true);
- client.Player.ConquerPointsFake -= 1000;
- client.Player.ConquerPoints -= 1000;
- client.Quests.FinishQuest(QuestID.Doom_of_Beast);
- client.Player.DoomBeast = true;
- }
- else
- {
- client.MessageBox("You Don't Have free Space in Uour Inventroy");
- }
- }
- else
- {
- client.MessageBox("You Don't Have 1000 Cps");
- }
- }
- else
- {
- client.MessageBox("You Have Finish The Quest Already");
- }
- break;
- }
- case 111:
- {
- if (!client.Player.DoomBeast)
- {
- if (client.Player.ThunderDragon)
- {
- if (client.Inventory.Count <= 39)
- {
- client.Inventory.AddBound(3007107, 0, 1);
- MsgName str = new MsgName(true);
- str.UID = client.Player.UID;
- str.TextsCount = 1;
- str.Action = MsgName.Mode.Effect;
- str.Texts.Add("relive1");
- client.SendScreen(str, true);
- client.Player.ThunderDragon = false;
- client.Quests.FinishQuest(QuestID.Doom_of_Beast);
- client.Player.DoomBeast = true;
- }
- else
- {
- client.MessageBox("You Don't Have free Space in Uour Inventroy");
- }
- }
- else
- {
- client.MessageBox("You Don't Have Enough Cps");
- }
- }
- else
- {
- client.MessageBox("You Have Finish The Quest Already");
- }
- break;
- }
- case 31:
- {
- if (client.Player.UnderCoverTimes >= 3 && client.Player.UnderCoverTimes != 5)
- {
- dialog.Text("It seems you haven`t collected intelligence in the Realm. Hurry and contact any three of City Lurker, Mr. Mystery,");
- dialog.Text("~Military Spy, Official Agent, and Travelling Scout in the Realm, and bring back the latest information.");
- dialog.Option("Okay.", 32);
- dialog.Avatar(92);
- }
- else
- {
- dialog.Text("You`ve already brought back intelligence from the Realm. No need to take the risk, again.");
- dialog.Option("Okay.", 255);
- dialog.Avatar(92);
- }
- break;
- }
- case 32:
- {
- if (client.Player.UnderCoverTimes >= 3 && client.Player.UnderCoverTimes != 5)
- {
- if (client.Inventory.Count <= 37)
- {
- client.Inventory.Add(3002029, 0, 2);
- client.Inventory.AddBound(3007110, 0, 1);
- MsgName str = new MsgName(true);
- str.UID = client.Player.UID;
- str.TextsCount = 1;
- str.Action = MsgName.Mode.Effect;
- str.Texts.Add("relive");
- client.SendScreen(str, true);
- client.Quests.FinishQuest(QuestID.Undercover);
- client.Player.UnderCoverTimes = 5;
- }
- else
- {
- client.MessageBox("You Don't Have free Space in Uour Inventroy");
- }
- }
- else
- {
- client.MessageBox("You Havn't Finish The Quest Yet");
- }
- break;
- }
- case 45:
- {
- if (client.Player.UnderCoverTimes != 5)
- {
- if (client.Player.ConquerPoints >= 1000)
- {
- if (client.Inventory.Count <= 37)
- {
- client.Inventory.Add(3002029, 0, 2);
- client.Inventory.AddBound(3007110, 0, 1);
- MsgName str = new MsgName(true);
- str.UID = client.Player.UID;
- str.TextsCount = 1;
- str.Action = MsgName.Mode.Effect;
- str.Texts.Add("relive");
- client.SendScreen(str, true);
- client.Player.ConquerPointsFake -= 1000;
- client.Player.ConquerPoints -= 1000;
- client.Quests.FinishQuest(QuestID.Undercover);
- client.Player.UnderCoverTimes = 5;
- }
- else
- {
- client.MessageBox("You Don't Have free Space in Uour Inventroy");
- }
- }
- else
- {
- client.MessageBox("You Don't Have 1000 Cps");
- }
- }
- else
- {
- client.MessageBox("You Have Finish The Quest Already");
- }
- break;
- }
- #endregion
- case 3:
- {
- dialog.Text("You Hve " + client.Player.PlanderP + " GoldBricks, What do you want to Submit?");
- dialog.Option("Yes.", 5);
- dialog.Option("No, Thanks!", 255);
- dialog.Avatar(50);
- dialog.Send();
- break;
- }
- case 5:
- {
- if (client.Union != null)
- {
- byte[] Packet = new byte[17 + 8];
- Writer.WriteUInt16(17, 0, Packet);
- Writer.WriteUInt16(3001, 2, Packet);
- Writer.WriteUInt16(2, 4, Packet);
- Writer.WriteUInt32(client.Player.PlanderP, 6, Packet);
- //Writer.WriteUInt16(2, 8, Packet);
- //Writer.WriteUInt16(2, 10, Packet);
- Writer.WriteUInt16(2, 14, Packet);
- client.Send(Packet);
- //client.Send("you Submit " + client.Player.PlanderP + " GoldBricks ");
- }
- else
- {
- client.MessageBox("please Join in union first");
- }
- break;
- }
- case 4:
- {
- dialog.Text("You Got " + client.Player.StrikePoints + " StrikePoints, What do you want to exchange?");
- dialog.Option(" change.", 25);
- //dialog.Option(" ExcellentExploitPack (" + DbPrize1 + " Points).", 26);
- //dialog.Option(" SupremeExploitPack (" + DbPrize2 + " Points).", 27);
- dialog.Option("No, Thanks!", 255);
- dialog.Avatar(50);
- dialog.Send();
- break;
- }
- case 25:
- {
- if (!client.Player.EvilInvasion)
- {
- if (client.Player.StrikePoints >= 300)
- {
- client.Player.StrikePoints = 500;
- if (Kernel.Rate(30))
- {
- client.Inventory.Add(3007109, 0, 1);
- MsgName str = new MsgName(true);
- str.UID = client.Player.UID;
- str.Action = MsgName.Mode.Effect;
- str.Texts.Add("relive");
- str.TextsCount = 1;
- client.Player.SendScreen(str);
- }
- if (Kernel.Rate(15))
- {
- client.Inventory.Add(3007110, 0, 1);
- MsgName str = new MsgName(true);
- str.UID = client.Player.UID;
- str.Action = MsgName.Mode.Effect;
- str.Texts.Add("relive1");
- str.TextsCount = 1;
- client.Player.SendScreen(str);
- }
- else
- {
- client.Inventory.Add(3007108, 0, 1);
- MsgName str = new MsgName(true);
- str.UID = client.Player.UID;
- str.Action = MsgName.Mode.Effect;
- str.Texts.Add("accession1");
- str.TextsCount = 1;
- client.Player.SendScreen(str);
- }
- client.Inventory.AddBound(3002926, 0, 1);
- client.Inventory.AddBound(3002218, 0, 1);
- client.Player.EvilInvasion = true;
- //dialog.Text("You got OutstandingExploitPack, your Points now are : " + client.Player.StrikePoints + ".");
- dialog.Option("Thanks Alot!", 255);
- dialog.Avatar(50);
- dialog.Send();
- }
- else
- {
- dialog.Text("You don't have more Pont To get it, your Points now are : " + client.Player.StrikePoints + ".");
- dialog.Option("Thanks Alot!", 255);
- dialog.Avatar(50);
- dialog.Send();
- }
- }
- else
- {
- client.MessageBox("You Have Finish The Quest Already");
- }
- break;
- }
- case 26:
- {
- if (client.Player.StrikePoints >= 300)
- {
- client.Player.StrikePoints -= 300;
- client.Inventory.Add(3007109, 0, 1);
- MsgName str = new MsgName(true);
- str.UID = client.Player.UID;
- str.Action = MsgName.Mode.Effect;
- str.Texts.Add("accession2");
- str.TextsCount = 1;
- client.Player.SendScreen(str);
- dialog.Text("You got OutstandingExploitPack, your Points now are : " + client.Player.StrikePoints + ".");
- dialog.Option("Thanks Alot!", 255);
- dialog.Avatar(50);
- dialog.Send();
- }
- else
- {
- dialog.Text("You don't have more Pont To get it, your Points now are : " + client.Player.StrikePoints + ".");
- dialog.Option("Thanks Alot!", 255);
- dialog.Avatar(50);
- dialog.Send();
- }
- break;
- }
- case 27:
- {
- if (client.Player.StrikePoints >= 300)
- {
- client.Player.StrikePoints -= 300;
- client.Inventory.Add(3007110, 0, 1);
- MsgName str = new MsgName(true);
- str.UID = client.Player.UID;
- str.Action = MsgName.Mode.Effect;
- str.Texts.Add("accession4");
- str.TextsCount = 1;
- client.Player.SendScreen(str);
- dialog.Text("You got SupremeExploitPack, your Points now are : " + client.Player.StrikePoints + ".");
- dialog.Option("Thanks Alot!", 255);
- dialog.Avatar(50);
- dialog.Send();
- }
- else
- {
- dialog.Text("You don't have more Pont To get it, your Points now are : " + client.Player.StrikePoints + ".");
- dialog.Option("Thanks Alot!", 255);
- dialog.Avatar(50);
- dialog.Send();
- }
- break;
- }
- }
- break;
- }
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement