Advertisement
Genral

P7SacredTreasuresEnvoy

Nov 5th, 2018
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 12.26 KB | None | 0 0
  1. [NpcAttribute(NpcID.P7SacredTreasuresEnvoy)]
  2.         public static void P7SacredTreasuresEnvoy(Client.GameClient client, ServerSockets.Packet stream, byte Option, string Input, uint id)
  3.         {
  4.             Dialog data = new Dialog(client, stream);
  5.             switch (Option)
  6.             {
  7.                 case 0:
  8.                     {
  9.                         data.AddText("There`s a mysterious treasure sealed since the ancient times. With a Savage Bone, you can explore and have a chance to get Sacred refinery materials, rare")
  10.                             .AddText("~weapon accessories, and even the legendary P7 Dragon Soul.")
  11.                             .AddOption("I~wanna~explore.", 1)
  12.                             .AddOption("Special~exploration.", 2)
  13.                             .AddOption("I~see.", 255)
  14.                             .AddAvatar(200)
  15.                             .FinalizeDialog();
  16.                         break;
  17.                     }
  18.                 case 1:
  19.                     {
  20.                         data.AddText("The Nemesis Tyrant in the DragonIland Sea has the Savage Bones. You can use one to explore each time.")
  21.                             .AddOption("Use~a~Savage~Bone.", 3)
  22.                             .AddOption("Send~me~there.", 4)
  23.                             .AddOption("I~see.", 255)
  24.                             .AddAvatar(200)
  25.                             .FinalizeDialog();
  26.                         break;
  27.                     }
  28.                 case 2:
  29.                     {
  30.                         data.AddText("If you don`t have a Savage Bone, you can also pay 3700 or 17.000 CPs to explore. Of course, the more you pay, the better you get.")
  31.                            .AddText("~How much would you like to pay?")
  32.                            .AddOption("3700~CPs.", 5)
  33.                            .AddOption("17.000~CPs.", 6)
  34.                            .AddOption("I~see.", 255)
  35.                            .AddAvatar(200)
  36.                            .FinalizeDialog();
  37.                         break;
  38.                     }
  39.                 #region [SavageBone]
  40.                 case 3:
  41.                     {
  42.                         if (client.Inventory.Contain(3004181, 1))
  43.                         {
  44.                             data.AddText("The Nemesis Tyrant in the DragonIland Sea has the Savage Bones. You can use one to explore each time.")
  45.                                 .AddOption("Use~a~Savage~Bone.", 3)
  46.                                 .AddOption("I~see.", 255)
  47.                                 .AddAvatar(200)
  48.                                 .FinalizeDialog();
  49.                             uint[] ItemID = new uint[]
  50.                             {
  51.                                 3004251, 3004252, 3004253, 3004254, 3004255, 3004256,
  52.                                 3004249, 3004245, 3004248, 3004244, 3004247, 3004243
  53.                             };
  54.                             uint Itemz = ItemID[Program.GetRandom.Next(ItemID.Length)];
  55.                             #region MessageSend
  56.                             if (Itemz == 3004251)
  57.                                 client.CreateBoxDialog("You received a CarpFishPoleScrap.");
  58.                             else if (Itemz == 3004252)
  59.                                 client.CreateBoxDialog("You received a SpecialOarScrap.");
  60.                             else if (Itemz == 3004253)
  61.                                 client.CreateBoxDialog("You received a CucumberHammerScrap.");
  62.                             else if (Itemz == 3004254)
  63.                                 client.CreateBoxDialog("You received a CatHammerScrap.");
  64.                             else if (Itemz == 3004255)
  65.                                 client.CreateBoxDialog("You received a RacoonRacketScrap.");
  66.                             else if (Itemz == 3004256)
  67.                                 client.CreateBoxDialog("You received a UltraRacketScrap.");
  68.                             else if (Itemz == 3004249)
  69.                                 client.CreateBoxDialog("You received a SacredRefineryPack.");
  70.                             else if (Itemz == 3004245)
  71.                                 client.CreateBoxDialog("You received a SacredRefineryScrap.");
  72.                             else if (Itemz == 3004248)
  73.                                 client.CreateBoxDialog("You received a P7EquipmentSoulPack.");
  74.                             else if (Itemz == 3004244)
  75.                                 client.CreateBoxDialog("You received a P7EquipmentSoulScrap.");
  76.                             else if (Itemz == 3004247)
  77.                                 client.CreateBoxDialog("You received a P7WeaponSoulPack.");
  78.                             else if (Itemz == 3004243)
  79.                                 client.CreateBoxDialog("You received a P7WeaponSoulScrap.");
  80.                             #endregion
  81.                             if (Itemz == 3004249 || Itemz == 3004248 || Itemz == 3004247)
  82.                                 client.Inventory.Add(stream, Itemz);
  83.                             else
  84.                                 client.Inventory.AddItemWitchStack(Itemz, 0, 1, stream);
  85.                             client.Inventory.Remove(3004181, 1, stream);
  86.                         }
  87.                         break;
  88.                     }
  89.                 #endregion
  90.                 case 4:
  91.                     {
  92.                         if (client.Player.Level >= 120)
  93.                             client.Teleport(95, 409, 10137, 0);
  94.                         else
  95.                             client.CreateBoxDialog("Sorry only level 120 is allowed to enter");
  96.                         break;
  97.                     }
  98.                 #region [SpecialExploration]
  99.                 #region Buy-3k>cps
  100.                 case 5:
  101.                     {
  102.                         data.AddText("If you don`t have a Savage Bone, you can also pay 3700 CPs to explore. Of course, the more you pay, the better you get.")
  103.                            .AddText("~How much would you like to pay?")
  104.                            .AddOption("3700~CPs.", 5)
  105.                            //.AddOption("17.000~CPs.", 6)
  106.                            .AddOption("I~see.", 255)
  107.                            .AddAvatar(200)
  108.                            .FinalizeDialog();
  109.                         uint[] ItemID = new uint[]
  110.                             {
  111.                                 3004251, 3004252, 3004253, 3004254, 3004255, 3004256,
  112.                                 3004249, 3004245, 3004248, 3004244, 3004247, 3004243
  113.                             };
  114.                   back: uint Itemz = ItemID[Program.GetRandom.Next(ItemID.Length)];
  115.                         if (Role.Core.Rate(80))
  116.                         {
  117.                             if (Itemz == 3004249 || Itemz == 3004248 || Itemz == 3004247)
  118.                                 goto back;
  119.                         }
  120.                         #region MessageSend
  121.                         if (Itemz == 3004251)
  122.                             client.CreateBoxDialog("You received a CarpFishPoleScrap.");
  123.                         else if (Itemz == 3004252)
  124.                             client.CreateBoxDialog("You received a SpecialOarScrap.");
  125.                         else if (Itemz == 3004253)
  126.                             client.CreateBoxDialog("You received a CucumberHammerScrap.");
  127.                         else if (Itemz == 3004254)
  128.                             client.CreateBoxDialog("You received a CatHammerScrap.");
  129.                         else if (Itemz == 3004255)
  130.                             client.CreateBoxDialog("You received a RacoonRacketScrap.");
  131.                         else if (Itemz == 3004256)
  132.                             client.CreateBoxDialog("You received a UltraRacketScrap.");
  133.                         else if (Itemz == 3004249)
  134.                             client.CreateBoxDialog("You received a SacredRefineryPack.");
  135.                         else if (Itemz == 3004245)
  136.                             client.CreateBoxDialog("You received a SacredRefineryScrap.");
  137.                         else if (Itemz == 3004248)
  138.                             client.CreateBoxDialog("You received a P7EquipmentSoulPack.");
  139.                         else if (Itemz == 3004244)
  140.                             client.CreateBoxDialog("You received a P7EquipmentSoulScrap.");
  141.                         else if (Itemz == 3004247)
  142.                             client.CreateBoxDialog("You received a P7WeaponSoulPack.");
  143.                         else if (Itemz == 3004243)
  144.                             client.CreateBoxDialog("You received a P7WeaponSoulScrap.");
  145.                         #endregion
  146.                         if (Itemz == 3004249 || Itemz == 3004248 || Itemz == 3004247)
  147.                             client.Inventory.Add(stream, Itemz);
  148.                         else
  149.                             client.Inventory.AddItemWitchStack(Itemz, 0, 1, stream);
  150.                         client.Inventory.Remove(3004181, 1, stream);
  151.                         break;
  152.                     }
  153.                 #endregion
  154.                 #region Buy-17k>cps
  155.                 case 6:
  156.                     {
  157.                         data.AddText("If you don`t have a Savage Bone, you can also pay 17.000~CPs to explore. Of course, the more you pay, the better you get.")
  158.                            .AddText("~How much would you like to pay?")
  159.                            //.AddOption("3700~CPs.", 5)
  160.                            .AddOption("17.000~CPs.", 6)
  161.                            .AddOption("I~see.", 255)
  162.                            .AddAvatar(200)
  163.                            .FinalizeDialog();
  164.                         uint[] ItemID = new uint[]
  165.                             {
  166.                                 3004249, 3004245, 3004248, 3004244, 3004247, 3004243
  167.                             };
  168.                     back: uint Itemz = ItemID[Program.GetRandom.Next(ItemID.Length)];
  169.                         if (Role.Core.Rate(50))
  170.                         {
  171.                             if (Itemz == 3004249 || Itemz == 3004248 || Itemz == 3004247)
  172.                                 goto back;
  173.                         }
  174.                         #region MessageSend
  175.                         if (Itemz == 3004251)
  176.                             client.CreateBoxDialog("You received a CarpFishPoleScrap.");
  177.                         else if (Itemz == 3004252)
  178.                             client.CreateBoxDialog("You received a SpecialOarScrap.");
  179.                         else if (Itemz == 3004253)
  180.                             client.CreateBoxDialog("You received a CucumberHammerScrap.");
  181.                         else if (Itemz == 3004254)
  182.                             client.CreateBoxDialog("You received a CatHammerScrap.");
  183.                         else if (Itemz == 3004255)
  184.                             client.CreateBoxDialog("You received a RacoonRacketScrap.");
  185.                         else if (Itemz == 3004256)
  186.                             client.CreateBoxDialog("You received a UltraRacketScrap.");
  187.                         else if (Itemz == 3004249)
  188.                             client.CreateBoxDialog("You received a SacredRefineryPack.");
  189.                         else if (Itemz == 3004245)
  190.                             client.CreateBoxDialog("You received a SacredRefineryScrap.");
  191.                         else if (Itemz == 3004248)
  192.                             client.CreateBoxDialog("You received a P7EquipmentSoulPack.");
  193.                         else if (Itemz == 3004244)
  194.                             client.CreateBoxDialog("You received a P7EquipmentSoulScrap.");
  195.                         else if (Itemz == 3004247)
  196.                             client.CreateBoxDialog("You received a P7WeaponSoulPack.");
  197.                         else if (Itemz == 3004243)
  198.                             client.CreateBoxDialog("You received a P7WeaponSoulScrap.");
  199.                         #endregion
  200.                         if (Itemz == 3004249 || Itemz == 3004248 || Itemz == 3004247)
  201.                             client.Inventory.Add(stream, Itemz);
  202.                         else
  203.                             client.Inventory.AddItemWitchStack(Itemz, 0, 1, stream);
  204.                         client.Inventory.Remove(3004181, 1, stream);
  205.                         break;
  206.                     }
  207.                 #endregion
  208.                 #endregion
  209.             }
  210.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement