Advertisement
SoLoOoM

Untitled

Jul 28th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 23.79 KB | None | 0 0
  1.  #region ChampionPk
  2.                 case 333333:
  3.                     {
  4.                         switch (npcRequest.OptionID)
  5.                         {
  6.                             case 0:
  7.                                 {
  8.                                     client.Entity.Update(_String.Effect, "break_start", true);
  9.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join the [ChampionPK] if you win ChampionPK.Top & CPs  ?.");
  10.                                     dialog.Option("Yes Please", 1);
  11.                                     dialog.Option("Not now.", 255);
  12.                                     dialog.Send();
  13.                                     break;
  14.                                 }
  15.                             case 1:
  16.                                 {
  17.                                     if (DateTime.Now.Minute >= 06 && DateTime.Now.Minute <= 09)
  18.                                     {
  19.                                         client.Entity.Teleport(5956, 50, 50);
  20.                                     }
  21.                                     else
  22.                                     {
  23.                                         dialog.Text("[ChampionPK] War is held during xx:06 To xx:09 in every Hour");
  24.                                         dialog.Option("I don't care.", 255);
  25.                                         dialog.Send();
  26.                                         break;
  27.                                     }
  28.                                     break;
  29.                                 }
  30.                         }
  31.                         break;
  32.                     }
  33.                 #endregion
  34.                 #region ChampionPK Prize
  35.                 case 333366:
  36.                     switch (npcRequest.OptionID)
  37.                     {
  38.                         case 0:
  39.                             {
  40.                                 client.Entity.Update(_String.Effect, "break_start", true);
  41.                                 dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  42.                                 dialog.Option("Yes Please", 1);
  43.                                 dialog.Option("I don't care.", 0xff);
  44.                                 dialog.Send();
  45.                                 break;
  46.                             }
  47.  
  48.                         case 1:
  49.                             {
  50.                                 int alive = 0;
  51.                                 foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  52.  
  53.                                     if (players.Entity.MapID == 5956 && (!players.Entity.Dead))
  54.                                         alive++;
  55.                                 if (DateTime.Now.Minute >= 9 && DateTime.Now.Minute <= 10)
  56.                                 {
  57.                                     if (alive == 1)
  58.                                     {
  59.  
  60.                                         client.Entity.ConquerPoints += CPanel.HQuests;
  61.                                         client.IncreaseExperience(client.ExpBall, false);
  62.                                         client.IncreaseExperience(client.ExpBall, false);
  63.                                         client.IncreaseExperience(client.ExpBall, false);
  64.                                         client.IncreaseExperience(client.ExpBall, false);
  65.                                         client.IncreaseExperience(client.ExpBall, false);
  66.                                         client.Entity.Teleport(1002, 429, 378);
  67.                                         client.Entity.AddFlag3(HarryPotter.Network.GamePackets.Update.Flags2.Top2Fire);
  68.                                         Kernel.SendWorldMessage(new Message(string.Concat(new object[] { "Congratulations! ", client.Entity.Name, " claimed the prize 100000 Cps for winning the ChampionPK for this Hour." }), System.Drawing.Color.Black, 0x7db), HarryPotter.Program.Values);
  69.                                         client.Entity.SendSpawn(client, true);
  70.                                         // client.Entity.Teleport(0x3ea, 0x1ad, 0x17a);
  71.                                         new Game.Statue(client.Entity.SpawnPacket);
  72.                                         EntityTable.SaveEntity(client);
  73.                                     }
  74.                                     else
  75.                                     {
  76.                                         dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!");
  77.                                         dialog.Option("okay", 0xff);
  78.                                         dialog.Send();
  79.                                     }
  80.                                 }
  81.                                 else
  82.                                 {
  83.                                     dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:10");
  84.                                     dialog.Option("okay", 0xff);
  85.                                     dialog.Send();
  86.                                 }
  87.                                 break;
  88.                             }
  89.                     }
  90.                     break;
  91.                 #endregion
  92.  #region TopConquer
  93.                 #region TopConquer
  94.                 case 221141:
  95.                     {
  96.                         switch (npcRequest.OptionID)
  97.                         {
  98.                             case 0:
  99.                                 {
  100.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join TopConquer?.");
  101.                                     dialog.Option("Yes Please", 1);
  102.                                     dialog.Option("I don't care.", 255);
  103.                                     dialog.Send();
  104.                                     break;
  105.                                 }
  106.                             case 1:
  107.                                 {
  108.                                     if (DateTime.Now.Minute >= 20 && DateTime.Now.Minute <= 22)
  109.                                     {
  110.                                         Random R = new Random();
  111.                                         int Nr = R.Next(1, 7);
  112.                                         if (Nr == 1) client.Entity.Teleport(1702, 33, 34);
  113.                                         if (Nr == 2) client.Entity.Teleport(1702, 67, 34);
  114.                                         if (Nr == 3) client.Entity.Teleport(1702, 33, 34);
  115.                                         if (Nr == 4) client.Entity.Teleport(1702, 67, 34);
  116.                                         if (Nr == 5) client.Entity.Teleport(1702, 33, 34);
  117.                                         if (Nr == 6) client.Entity.Teleport(1702, 67, 34);
  118.                                         if (Nr == 7) client.Entity.Teleport(1702, 68, 57);
  119.                                     }
  120.                                     else
  121.                                     {
  122.                                         dialog.Text("TopConquer is held during xx:20 to xx:22 in every Hour you have 2 min to sign-up ");
  123.                                         dialog.Option("I don't care.", 255);
  124.                                         dialog.Send();
  125.                                         break;
  126.                                     }
  127.                                     break;
  128.                                 }
  129.                         }
  130.                         break;
  131.                     }
  132.                 #endregion
  133.                 #region Winner of TopConquer
  134.                 case 22441:
  135.                     {
  136.                         switch (npcRequest.OptionID)
  137.                         {
  138.                             case 0:
  139.                                 {
  140.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  141.                                     dialog.Option("Yes Please", 1);
  142.                                     dialog.Option("I don't care.", 255);
  143.                                     dialog.Send();
  144.                                     break;
  145.                                 }
  146.                             case 1:
  147.                                 {
  148.                                     Daily.CheackAlive11();
  149.                                     if (DateTime.Now.Minute >= 22 && DateTime.Now.Minute <= 25)
  150.                                     {
  151.                                         if (Daily.howmanyinmap11 == 1)
  152.                                         {
  153.                                             //HellEartH.Game.ConquerStructures.ClassPk.ClassPks = false;
  154.                                             client.Entity.Teleport(1002, 429, 378);
  155.                                             client.Entity.ConquerPoints += CPanel.HQuests;
  156.                                             //Game.Flags.AddTopConquer(client);
  157.                                             client.Entity.AddTopStatus(Update.Flags2.WeeklyTop8Pk, DateTime.Now.AddHours(1));
  158.                                             client.Entity.AddFlag2(HarryPotter.Network.GamePackets.Update.Flags2.WeeklyTop8Pk);
  159.                                             Kernel.SendWorldMessage(new Message("Congratulations, " + client.Entity.Name + " has won TopConquer War and  Claimed 100,000 cps!", System.Drawing.Color.White, Message.Center), Program.Values);
  160.  
  161.  
  162.                                         }
  163.                                         else
  164.                                         {
  165.                                             dialog.Text("There are still " + Daily.howmanyinmap11 + " players in the map kill it first to claim prize!");
  166.                                             dialog.Option("okay", 255);
  167.                                             dialog.Send();
  168.                                             break;
  169.                                         }
  170.                                     }
  171.                                     else
  172.                                     {
  173.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:22");
  174.                                         dialog.Option("okay", 255);
  175.                                         dialog.Send();
  176.                                         break;
  177.                                     }
  178.                                     break;
  179.                                 }
  180.                         }
  181.                         break;
  182.                     }
  183.                 #endregion
  184.                 #endregion
  185.                 #region TopMasters
  186.                 #region TopMasters
  187.                 case 32541:
  188.                     {
  189.                         switch (npcRequest.OptionID)
  190.                         {
  191.                             case 0:
  192.                                 {
  193.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join TopMasters?.");
  194.                                     dialog.Option("Yes Please", 1);
  195.                                     dialog.Option("I don't care.", 255);
  196.                                     dialog.Send();
  197.                                     break;
  198.                                 }
  199.                             case 1:
  200.                                 {
  201.                                     if (DateTime.Now.Minute >= 22 && DateTime.Now.Minute <= 23)
  202.                                     {
  203.                                         Random R = new Random();
  204.                                         int Nr = R.Next(1, 7);
  205.                                         if (Nr == 1) client.Entity.Teleport(1701, 33, 34);
  206.                                         if (Nr == 2) client.Entity.Teleport(1701, 67, 34);
  207.                                         if (Nr == 3) client.Entity.Teleport(1701, 33, 34);
  208.                                         if (Nr == 4) client.Entity.Teleport(1701, 67, 34);
  209.                                         if (Nr == 5) client.Entity.Teleport(1701, 33, 34);
  210.                                         if (Nr == 6) client.Entity.Teleport(1701, 67, 34);
  211.                                         if (Nr == 7) client.Entity.Teleport(1701, 68, 57);
  212.                                     }
  213.                                     else
  214.                                     {
  215.                                         dialog.Text("TopMasters is held during xx:22 to xx:23 you have 2 min to sign up ");
  216.                                         dialog.Option("I don't care.", 255);
  217.                                         dialog.Send();
  218.                                         break;
  219.                                     }
  220.                                     break;
  221.                                 }
  222.                         }
  223.                         break;
  224.                     }
  225.                 #endregion
  226.                 #region Winner of TopMasters
  227.                 case 32542:
  228.                     {
  229.                         switch (npcRequest.OptionID)
  230.                         {
  231.                             case 0:
  232.                                 {
  233.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  234.                                     dialog.Option("Yes Please", 1);
  235.                                     dialog.Option("I don't care.", 255);
  236.                                     dialog.Send();
  237.                                     break;
  238.                                 }
  239.                             case 1:
  240.                                 {
  241.                                     Daily.CheackAlive10();
  242.                                     if (DateTime.Now.Minute >= 23 && DateTime.Now.Minute <= 25)
  243.                                     {
  244.                                         if (Daily.howmanyinmap10 == 1)
  245.                                         {
  246.                                             client.Entity.Teleport(1002, 429, 378);
  247.                                             client.Entity.ConquerPoints += CPanel.HQuests;
  248.                                             //  Game.Flags.AddTopMaster(client)
  249.                                          //   client.Entity.AddTopStatus(Update.Flags.WeeklyPKChampion, DateTime.Now.AddHours(1));
  250.                                             Kernel.SendWorldMessage(new Message("Congratulations, " + client.Entity.Name + " has won TopMaster War and  Claimed 100,000 cps!", System.Drawing.Color.White, Message.Center), Program.Values);          
  251.                                         }
  252.                                         else
  253.                                         {
  254.                                             dialog.Text("There are still " + Daily.howmanyinmap10 + " players in the map kill it first to claim prize!");
  255.                                             dialog.Option("okay", 255);
  256.                                             dialog.Send();
  257.                                             break;
  258.                                         }
  259.                                     }
  260.                                     else
  261.                                     {
  262.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:23");
  263.                                         dialog.Option("okay", 255);
  264.                                         dialog.Send();
  265.                                         break;
  266.                                     }
  267.                                     break;
  268.                                 }
  269.                         }
  270.                         break;
  271.                     }
  272.                 #endregion
  273.                 #endregion
  274.  
  275.  #region SS and FB
  276.                 case 50545:
  277.                     {
  278.                         switch (npcRequest.OptionID)
  279.                         {
  280.                             case 0:
  281.                                 {
  282.                                     if (client.Entity.Class >= 40 && client.Entity.Class <= 45)
  283.                                     {
  284.                                         dialog.Text("your Are an archer You can't join this arena.");
  285.                                         dialog.Option("I see.", 255);
  286.                                         dialog.Avatar(116);
  287.                                         dialog.Send();
  288.                                         break;
  289.                                     }
  290.                                     var weps = client.Weapons;
  291.                                     if ((weps.Item1 != null && weps.Item1.ID / 1000 != 410) && (weps.Item2 != null && weps.Item2.ID / 1000 != 410) && (weps.Item1 != null && weps.Item1.ID / 1000 != 420) && (weps.Item2 != null && weps.Item2.ID / 1000 != 420))
  292.                                     {
  293.                                         client.Send(new Message("You need to wear only blade or sword!", Color.Red, Message.Talk));
  294.                                         return;
  295.                                     }
  296.                                     dialog.Text("Hello " + client.Entity.Name + " I am a teleporter, I can teleport you to 1 Hit arena ,You can't use cheap skills in this map You can only use this skills [FastBlade,ScentSword], So you can play .");
  297.                                     dialog.Option("Yea Teleport me Please !!", 1);
  298.                                     dialog.Option("Just passing by.", 255);
  299.                                     dialog.Avatar(234);
  300.                                     dialog.Send();
  301.                                     break;
  302.                                 }
  303.                             case 1:
  304.                                 {
  305.                                     if (Matrix_Times.Start.FBSS)
  306.                                     {
  307.                                         client.Entity.RemoveFlag(Update.Flags.Ride);
  308.                                         client.Entity.Hitpoints = 1;
  309.                                         client.Entity.Teleport(1707, 50, 50);
  310.                                         break;
  311.                                     }
  312.                                     else
  313.                                     {
  314.                                         dialog.Text("Not Now Only at xx:55 to xx:57");
  315.                                         dialog.Option("I see.", 255);
  316.                                         dialog.Avatar(116);
  317.                                         dialog.Send();
  318.                                         break;
  319.                                     }
  320.                                 }
  321.                         }
  322.                         break;
  323.                     }
  324.                    
  325.                 #endregion
  326.                 #region Winner of SS FB
  327.                 case 5658821:
  328.                     {
  329.                         switch (npcRequest.OptionID)
  330.                         {
  331.                             case 0:
  332.                                 {
  333.                                     dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
  334.                                     dialog.Option("Yes Please ", 1);
  335.                                     dialog.Option("I don't care.", 255);
  336.                                     dialog.Send();
  337.                                     break;
  338.                                 }
  339.                             case 1:
  340.                                 {
  341.                                     int alive = 0;
  342.                                     foreach (HarryPotter.Client.GameState players in Kernel.GamePool.Values)
  343.                                         if (players.Entity.MapID == 1707 && (!players.Entity.Dead))
  344.                                             alive++;
  345.                                     if (Matrix_Times.End.FBSS)
  346.                                     {
  347.                                         if (alive == 1)
  348.                                         {
  349.  
  350.                                             client.Entity.ConquerPoints += CPanel.HQuests;
  351.                                             Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " claimed (( " + CPanel.HQuests + " CPs)) for winning the Top SS & FB for this Hour.", System.Drawing.Color.Black, Message.Talk), Program.Values);
  352.                                             client.Entity.SendSpawn(client, true);
  353.                                             client.Entity.Teleport(1002, 429, 378);
  354.                                             EntityTable.SaveEntity(client);
  355.                                         }
  356.                                         else
  357.                                         {
  358.                                             dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
  359.                                             dialog.Option("okay", 255);
  360.                                             dialog.Send();
  361.                                             break;
  362.                                         }
  363.                                     }
  364.                                     else
  365.                                     {
  366.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:58 ");
  367.                                         dialog.Option("Ok I Sorry ", 255);
  368.                                         dialog.Send();
  369.                                         break;
  370.                                     }
  371.                                     break;
  372.                                 }
  373.                         }
  374.                         break;
  375.                     }
  376.                 #endregion
  377.                 #region Cyclone War Prize
  378.                 case 0x1978://6521
  379.                     switch (npcRequest.OptionID)
  380.                     {
  381.                         case 0:
  382.                             dialog.Text("Hello " + client.Entity.Name + " did u finish Race Get ur prize  ");
  383.                             dialog.Option("Give me my prize ", 1);
  384.                             break;
  385.  
  386.                         case 1:
  387.                             if (World.cycolne)
  388.                             {
  389.                                 client.Entity.race = 0;
  390.                                 uint cycx = CPanel.BQuests;
  391.                                 client.Entity.ConquerPoints += cycx;
  392.                                 Kernel.SendWorldMessage(new Message("Gratz! " + client.Entity.Name + " has Finish Cycolne Speed And Won 100000 Cps ", System.Drawing.Color.Red, 0x7db), Program.Values);
  393.                                 client.Entity.RemoveFlag(0x800000L);
  394.                                 World.cycolne = false;
  395.                             }
  396.                             break;
  397.                     }
  398.                     break;
  399.                 #endregion
  400.                 #region Cyclone War Sign Up
  401.                 case 0x1979://6520
  402.                     switch (npcRequest.OptionID)
  403.                     {
  404.                         case 0:
  405.                             dialog.Text("Hello " + client.Entity.Name + " this Is Cyclone Speed Race Start Evrey Hour in xx:50 ");
  406.                             dialog.Option("let me join", 1);
  407.                             break;
  408.  
  409.                         case 1:
  410.                             if (World.cycolne)
  411.                             {
  412.                                 client.Entity.race = 1;
  413.                                 dialog.Text("You Have Signed Up Wait 1 min ");
  414.                                 dialog.Send();
  415.                             }
  416.                             else
  417.                             {
  418.                                 dialog.Text("This is not the right time Come Later ");
  419.                                 dialog.Option("okay", 0xff);
  420.                                 dialog.Send();
  421.                             }
  422.                             break;
  423.                     }
  424.                     break;
  425.                 #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement