Advertisement
SoLoOoM

Untitled

Jul 28th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 134.40 KB | None | 0 0
  1. #region QuestBy HarryPotter With Tops For 1 Hour
  2.                 #region TwinPk
  3.                 case 333399:
  4.                     {
  5.                         switch (npcRequest.OptionID)
  6.                         {
  7.                             case 0:
  8.                                 {
  9.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join TwinPk?.");
  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 >= 10 && DateTime.Now.Minute <= 12)
  18.                                     {
  19.                                         client.Entity.Teleport(5540, 46, 50);
  20.                                     }
  21.                                     else
  22.                                     {
  23.                                         dialog.Text("[TwinPk] War is held during xx:10 To xx:12 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 TwinPk Prize
  35.                 case 333300:
  36.                     switch (npcRequest.OptionID)
  37.                     {
  38.                         case 0:
  39.                             {
  40.                                 dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  41.                                 dialog.Option("Yes Please", 1);
  42.                                 dialog.Option("I Need To Leave", 2);
  43.                                 // dialog.Option("Potions HP / Magic", 3);
  44.                                 dialog.Option("I don't care.", 0xff);
  45.                                 dialog.Send();
  46.                                 break;
  47.                             }
  48.  
  49.                         case 1:
  50.                             {
  51.                                 int alive = 0;
  52.                                 foreach (GameState players in Kernel.GamePool.Values)
  53.                                     if (players.Entity.MapID == 5540 && (!players.Entity.Dead))
  54.                                         alive++;
  55.                                 if (DateTime.Now.Minute >= 12 && DateTime.Now.Minute <= 14)
  56.                                 {
  57.                                     if (alive == 1)
  58.                                     {
  59.                                         client.Entity.ConquerPoints += CPanel.PoleTwin;
  60.                                         client.Entity.RemoveFlag(Update.Flags.Ride);
  61.                                        // client.Entity.AddTopStatus(Update.Flags.TopArcher, DateTime.Now.AddHours(1));
  62.                                         HarryPotter.Kernel.SendWorldMessage(new Message("Congratulations!  " + client.Entity.Name + "You Winner Quest TwinPk Prize 100000 CPs.", System.Drawing.Color.Black, Message.Center), Program.Values);
  63.                                         client.Entity.SendSpawn(client, true);
  64.                                         client.Entity.Teleport(1002, 428, 378);
  65.                                         EntityTable.SaveEntity(client);
  66.                                     }
  67.                                     else
  68.                                     {
  69.                                         dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!");
  70.                                         dialog.Option("okay", 0xff);
  71.                                         dialog.Send();
  72.                                     }
  73.                                 }
  74.                                 else
  75.                                 {
  76.                                     dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:12");
  77.                                     dialog.Option("okay", 0xff);
  78.                                     dialog.Send();
  79.                                 }
  80.                                 break;
  81.                             }
  82.                         case 2:
  83.                             {
  84.                                 {
  85.                                     client.Entity.Teleport(1002, 429, 378);
  86.                                 }
  87.                                 break;
  88.                             }
  89.                         case 3:
  90.                             {
  91.                                 INpc npc = null;
  92.                                 if (client.Map.Npcs.TryGetValue(client.ActiveNpc, out npc))
  93.                                 {
  94.                                     Data data = new Data(true);
  95.                                     data.ID = Data.OpenWindow;
  96.                                     data.UID = client.Entity.UID;
  97.                                     data.TimeStamp = Time32.Now;
  98.                                     data.dwParam = 0x1FA;
  99.                                     data.wParam1 = npc.X;
  100.                                     data.wParam2 = npc.Y;
  101.                                     client.Send(data);
  102.                                 }
  103.                                 break;
  104.                             }
  105.                     }
  106.                     break;
  107.                 #endregion
  108.                 #region PhoeinxPk
  109.                 case 25810:
  110.                     {
  111.                         switch (npcRequest.OptionID)
  112.                         {
  113.                             case 0:
  114.                                 {
  115.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join PhoeinxPk?.");
  116.                                     dialog.Option("Yes Please", 1);
  117.                                     dialog.Option("Not now.", 255);
  118.                                     dialog.Send();
  119.                                     break;
  120.                                 }
  121.                             case 1:
  122.                                 {
  123.                                     if (DateTime.Now.Minute >= 16 && DateTime.Now.Minute <= 18)
  124.                                     {
  125.                                         client.Entity.Teleport(5452, 83, 112);
  126.                                     }
  127.                                     else
  128.                                     {
  129.                                         dialog.Text("[PhoeinxPk] War is held during xx:16 To xx:18 in every Hour");
  130.                                         dialog.Option("I don't care.", 255);
  131.                                         dialog.Send();
  132.                                         break;
  133.                                     }
  134.                                     break;
  135.                                 }
  136.                         }
  137.                         break;
  138.                     }
  139.                 #endregion
  140.                 #region PhoeinxPk Prize
  141.                 case 258100:
  142.                     switch (npcRequest.OptionID)
  143.                     {
  144.                         case 0:
  145.                             {
  146.                                 dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  147.                                 dialog.Option("Yes Please", 1);
  148.                                 dialog.Option("I Need To Leave", 2);
  149.                                 dialog.Option("I don't care.", 0xff);
  150.                                 dialog.Send();
  151.                                 break;
  152.                             }
  153.  
  154.                         case 1:
  155.                             {
  156.                                 int alive = 0;
  157.                                 foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  158.                                     if (players.Entity.MapID == 5452 && (!players.Entity.Dead))
  159.                                         alive++;
  160.                                 if (DateTime.Now.Minute >= 18 && DateTime.Now.Minute <= 20)
  161.                                 {
  162.                                     if (alive == 1)
  163.                                     {
  164.                                         client.Entity.ConquerPoints += CPanel.PolePhoenix;
  165.                                         client.Entity.RemoveFlag(Update.Flags.Ride);
  166.                                         client.Entity.AddTopStatus(Update.Flags.TopTrojan, DateTime.Now.AddHours(1));
  167.                                         HarryPotter.Kernel.SendWorldMessage(new Message("Congratulations!  " + client.Entity.Name + "You Wenner Quest PhoeinxPk Prize 100000 CPs.", System.Drawing.Color.Black, Message.Center), Program.Values);
  168.                                         client.Entity.SendSpawn(client, true);
  169.                                         client.Entity.Teleport(1002, 428, 378);
  170.                                         EntityTable.SaveEntity(client);
  171.                                     }
  172.                                     else
  173.                                     {
  174.                                         dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!");
  175.                                         dialog.Option("okay", 0xff);
  176.                                         dialog.Send();
  177.                                     }
  178.                                 }
  179.                                 else
  180.                                 {
  181.                                     dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:18");
  182.                                     dialog.Option("okay", 0xff);
  183.                                     dialog.Send();
  184.                                 }
  185.                                 break;
  186.                             }
  187.                         case 2:
  188.                             {
  189.                                 {
  190.                                     client.Entity.Teleport(1002, 429, 378);
  191.                                 }
  192.                                 break;
  193.                             }
  194.                     }
  195.                     break;
  196.                 #endregion
  197.                 #region ApePk
  198.                 case 3333990:
  199.                     {
  200.                         switch (npcRequest.OptionID)
  201.                         {
  202.                             case 0:
  203.                                 {
  204.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join ApePk?.");
  205.                                     dialog.Option("Yes Please", 1);
  206.                                     dialog.Option("Not now.", 255);
  207.                                     dialog.Send();
  208.                                     break;
  209.                                 }
  210.                             case 1:
  211.                                 {
  212.                                     if (DateTime.Now.Minute >= 26 && DateTime.Now.Minute <= 28)
  213.                                     {
  214.                                         client.Entity.Teleport(5560, 107, 120);
  215.                                     }
  216.                                     else
  217.                                     {
  218.                                         dialog.Text("[ApePk] War is held during xx:26 To xx:28 in every Hour");
  219.                                         dialog.Option("I don't care.", 255);
  220.                                         dialog.Send();
  221.                                         break;
  222.                                     }
  223.                                     break;
  224.                                 }
  225.                         }
  226.                         break;
  227.                     }
  228.                 #endregion
  229.                 #region ApePk Prize
  230.                 case 3333000:
  231.                     switch (npcRequest.OptionID)
  232.                     {
  233.                         case 0:
  234.                             {
  235.                                 dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  236.                                 dialog.Option("Yes Please", 1);
  237.                                 dialog.Option("I Need To Leave", 2);
  238.                                 dialog.Option("I don't care.", 0xff);
  239.                                 dialog.Send();
  240.                                 break;
  241.                             }
  242.  
  243.                         case 1:
  244.                             {
  245.                                 int alive = 0;
  246.                                 foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  247.                                     if (players.Entity.MapID == 5560 && (!players.Entity.Dead))
  248.                                         alive++;
  249.                                 if (DateTime.Now.Minute >= 28 && DateTime.Now.Minute <= 30)
  250.                                 {
  251.                                     if (alive == 1)
  252.                                     {
  253.                                         client.Entity.ConquerPoints += CPanel.PoleApe;
  254.                                         client.Entity.RemoveFlag(Update.Flags.Ride);
  255.                                         //  client.Entity.AddTopStatus(Update.Flags.TopNinja, DateTime.Now.AddHours(1));
  256.                                         HarryPotter.Kernel.SendWorldMessage(new Message("Congratulations!  " + client.Entity.Name + "You Wenner Quest ApePk Prize 100000 CPs.", System.Drawing.Color.Black, Message.Center), Program.Values);
  257.                                         client.Entity.SendSpawn(client, true);
  258.                                         client.Entity.Teleport(1002, 428, 378);
  259.                                         EntityTable.SaveEntity(client);                                  
  260.                                     }
  261.                                     else
  262.                                     {
  263.                                         dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!");
  264.                                         dialog.Option("okay", 0xff);
  265.                                         dialog.Send();
  266.                                     }
  267.                                 }
  268.                                 else
  269.                                 {
  270.                                     dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:28");
  271.                                     dialog.Option("okay", 0xff);
  272.                                     dialog.Send();
  273.                                 }
  274.                                 break;
  275.                             }
  276.                         case 2:
  277.                             {
  278.                                 {
  279.                                     client.Entity.Teleport(1002, 429, 378);
  280.                                 }
  281.                                 break;
  282.                             }
  283.                     }
  284.                     break;
  285.                 #endregion
  286.                 #region BirdPk
  287.                 case 252810:
  288.                     {
  289.                         switch (npcRequest.OptionID)
  290.                         {
  291.                             case 0:
  292.                                 {
  293.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join BirdPk?.");
  294.                                     dialog.Option("Yes Please", 1);
  295.                                     dialog.Option("Not now.", 255);
  296.                                     dialog.Send();
  297.                                     break;
  298.                                 }
  299.                             case 1:
  300.                                 {
  301.                                     if (DateTime.Now.Minute >= 45 && DateTime.Now.Minute <= 47)
  302.                                     {
  303.                                         client.Entity.Teleport(5450, 94, 113);
  304.                                     }
  305.                                     else
  306.                                     {
  307.                                         dialog.Text("[BirdPk] War is held during xx:45 To xx:47 in every Hour");
  308.                                         dialog.Option("I don't care.", 255);
  309.                                         dialog.Send();
  310.                                         break;
  311.                                     }
  312.                                     break;
  313.                                 }
  314.                         }
  315.                         break;
  316.                     }
  317.                 #endregion
  318.                 #region BirdPk Prize
  319.                 case 252100:
  320.                     switch (npcRequest.OptionID)
  321.                     {
  322.                         case 0:
  323.                             {
  324.                                 dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  325.                                 dialog.Option("Yes Please", 1);
  326.                                 dialog.Option("I Need To Leave", 2);
  327.                                 dialog.Option("I don't care.", 0xff);
  328.                                 dialog.Send();
  329.                                 break;
  330.                             }
  331.  
  332.                         case 1:
  333.                             {
  334.                                 int alive = 0;
  335.                                 foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  336.                                     if (players.Entity.MapID == 5450 && (!players.Entity.Dead))
  337.                                         alive++;
  338.                                 if (DateTime.Now.Minute >= 47 && DateTime.Now.Minute <= 48)
  339.                                 {
  340.                                     if (alive == 1)
  341.                                     {
  342.                                         client.Entity.ConquerPoints += CPanel.PoleBird;
  343.                                         client.Entity.RemoveFlag(Update.Flags.Ride);
  344.                                         client.Entity.AddTopStatus(Update.Flags.TopTrojan, DateTime.Now.AddHours(1));
  345.                                         HarryPotter.Kernel.SendWorldMessage(new Message("Congratulations!  " + client.Entity.Name + "You Wenner Quest BirdPk Prize 100000 CPs.", System.Drawing.Color.Black, Message.Center), Program.Values);
  346.                                         client.Entity.SendSpawn(client, true);
  347.                                         client.Entity.Teleport(1002, 428, 378);
  348.                                         EntityTable.SaveEntity(client);
  349.                                     }
  350.                                     else
  351.                                     {
  352.                                         dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!");
  353.                                         dialog.Option("okay", 0xff);
  354.                                         dialog.Send();
  355.                                     }
  356.                                 }
  357.                                 else
  358.                                 {
  359.                                     dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:47");
  360.                                     dialog.Option("okay", 0xff);
  361.                                     dialog.Send();
  362.                                 }
  363.                                 break;
  364.                             }
  365.                         case 2:
  366.                             {
  367.                                 {
  368.                                     client.Entity.Teleport(1002, 429, 378);
  369.                                 }
  370.                                 break;
  371.                             }
  372.                     }
  373.                     break;
  374.                 #endregion
  375.                 #region NightPK
  376.                 case 1234561:
  377.                     {
  378.                         switch (npcRequest.OptionID)
  379.                         {
  380.                             case 0:
  381.                                 {
  382.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Night PK?.");
  383.                                     dialog.Option("Yes Please", 1);
  384.                                     dialog.Option("Not now.", 255);
  385.                                     dialog.Send();
  386.                                     break;
  387.                                 }
  388.                             case 1:
  389.                                 {
  390.                                     if (DateTime.Now.Minute >= 47 && DateTime.Now.Minute <= 49)
  391.                                     {
  392.                                         client.Entity.Teleport(5541, 67, 34);
  393.                                     }
  394.                                     else
  395.                                     {
  396.                                         dialog.Text("[Night PK] War is held during xx:47 To xx:49 in every Hour");
  397.                                         dialog.Option("I don't care.", 255);
  398.                                         dialog.Send();
  399.                                         break;
  400.                                     }
  401.                                     break;
  402.                                 }
  403.                         }
  404.                         break;
  405.                     }
  406.                 #endregion
  407.                 #region NightPK Prize
  408.                 case 12345611:
  409.                     switch (npcRequest.OptionID)
  410.                     {
  411.                         case 0:
  412.                             {
  413.                                 dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  414.                                 dialog.Option("Yes Please", 1);
  415.                                 dialog.Option("I don't care.", 0xff);
  416.                                 dialog.Send();
  417.                                 break;
  418.                             }
  419.  
  420.                         case 1:
  421.                             {
  422.                                 int alive = 0;
  423.                                 foreach (GameState players in Kernel.GamePool.Values)
  424.                                     if (players.Entity.MapID == 5541 && (!players.Entity.Dead))
  425.                                         alive++;
  426.                                 if (DateTime.Now.Minute >= 49 && DateTime.Now.Minute <= 50)
  427.                                 {
  428.                                     if (alive == 1)
  429.                                     {
  430.                                         client.Entity.ConquerPoints += CPanel.LasTMan;
  431.                                         client.Entity.RemoveFlag(Update.Flags.Ride);
  432.                                         // client.Entity.AddTopStatus(Update.Flags.TopNinja, DateTime.Now.AddDays(1));
  433.                                         HarryPotter.Kernel.SendWorldMessage(new Message("Congratulations!  " + client.Entity.Name + "You Wenner Quest NightPK Prize" + CPanel.LasTMan + " CPs.", System.Drawing.Color.Black, Message.Center), Program.Values);
  434.                                         client.Entity.SendSpawn(client, true);
  435.                                         client.Entity.Teleport(1002, 428, 378);
  436.                                         EntityTable.SaveEntity(client);
  437.                                     }
  438.                                     else
  439.                                     {
  440.                                         dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!");
  441.                                         dialog.Option("okay", 0xff);
  442.                                         dialog.Send();
  443.                                     }
  444.                                 }
  445.                                 else
  446.                                 {
  447.                                     dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:16");
  448.                                     dialog.Option("okay", 0xff);
  449.                                     dialog.Send();
  450.                                 }
  451.                                 break;
  452.                             }
  453.                         case 2:
  454.                             {
  455.                                 {
  456.                                     client.Entity.Teleport(1002, 429, 378);
  457.                                 }
  458.                                 break;
  459.                             }
  460.                         case 3:
  461.                             {
  462.                                 INpc npc = null;
  463.                                 if (client.Map.Npcs.TryGetValue(client.ActiveNpc, out npc))
  464.                                 {
  465.                                     Data data = new Data(true);
  466.                                     data.ID = Data.OpenWindow;
  467.                                     data.UID = client.Entity.UID;
  468.                                     data.TimeStamp = Time32.Now;
  469.                                     data.dwParam = 0x1FA;
  470.                                     data.wParam1 = npc.X;
  471.                                     data.wParam2 = npc.Y;
  472.                                     client.Send(data);
  473.                                 }
  474.                                 break;
  475.                             }
  476.                     }
  477.                     break;
  478.                 #endregion  
  479.                 #region MorningPK
  480.                 case 1234562:
  481.                     {
  482.                         switch (npcRequest.OptionID)
  483.                         {
  484.                             case 0:
  485.                                 {
  486.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join MorningPK?.");
  487.                                     dialog.Option("Yes Please", 1);
  488.                                     dialog.Option("Not now.", 255);
  489.                                     dialog.Send();
  490.                                     break;
  491.                                 }
  492.                             case 1:
  493.                                 {
  494.                                     if (DateTime.Now.Minute >= 34 && DateTime.Now.Minute <= 36)
  495.                                     {
  496.                                         client.Entity.Teleport(5453, 67, 34);
  497.                                     }
  498.                                     else
  499.                                     {
  500.                                         dialog.Text("[MorningPK] War is held during xx:34 To xx:36 in every Hour");
  501.                                         dialog.Option("I don't care.", 255);
  502.                                         dialog.Send();
  503.                                         break;
  504.                                     }
  505.                                     break;
  506.                                 }
  507.                         }
  508.                         break;
  509.                     }
  510.                 #endregion
  511.                 #region MorningPK Prize
  512.                 case 12345622:
  513.                     switch (npcRequest.OptionID)
  514.                     {
  515.                         case 0:
  516.                             {
  517.                                 dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  518.                                 dialog.Option("Yes Please", 1);
  519.                                 dialog.Option("I Need To Leave", 2);
  520.                                 dialog.Option("I don't care.", 0xff);
  521.                                 dialog.Send();
  522.                                 break;
  523.                             }
  524.  
  525.                         case 1:
  526.                             {
  527.                                 int alive = 0;
  528.                                 foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  529.                                     if (players.Entity.MapID == 5453 && (!players.Entity.Dead))
  530.                                         alive++;
  531.                                 if (DateTime.Now.Minute >= 36 && DateTime.Now.Minute <= 37)
  532.                                 {
  533.                                     if (alive == 1)
  534.                                     {
  535.                                         client.Entity.ConquerPoints += CPanel.LasTMan;
  536.                                         client.Entity.RemoveFlag(Update.Flags.Ride);
  537.                                         client.Entity.AddFlag3(HarryPotter.Network.GamePackets.Update.Flags3.ConuqerSuperYellow);
  538.                                         HarryPotter.Kernel.SendWorldMessage(new Message("Congratulations!  " + client.Entity.Name + "You Winner Quest MorningPK Prize 100000 CPs.", System.Drawing.Color.Black, Message.Center), Program.Values);
  539.                                         client.Entity.SendSpawn(client, true);
  540.                                         client.Entity.Teleport(1002, 428, 378);
  541.                                         EntityTable.SaveEntity(client);
  542.                                     }
  543.                                     else
  544.                                     {
  545.                                         dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!");
  546.                                         dialog.Option("okay", 0xff);
  547.                                         dialog.Send();
  548.                                     }
  549.                                 }
  550.                                 else
  551.                                 {
  552.                                     dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:36");
  553.                                     dialog.Option("okay", 0xff);
  554.                                     dialog.Send();
  555.                                 }
  556.                                 break;
  557.                             }
  558.                         case 2:
  559.                             {
  560.                                 {
  561.                                     client.Entity.Teleport(1002, 429, 378);
  562.                                 }
  563.                                 break;
  564.                             }
  565.                     }
  566.                     break;
  567.                 #endregion
  568.                 #region ClassicPK
  569.                 case 1234563:
  570.                     {
  571.                         switch (npcRequest.OptionID)
  572.                         {
  573.                             case 0:
  574.                                 {
  575.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join ClassicPK?.");
  576.                                     dialog.Option("Yes Please", 1);
  577.                                     dialog.Option("Not now.", 255);
  578.                                     dialog.Send();
  579.                                     break;
  580.                                 }
  581.                             case 1:
  582.                                 {
  583.                                     if (DateTime.Now.Minute >= 37 && DateTime.Now.Minute <= 39)
  584.                                     {
  585.                                         client.Entity.Teleport(5561, 67, 34);
  586.                                     }
  587.                                     else
  588.                                     {
  589.                                         dialog.Text("[ClassicPK] War is held during xx:39 To xx:39 in every Hour");
  590.                                         dialog.Option("I don't care.", 255);
  591.                                         dialog.Send();
  592.                                         break;
  593.                                     }
  594.                                     break;
  595.                                 }
  596.                         }
  597.                         break;
  598.                     }
  599.                 #endregion
  600.                 #region ClassicPK Prize
  601.                 case 12345633:
  602.                     switch (npcRequest.OptionID)
  603.                     {
  604.                         case 0:
  605.                             {
  606.                                 dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  607.                                 dialog.Option("Yes Please", 1);
  608.                                 dialog.Option("I Need To Leave", 2);
  609.                                 dialog.Option("I don't care.", 0xff);
  610.                                 dialog.Send();
  611.                                 break;
  612.                             }
  613.  
  614.                         case 1:
  615.                             {
  616.                                 int alive = 0;
  617.                                 foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  618.                                     if (players.Entity.MapID == 5561 && (!players.Entity.Dead))
  619.                                         alive++;
  620.                                 if (DateTime.Now.Minute >= 39 && DateTime.Now.Minute <= 40)
  621.                                 {
  622.                                     if (alive == 1)
  623.                                     {
  624.                                         client.Entity.ConquerPoints += CPanel.LasTMan;
  625.                                         client.Entity.RemoveFlag(Update.Flags.Ride);
  626.                                         client.Entity.AddFlag3(HarryPotter.Network.GamePackets.Update.Flags3.ConuqerSuperYellow);
  627.                                         HarryPotter.Kernel.SendWorldMessage(new Message("Congratulations!  " + client.Entity.Name + "You winner Quest ClassicPK Prize 100000 CPs.", System.Drawing.Color.Black, Message.Center), Program.Values);
  628.                                         client.Entity.SendSpawn(client, true);
  629.                                         client.Entity.Teleport(1002, 428, 378);
  630.                                         EntityTable.SaveEntity(client);
  631.                                     }
  632.                                     else
  633.                                     {
  634.                                         dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!");
  635.                                         dialog.Option("okay", 0xff);
  636.                                         dialog.Send();
  637.                                     }
  638.                                 }
  639.                                 else
  640.                                 {
  641.                                     dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:39");
  642.                                     dialog.Option("okay", 0xff);
  643.                                     dialog.Send();
  644.                                 }
  645.                                 break;
  646.                             }
  647.                         case 2:
  648.                             {
  649.                                 {
  650.                                     client.Entity.Teleport(1002, 429, 378);
  651.                                 }
  652.                                 break;
  653.                             }
  654.                     }
  655.                     break;
  656.                 #endregion
  657.                 #region OldPK
  658.                 case 1234565:
  659.                     {
  660.                         switch (npcRequest.OptionID)
  661.                         {
  662.                             case 0:
  663.                                 {
  664.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join OldPK?.");
  665.                                     dialog.Option("Yes Please", 1);
  666.                                     dialog.Option("Not now.", 255);
  667.                                     dialog.Send();
  668.                                     break;
  669.                                 }
  670.                             case 1:
  671.                                 {
  672.                                     if (DateTime.Now.Minute >= 43 && DateTime.Now.Minute <= 45)
  673.                                     {
  674.                                         client.Entity.Teleport(5451, 67, 34);
  675.                                     }
  676.                                     else
  677.                                     {
  678.                                         dialog.Text("[OldPK] War is held during xx:43 To xx:45 in every Hour");
  679.                                         dialog.Option("I don't care.", 255);
  680.                                         dialog.Send();
  681.                                         break;
  682.                                     }
  683.                                     break;
  684.                                 }
  685.                         }
  686.                         break;
  687.                     }
  688.                 #endregion
  689.                 #region OldPK Prize
  690.                 case 12345655:
  691.                     switch (npcRequest.OptionID)
  692.                     {
  693.                         case 0:
  694.                             {
  695.                                 dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  696.                                 dialog.Option("Yes Please", 1);
  697.                                 dialog.Option("I Need To Leave", 2);
  698.                                 dialog.Option("I don't care.", 0xff);
  699.                                 dialog.Send();
  700.                                 break;
  701.                             }
  702.  
  703.                         case 1:
  704.                             {
  705.                                 int alive = 0;
  706.                                 foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  707.                                     if (players.Entity.MapID == 5451 && (!players.Entity.Dead))
  708.                                         alive++;
  709.                                 if (DateTime.Now.Minute >= 45 && DateTime.Now.Minute <= 46)
  710.                                 {
  711.                                     if (alive == 1)
  712.                                     {
  713.                                         client.Entity.ConquerPoints += CPanel.LasTMan;
  714.                                         client.Entity.RemoveFlag(Update.Flags.Ride);
  715.                                         client.Entity.AddFlag3(HarryPotter.Network.GamePackets.Update.Flags3.ConuqerSuperBlue);
  716.                                         HarryPotter.Kernel.SendWorldMessage(new Message("Congratulations!  " + client.Entity.Name + "You Winner Quest OldPK Prize 100000 CPs.", System.Drawing.Color.Black, Message.Center), Program.Values);
  717.                                         client.Entity.SendSpawn(client, true);
  718.                                         client.Entity.Teleport(1002, 428, 378);
  719.                                         EntityTable.SaveEntity(client);
  720.                                     }
  721.                                     else
  722.                                     {
  723.                                         dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!");
  724.                                         dialog.Option("okay", 0xff);
  725.                                         dialog.Send();
  726.                                     }
  727.                                 }
  728.                                 else
  729.                                 {
  730.                                     dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:45");
  731.                                     dialog.Option("okay", 0xff);
  732.                                     dialog.Send();
  733.                                 }
  734.                                 break;
  735.                             }
  736.                         case 2:
  737.                             {
  738.                                 {
  739.                                     client.Entity.Teleport(1002, 429, 378);
  740.                                 }
  741.                                 break;
  742.                             }
  743.                     }
  744.                     break;
  745.                 #endregion
  746.                 #region LastMan
  747.                 case 54238:
  748.                     {
  749.                         switch (npcRequest.OptionID)
  750.                         {
  751.                             case 0:
  752.                                 {
  753.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join LastManStanding PKWar?.");
  754.                                     dialog.Option("Yes Please", 1);
  755.                                     dialog.Option("I don't care.", 255);
  756.                                     dialog.Send();
  757.                                     break;
  758.                                 }
  759.                             case 1:
  760.                                 {
  761.  
  762.                                     DateTime Now64 = DateTime.Now;
  763.                                     if (Now64.Minute >= 30 && Now64.Minute <= 33)
  764.                                     {
  765.                                         Random R = new Random();
  766.                                         int Nr = R.Next(1, 10);
  767.                                         if (Nr == 1) client.Entity.Teleport(3333, 51, 73);
  768.                                         if (Nr == 2) client.Entity.Teleport(3333, 33, 34);
  769.                                         if (Nr == 3) client.Entity.Teleport(3333, 67, 34);
  770.                                         if (Nr == 4) client.Entity.Teleport(3333, 51, 73);
  771.                                         if (Nr == 5) client.Entity.Teleport(3333, 33, 34);
  772.                                         if (Nr == 6) client.Entity.Teleport(3333, 67, 34);
  773.                                         if (Nr == 7) client.Entity.Teleport(3333, 51, 73);
  774.                                         if (Nr == 8) client.Entity.Teleport(3333, 33, 34);
  775.                                         if (Nr == 9) client.Entity.Teleport(3333, 67, 34);
  776.                                         if (Nr == 10) client.Entity.Teleport(3333, 68, 57);
  777.                                     }
  778.                                     else
  779.                                     {
  780.                                         dialog.Text("LastManStanding Pk War is held during xx:30 to xx:33 you have 3 min to signup ");
  781.                                         dialog.Option("I don't care.", 255);
  782.                                         dialog.Send();
  783.                                         break;
  784.                                     }
  785.                                     break;
  786.                                 }
  787.                         }
  788.                         break;
  789.                     }
  790.                 #endregion
  791.                 #region Winner of LastMan
  792.                 case 54235:
  793.                     {
  794.                         switch (npcRequest.OptionID)
  795.                         {
  796.                             case 0:
  797.                                 {
  798.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  799.                                     dialog.Option("Yes Please", 1);
  800.                                     dialog.Option("I don't care.", 255);
  801.                                     dialog.Send();
  802.                                     break;
  803.                                 }
  804.                             case 1:
  805.                                 {
  806.                                     Daily.CheackAlive2();
  807.                                     DateTime Now64 = DateTime.Now;
  808.                                     if (DateTime.Now.Minute >= 34 && DateTime.Now.Minute <= 35)
  809.                                     {
  810.                                         if (Daily.howmanyinmap2 == 1)
  811.                                         {
  812.                                             //#warning LAST MAN PRIZE
  813.                                             client.Entity.ConquerPoints += CPanel.LasTMan;
  814.                                             HarryPotter.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " claimed the prize 100,000 ConquerPoints for winning the LastManStanding for this Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
  815.                                             client.Entity.SendSpawn(client, true);
  816.                                             client.Entity.AddTopStatus(Network.GamePackets.Update.Flags2.Top8Trojan, DateTime.Now.AddHours(1));
  817.                                             client.Entity.Teleport(1002, 429, 378);
  818.                                         }
  819.                                         else
  820.                                         {
  821.                                             dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!");
  822.                                             dialog.Option("okay", 255);
  823.                                             dialog.Send();
  824.                                             break;
  825.                                         }
  826.                                     }
  827.                                     else
  828.                                     {
  829.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:34");
  830.                                         dialog.Option("okay", 255);
  831.                                         dialog.Send();
  832.                                         break;
  833.                                     }
  834.                                     break;
  835.                                 }
  836.                         }
  837.                         break;
  838.                     }
  839.                 #endregion
  840.                 #region DailyPkWar
  841.                 case 231400:
  842.                     {
  843.                         switch (npcRequest.OptionID)
  844.                         {
  845.                             case 0:
  846.                                 {
  847.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join the Daily PKWar?.");
  848.                                     dialog.Option("Yes Please", 1);
  849.                                     dialog.Option("I don't care.", 255);
  850.                                     dialog.Send();
  851.                                     break;
  852.                                 }
  853.                             case 1:
  854.                                 {
  855.                                     var Now64 = DateTime.Now;
  856.                                     if (Now64.Minute >= 39 && Now64.Minute <= 41)
  857.                                     {
  858.                                         client.Entity.Teleport(8877, 150, 162);
  859.                                     }
  860.                                     else
  861.                                     {
  862.                                         dialog.Text("Daily Pk War is held during xx:39 in every day");
  863.                                         dialog.Option("I don't care.", 255);
  864.                                         dialog.Send();
  865.                                         break;
  866.                                     }
  867.                                     break;
  868.                                 }
  869.                         }
  870.                         break;
  871.                     }
  872.                 #endregion
  873.                 #region Winner of DailyPk NPC 231500
  874.                 case 231500:
  875.                     {
  876.                         switch (npcRequest.OptionID)
  877.                         {
  878.                             case 0:
  879.                                 {
  880.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  881.                                     dialog.Option("Yes Please", 1);
  882.                                     dialog.Option("I don't care.", 255);
  883.                                     dialog.Send();
  884.                                     break;
  885.                                 }
  886.                             case 1:
  887.                                 {
  888.                                     Daily.CheackAlive();
  889.                                     var Now64 = DateTime.Now;
  890.                                     if (DateTime.Now.Minute >= 41 && DateTime.Now.Minute <= 43)
  891.                                     {
  892.                                         if (Daily.howmanyinmap == 1)
  893.                                         {
  894.                                             //#warning DAILY PK PRIZE
  895.                                             client.Entity.ConquerPoints += CPanel.DailyPk;
  896.                                             //client.Entity.Status3 = 1;
  897.                                             HarryPotter.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " claimed the prize 100,000 ConquerPoints for winning the DailyPk for this Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
  898.                                             client.Entity.AddTopStatus(Network.GamePackets.Update.Flags2.Top3Trojan, DateTime.Now.AddHours(1));
  899.                                             client.Entity.SendSpawn(client, true);
  900.                                             client.Entity.Teleport(1002, 429, 378);
  901.                                             //EntityTable.SaveEntity(client);
  902.                                         }
  903.                                         else
  904.                                         {
  905.                                             dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!");
  906.                                             dialog.Option("okay", 255);
  907.                                             dialog.Send();
  908.                                             break;
  909.                                         }
  910.                                     }
  911.                                     else
  912.                                     {
  913.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:41");
  914.                                         dialog.Option("okay", 255);
  915.                                         dialog.Send();
  916.                                         break;
  917.                                     }
  918.                                     break;
  919.                                 }
  920.                         }
  921.                         break;
  922.                     }
  923.                 #endregion
  924.                 #region top guild
  925.                 #region Sign up
  926.                 case 1478569:
  927.                     {//MeToOo
  928.                         switch (npcRequest.OptionID)
  929.                         {
  930.                             case 0:
  931.                                 {
  932.                                     dialog.Text("HI its the new war for guild Deputy will play with themself and leaders and members");
  933.                                     dialog.Option("i want to join it please", 1);
  934.                                     dialog.Send();
  935.                                     break;
  936.                                 }
  937.                             case 1:
  938.                                 {
  939.                                     if (DateTime.Now.Minute >= 40 && DateTime.Now.Minute <= 45)
  940.                                     {
  941.                                         if (client.Entity.GuildRank == (ushort)Game.Enums.GuildMemberRank.GuildLeader)
  942.                                         {//MeToOo
  943.                                             client.Entity.Teleport(1458, 96, 113);
  944.                                         }//MeToOo
  945.                                         else if (client.Entity.GuildRank == (ushort)Game.Enums.GuildMemberRank.DeputyLeader)
  946.                                         {
  947.                                             client.Entity.Teleport(1459, 96, 113);
  948.                                         }
  949.                                         else
  950.                                         {//MeToOo
  951.                                             client.Entity.Teleport(1460, 96, 113);
  952.                                         }//MeToOo
  953.                                     }
  954.                                     break;
  955.                                 }
  956.                         }
  957.                         break;
  958.                     }
  959.                 #endregion
  960.                 #region Winner for leader
  961.                 case 15165:
  962.                     {
  963.                         switch (npcRequest.OptionID)
  964.                         {//MeToOo
  965.                             case 0:
  966.                                 {
  967.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  968.                                     dialog.Option("Yes Please", 1);
  969.                                     dialog.Option("I don't care.", 255);
  970.                                     dialog.Send();
  971.                                     break;
  972.                                 }
  973.                             case 1://MeToOo
  974.                                 {
  975.                                     int alive = 0;
  976.                                     foreach (HarryPotter.Client.GameState players in Program.Values)
  977.                                         if (players.Entity.MapID == 1458 && (!players.Entity.Dead))
  978.                                             alive++;
  979.                                     client.Send(new Message("there are in map" + alive + "", System.Drawing.Color.Azure, Message.TopLeft));
  980.                                     if (DateTime.Now.Minute >= 46 && DateTime.Now.Minute <= 48)
  981.                                     {//MeToOo
  982.                                         if (alive == 1)
  983.                                         {
  984.  
  985.                                             client.Entity.ConquerPoints += rates.DragonBall;
  986.                                             Kernel.SendWorldMessage(new Message("Congratulations! GuildLeader  " + client.Entity.Name + " claimed the prize 215 ConquerPoints for winning the Top Guild Man for this Hour. ", System.Drawing.Color.Black, Message.Center), Program.Values);
  987.                                             client.Entity.Teleport(1002, 429, 378);
  988.                                             //MeToOo
  989.                                         }
  990.                                         else
  991.                                         {
  992.                                             dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
  993.                                             dialog.Option("okay", 255);
  994.                                             dialog.Send();
  995.                                             break;
  996.                                         }
  997.                                     }//MeToOo
  998.                                     else
  999.                                     {
  1000.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 46 To 48 ");
  1001.                                         dialog.Option("okay", 255);
  1002.                                         dialog.Send();
  1003.                                         break;
  1004.                                     }//MeToOo
  1005.                                     break;
  1006.                                 }
  1007.                         }
  1008.                         break;
  1009.                     }
  1010.                 #endregion
  1011.                 #region Winner for debuty
  1012.                 case 151652:
  1013.                     {
  1014.                         switch (npcRequest.OptionID)
  1015.                         {
  1016.                             case 0://MeToOo
  1017.                                 {
  1018.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  1019.                                     dialog.Option("Yes Please", 1);
  1020.                                     dialog.Option("I don't care.", 255);
  1021.                                     dialog.Send();
  1022.                                     break;
  1023.                                 }
  1024.                             case 1:
  1025.                                 {//for debuty
  1026.                                     int alive = 0;
  1027.                                     foreach (HarryPotter.Client.GameState players in Program.Values)
  1028.                                         if (players.Entity.MapID == 1459 && (!players.Entity.Dead))
  1029.                                             alive++;
  1030.                                     client.Send(new Message("there are in map" + alive + "", System.Drawing.Color.Azure, Message.TopLeft));
  1031.                                     if (DateTime.Now.Minute >= 46 && DateTime.Now.Minute <= 48)
  1032.                                     {
  1033.                                         if (alive == 1)
  1034.                                         {//MeToOo
  1035.  
  1036.                                             client.Entity.ConquerPoints += rates.DeathMatchs;
  1037.  
  1038.                                             Kernel.SendWorldMessage(new Message("Congratulations! DeputyLeader " + client.Entity.Name + " claimed the prize " + rates.DeathMatchs + " ConquerPoints for winning the Top Guild Man for this Hour. ", System.Drawing.Color.Black, Message.Center), Program.Values);
  1039.                                             client.Entity.Teleport(1002, 429, 378);
  1040.  
  1041.                                         }//MeToOo
  1042.                                         else
  1043.                                         {
  1044.                                             dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
  1045.                                             dialog.Option("okay", 255);
  1046.                                             dialog.Send();
  1047.                                             break;
  1048.                                         }
  1049.                                     }
  1050.                                     else
  1051.                                     {
  1052.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 46 To 48 ");
  1053.                                         dialog.Option("okay", 255);
  1054.                                         dialog.Send();
  1055.                                         break;
  1056.                                     }
  1057.                                     break;
  1058.                                 }
  1059.                         }
  1060.                         break;
  1061.                     }
  1062.                 #endregion
  1063.                 #region Winner for members
  1064.                 case 151653://MeToOo
  1065.                     {
  1066.                         switch (npcRequest.OptionID)
  1067.                         {
  1068.                             case 0:
  1069.                                 {//MeToOo
  1070.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  1071.                                     dialog.Option("Yes Please", 1);
  1072.                                     dialog.Option("I don't care.", 255);
  1073.                                     dialog.Send();
  1074.                                     break;
  1075.                                 }//MeToOo
  1076.                             case 1:
  1077.                                 {//for members
  1078.                                     int alive = 0;
  1079.                                     foreach (HarryPotter.Client.GameState players in Program.Values)
  1080.                                         if (players.Entity.MapID == 1460 && (!players.Entity.Dead))
  1081.                                             alive++;
  1082.                                     client.Send(new Message("there are in map" + alive + "", System.Drawing.Color.Azure, Message.TopLeft));
  1083.                                     if (DateTime.Now.Minute >= 46 && DateTime.Now.Minute <= 48)
  1084.                                     {
  1085.                                         if (alive == 1)
  1086.                                         {//MeToOo
  1087.  
  1088.                                             client.Entity.ConquerPoints += rates.Shit;
  1089.  
  1090.                                             Kernel.SendWorldMessage(new Message("Congratulations! Member " + client.Entity.Name + " claimed the prize 500k ConquerPoints for winning the Top Guild Man for this Hour. ", System.Drawing.Color.Black, Message.Center), Program.Values);
  1091.                                             client.Entity.Teleport(1002, 428, 380);
  1092.  
  1093.                                         }
  1094.                                         else//MeToOo
  1095.                                         {
  1096.                                             dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
  1097.                                             dialog.Option("okay", 255);
  1098.                                             dialog.Send();
  1099.                                             break;
  1100.                                         }//MeToOo
  1101.                                     }
  1102.                                     else
  1103.                                     {
  1104.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 46 To 48 ");
  1105.                                         dialog.Option("okay", 255);
  1106.                                         dialog.Send();
  1107.                                         break;
  1108.                                     }//MeToOo
  1109.                                     break;
  1110.                                 }
  1111.                         }
  1112.                         break;
  1113.                     }
  1114.                 #endregion
  1115.                 #endregion
  1116.                 #region LastTeam Fight
  1117.                 case 16416:
  1118.                     {
  1119.                         switch (npcRequest.OptionID)
  1120.                         {
  1121.                             case 0:
  1122.                                 {
  1123.                                     dialog.Text("Hello " + client.Entity.Name + " This Is LastTeam Standing join now And Get Honer For Ur Team");
  1124.                                     dialog.Option("let me join", 1);
  1125.  
  1126.                                     break;
  1127.                                 }
  1128.                             case 1:
  1129.                                 DateTime Now64 = DateTime.Now;
  1130.                                 if (Now64.Minute >= 10 && Now64.Minute <= 15)
  1131.                                 {
  1132.                                     if (client.Team != null)
  1133.                                     {
  1134.                                         if (client.Team.TeamLeader)
  1135.                                         {
  1136.                                             foreach (GameState clients in client.Team.Teammates)
  1137.                                             {
  1138.                                                 clients.Entity.Teleport(16414, 50, 50);
  1139.                                             }
  1140.                                         }
  1141.                                         else
  1142.                                             client.Entity.Teleport(16414, 50, 50);
  1143.  
  1144.                                         client.Entity.PKMode = Game.Enums.PKMode.Team;
  1145.                                         client.Send(new Network.GamePackets.Data(true) { UID = client.Entity.UID, ID = Network.GamePackets.Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
  1146.                                     }
  1147.                                     else
  1148.                                     {
  1149.                                         dialog.Text("You Are Not In Team");
  1150.                                         dialog.Option("okay", 255);
  1151.                                         dialog.Send();
  1152.                                     }
  1153.                                 }
  1154.                                 else
  1155.                                 {
  1156.  
  1157.                                     dialog.Text("This is not the right time Come Later at xx:10 in every hour");
  1158.                                     dialog.Option("okay", 255);
  1159.                                     dialog.Send();
  1160.                                 }
  1161.                                 break;
  1162.  
  1163.                         }
  1164.                         break;
  1165.                     }
  1166.                 #region LastTeam Fight Winer
  1167.                 case 16417:
  1168.                     {
  1169.                         switch (npcRequest.OptionID)
  1170.                         {
  1171.                             case 0:
  1172.                                 {
  1173.                                     foreach (GameState clients in Program.Values)
  1174.                                     {
  1175.                                         if (clients.Entity.MapID == 6414)
  1176.                                             clients.Entity.SendScoreLAstTeam(clients);
  1177.                                     }
  1178.                                     dialog.Text("Hello " + client.Entity.Name + " There Are : " + Entity.Leadrinmap + " Team Leader In Map  And  " + Entity.Memberrinmap + " Normal Player In Map");
  1179.                                     dialog.Option("Give ME My Prize", 1);
  1180.                                     dialog.Send();
  1181.                                     break;
  1182.                                 }
  1183.                             case 1:
  1184.                                 DateTime Now64 = DateTime.Now;
  1185.                                 if (Now64.Minute >= 17 && Now64.Minute <= 19)
  1186.                                 {
  1187.                                     client.Entity.SendScoreLAstTeam(client);
  1188.  
  1189.                                     Game.Attacking.Handle.cheakteam(client, dialog);
  1190.  
  1191.                                 }
  1192.                                 else
  1193.                                 {
  1194.  
  1195.                                     dialog.Text("Not Yet wait to ");
  1196.                                     dialog.Option("okay", 255);
  1197.                                     dialog.Send();
  1198.                                 }
  1199.                                 break;
  1200.  
  1201.                         }
  1202.                         break;
  1203.                     }
  1204.                 #endregion
  1205.  
  1206.  
  1207.                 #endregion
  1208.                 #region Altar Top
  1209.                 case 963262:
  1210.                     {
  1211.                         switch (npcRequest.OptionID)
  1212.                         {
  1213.                             case 0:
  1214.                                 {
  1215.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Altar Top.");
  1216.                                     dialog.Option("Yes Please", 1);
  1217.                                     dialog.Option("Not now.", 255);
  1218.                                     dialog.Send();
  1219.                                     break;
  1220.                                 }
  1221.                             case 1:
  1222.                                 {
  1223.                                     if (DateTime.Now.Minute >= 13 && DateTime.Now.Minute <= 15)
  1224.                                     {
  1225.                                         client.Entity.Teleport(3221, 50, 50);
  1226.                                     }
  1227.                                     else
  1228.                                     {
  1229.                                         dialog.Text("PAltar Top is Start on this time xx:13 To xx:15 in every Hour");
  1230.                                         dialog.Option("I don't care.", 255);
  1231.                                         dialog.Send();
  1232.                                         break;
  1233.                                     }
  1234.                                     break;
  1235.                                 }
  1236.                         }
  1237.                         break;
  1238.                     }
  1239.                 #endregion
  1240.                 #region Winner Altar Top
  1241.                 case 963263:
  1242.                     {
  1243.                         switch (npcRequest.OptionID)
  1244.                         {
  1245.                             case 0:
  1246.                                 {
  1247.                                     dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
  1248.                                     dialog.Option("Yes Please", 1);
  1249.                                     dialog.Option("I don't care.", 255);
  1250.                                     dialog.Send();
  1251.                                     break;
  1252.                                 }
  1253.                             case 1:
  1254.                                 {
  1255.                                     int alive = 0;
  1256.                                     foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  1257.                                         if (players.Entity.MapID == 3221 && (!players.Entity.Dead))
  1258.                                             alive++;
  1259.                                     Kernel.SendWorldMessage(new HarryPotter.Network.GamePackets.Message("Players Alive in Altar Top: " + alive + " ", System.Drawing.Color.Black, HarryPotter.Network.GamePackets.Message.FirstRightCorner), Program.Values);
  1260.                                     if (DateTime.Now.Minute >= 15 && DateTime.Now.Minute <= 16)
  1261.                                     {
  1262.                                         if (alive == 1)
  1263.                                         {
  1264.                                             client.Entity.Update(_String.Effect, "cortege", true);
  1265.                                             client.Entity.ConquerPoints += CPanel.HQuests;
  1266.                                             client.Entity.AddTopStatus2(Update.Flags2.Top8Fire, DateTime.Now.AddHours(1));
  1267.                                             Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has got " + CPanel.HQuests + " Cps For Winning Altar Top For This Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
  1268.                                             client.Entity.SendSpawn(client, true);
  1269.                                             client.Entity.Teleport(1002, 429, 378);
  1270.                                             EntityTable.SaveEntity(client);
  1271.                                         }
  1272.                                         else
  1273.                                         {
  1274.                                             dialog.Text("There are still " + alive + " players in the map kill him first to claim prize!");
  1275.                                             dialog.Option("okay", 255);
  1276.                                             dialog.Send();
  1277.                                             break;
  1278.                                         }
  1279.                                     }
  1280.                                     else
  1281.                                     {
  1282.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:15 To xx:16 ");
  1283.                                         dialog.Option("okay", 255);
  1284.                                         dialog.Send();
  1285.                                         break;
  1286.                                     }
  1287.                                     break;
  1288.                                 }
  1289.                         }
  1290.                         break;
  1291.                     }
  1292.                 #endregion
  1293.                 #region Speed Top
  1294.                 case 963260:
  1295.                     {
  1296.                         switch (npcRequest.OptionID)
  1297.                         {
  1298.                             case 0:
  1299.                                 {
  1300.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Speed Top.");
  1301.                                     dialog.Option("Yes Please", 1);
  1302.                                     dialog.Option("Not now.", 255);
  1303.                                     dialog.Send();
  1304.                                     break;
  1305.                                 }
  1306.                             case 1:
  1307.                                 {
  1308.                                     if (DateTime.Now.Minute >= 28 && DateTime.Now.Minute <= 30)
  1309.                                     {
  1310.                                         client.Entity.Teleport(3218, 50, 50);
  1311.                                     }
  1312.                                     else
  1313.                                     {
  1314.                                         dialog.Text("PSpeed Top is Start on this time xx:28 To xx:30 in every Hour");
  1315.                                         dialog.Option("I don't care.", 255);
  1316.                                         dialog.Send();
  1317.                                         break;
  1318.                                     }
  1319.                                     break;
  1320.                                 }
  1321.                         }
  1322.                         break;
  1323.                     }
  1324.                 #endregion
  1325.                 #region Winner Speed Top
  1326.                 case 963261:
  1327.                     {
  1328.                         switch (npcRequest.OptionID)
  1329.                         {
  1330.                             case 0:
  1331.                                 {
  1332.                                     dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
  1333.                                     dialog.Option("Yes Please", 1);
  1334.                                     dialog.Option("I don't care.", 255);
  1335.                                     dialog.Send();
  1336.                                     break;
  1337.                                 }
  1338.                             case 1:
  1339.                                 {
  1340.                                     int alive = 0;
  1341.                                     foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  1342.                                         if (players.Entity.MapID == 3218 && (!players.Entity.Dead))
  1343.                                             alive++;
  1344.                                     Kernel.SendWorldMessage(new HarryPotter.Network.GamePackets.Message("Players Alive in Speed Top: " + alive + " ", System.Drawing.Color.Black, HarryPotter.Network.GamePackets.Message.FirstRightCorner), Program.Values);
  1345.                                     if (DateTime.Now.Minute >= 30 && DateTime.Now.Minute <= 31)
  1346.                                     {
  1347.                                         if (alive == 1)
  1348.                                         {
  1349.                                             client.Entity.Update(_String.Effect, "cortege", true);
  1350.                                             client.Entity.ConquerPoints += CPanel.HQuests;
  1351.                                             client.Entity.AddTopStatus2(Network.GamePackets.Update.Flags2.Top8Ninja, DateTime.Now.AddHours(1));
  1352.                                             Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has got " + CPanel.HQuests + " Cps For Winning Speed Top For This Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
  1353.                                             client.Entity.SendSpawn(client, true);
  1354.                                             client.Entity.Teleport(1002, 429, 378);
  1355.                                             EntityTable.SaveEntity(client);
  1356.                                         }
  1357.                                         else
  1358.                                         {
  1359.                                             dialog.Text("There are still " + alive + " players in the map kill him first to claim prize!");
  1360.                                             dialog.Option("okay", 255);
  1361.                                             dialog.Send();
  1362.                                             break;
  1363.                                         }
  1364.                                     }
  1365.                                     else
  1366.                                     {
  1367.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:30 To xx31 ");
  1368.                                         dialog.Option("okay", 255);
  1369.                                         dialog.Send();
  1370.                                         break;
  1371.                                     }
  1372.                                     break;
  1373.                                 }
  1374.                         }
  1375.                         break;
  1376.                     }
  1377.                 #endregion
  1378.                 #region Assassin Top
  1379.                 case 963258:
  1380.                     {
  1381.                         switch (npcRequest.OptionID)
  1382.                         {
  1383.                             case 0:
  1384.                                 {
  1385.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Assassin Top.");
  1386.                                     dialog.Option("Yes Please", 1);
  1387.                                     dialog.Option("Not now.", 255);
  1388.                                     dialog.Send();
  1389.                                     break;
  1390.                                 }
  1391.                             case 1:
  1392.                                 {
  1393.                                     if (DateTime.Now.Minute >= 55 && DateTime.Now.Minute <= 56)
  1394.                                     {
  1395.                                         client.Entity.Teleport(3217, 50, 50);
  1396.                                     }
  1397.                                     else
  1398.                                     {
  1399.                                         dialog.Text("PAssassin Top is Start on this time xx:55 To xx:56 in every Hour");
  1400.                                         dialog.Option("I don't care.", 255);
  1401.                                         dialog.Send();
  1402.                                         break;
  1403.                                     }
  1404.                                     break;
  1405.                                 }
  1406.                         }
  1407.                         break;
  1408.                     }
  1409.                 #endregion
  1410.                 #region Winner Assassin Top
  1411.                 case 963259:
  1412.                     {
  1413.                         switch (npcRequest.OptionID)
  1414.                         {
  1415.                             case 0:
  1416.                                 {
  1417.                                     dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
  1418.                                     dialog.Option("Yes Please", 1);
  1419.                                     dialog.Option("I don't care.", 255);
  1420.                                     dialog.Send();
  1421.                                     break;
  1422.                                 }
  1423.                             case 1:
  1424.                                 {
  1425.                                     int alive = 0;
  1426.                                     foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  1427.                                         if (players.Entity.MapID == 3217 && (!players.Entity.Dead))
  1428.                                             alive++;
  1429.                                     Kernel.SendWorldMessage(new HarryPotter.Network.GamePackets.Message("Players Alive in Assassin Top: " + alive + " ", System.Drawing.Color.Black, HarryPotter.Network.GamePackets.Message.FirstRightCorner), Program.Values);
  1430.                                     if (DateTime.Now.Minute >= 56 && DateTime.Now.Minute <= 58)
  1431.                                     {
  1432.                                         if (alive == 1)
  1433.                                         {
  1434.                                             client.Entity.Update(_String.Effect, "cortege", true);
  1435.                                             client.Entity.ConquerPoints += CPanel.HQuests;
  1436.                                             client.Entity.AddTopStatus2(Network.GamePackets.Update.Flags2.Top3Fire, DateTime.Now.AddHours(1));
  1437.                                             Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has got " + CPanel.HQuests + " Cps For Winning Assassin Top For This Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
  1438.                                             client.Entity.SendSpawn(client, true);
  1439.                                             client.Entity.Teleport(1002, 429, 378);
  1440.                                             EntityTable.SaveEntity(client);
  1441.                                         }
  1442.                                         else
  1443.                                         {
  1444.                                             dialog.Text("There are still " + alive + " players in the map kill him first to claim prize!");
  1445.                                             dialog.Option("okay", 255);
  1446.                                             dialog.Send();
  1447.                                             break;
  1448.                                         }
  1449.                                     }
  1450.                                     else
  1451.                                     {
  1452.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:56 To xx:58 ");
  1453.                                         dialog.Option("okay", 255);
  1454.                                         dialog.Send();
  1455.                                         break;
  1456.                                     }
  1457.                                     break;
  1458.                                 }
  1459.                         }
  1460.                         break;
  1461.                     }
  1462.                 #endregion
  1463.                 #region Fastest Top
  1464.                 case 9632581:
  1465.                     {
  1466.                         switch (npcRequest.OptionID)
  1467.                         {
  1468.                             case 0:
  1469.                                 {
  1470.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Fastest Top.");
  1471.                                     dialog.Option("Yes Please", 1);
  1472.                                     dialog.Option("Not now.", 255);
  1473.                                     dialog.Send();
  1474.                                     break;
  1475.                                 }
  1476.                             case 1:
  1477.                                 {
  1478.                                     if (DateTime.Now.Minute >= 18 && DateTime.Now.Minute <= 19)
  1479.                                     {
  1480.                                         client.Entity.Teleport(3235, 50, 50);
  1481.                                     }
  1482.                                     else
  1483.                                     {
  1484.                                         dialog.Text("Fastet Top is Start on this time xx:18 to xx:19 in every Hour");
  1485.                                         dialog.Option("I don't care.", 255);
  1486.                                         dialog.Send();
  1487.                                         break;
  1488.                                     }
  1489.                                     break;
  1490.                                 }
  1491.                         }
  1492.                         break;
  1493.                     }
  1494.                 #endregion
  1495.                 #region Winner Fastet Top
  1496.                 case 9632591:
  1497.                     {
  1498.                         switch (npcRequest.OptionID)
  1499.                         {
  1500.                             case 0:
  1501.                                 {
  1502.                                     dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
  1503.                                     dialog.Option("Yes Please", 1);
  1504.                                     dialog.Option("I don't care.", 255);
  1505.                                     dialog.Send();
  1506.                                     break;
  1507.                                 }
  1508.                             case 1:
  1509.                                 {
  1510.                                     int alive = 0;
  1511.                                     foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  1512.                                         if (players.Entity.MapID == 3235 && (!players.Entity.Dead))
  1513.                                             alive++;
  1514.                                     Kernel.SendWorldMessage(new HarryPotter.Network.GamePackets.Message("Players Alive in Fastest Top: " + alive + " ", System.Drawing.Color.Black, HarryPotter.Network.GamePackets.Message.FirstRightCorner), Program.Values);
  1515.                                     if (DateTime.Now.Minute >= 19 && DateTime.Now.Minute <= 20)
  1516.                                     {
  1517.                                         if (alive == 1)
  1518.                                         {
  1519.                                             client.Entity.Update(_String.Effect, "cortege", true);
  1520.                                             client.Entity.ConquerPoints += CPanel.HQuests;
  1521.                                             client.Entity.AddTopStatus2(Network.GamePackets.Update.Flags2.Top8Trojan, DateTime.Now.AddHours(1));
  1522.                                             Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has got " + CPanel.HQuests + " Cps For Winning Fastest Top For This Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
  1523.                                             client.Entity.SendSpawn(client, true);
  1524.                                             client.Entity.Teleport(1002, 429, 378);
  1525.                                             EntityTable.SaveEntity(client);
  1526.                                         }
  1527.                                         else
  1528.                                         {
  1529.                                             dialog.Text("There are still " + alive + " players in the map kill him first to claim prize!");
  1530.                                             dialog.Option("okay", 255);
  1531.                                             dialog.Send();
  1532.                                             break;
  1533.                                         }
  1534.                                     }
  1535.                                     else
  1536.                                     {
  1537.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:19 To xx:20 ");
  1538.                                         dialog.Option("okay", 255);
  1539.                                         dialog.Send();
  1540.                                         break;
  1541.                                     }
  1542.                                     break;
  1543.                                 }
  1544.                         }
  1545.                         break;
  1546.                     }
  1547.                 #endregion
  1548.                 #region Dragon Top
  1549.                 case 9632582:
  1550.                     {
  1551.                         switch (npcRequest.OptionID)
  1552.                         {
  1553.                             case 0:
  1554.                                 {
  1555.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Dragon Top.");
  1556.                                     dialog.Option("Yes Please", 1);
  1557.                                     dialog.Option("Not now.", 255);
  1558.                                     dialog.Send();
  1559.                                     break;
  1560.                                 }
  1561.                             case 1:
  1562.                                 {
  1563.                                     if (DateTime.Now.Minute >= 56 && DateTime.Now.Minute <= 57)
  1564.                                     {
  1565.                                         client.Entity.Teleport(3219, 50, 50);
  1566.                                     }
  1567.                                     else
  1568.                                     {
  1569.                                         dialog.Text("Dragon Top is Start on this time xx:56 To xx:57 in every Hour");
  1570.                                         dialog.Option("I don't care.", 255);
  1571.                                         dialog.Send();
  1572.                                         break;
  1573.                                     }
  1574.                                     break;
  1575.                                 }
  1576.                         }
  1577.                         break;
  1578.                     }
  1579.                 #endregion
  1580.                 #region Winner Dragon Top
  1581.                 case 9632592:
  1582.                     {
  1583.                         switch (npcRequest.OptionID)
  1584.                         {
  1585.                             case 0:
  1586.                                 {
  1587.                                     dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
  1588.                                     dialog.Option("Yes Please", 1);
  1589.                                     dialog.Option("I don't care.", 255);
  1590.                                     dialog.Send();
  1591.                                     break;
  1592.                                 }
  1593.                             case 1:
  1594.                                 {
  1595.                                     int alive = 0;
  1596.                                     foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  1597.                                         if (players.Entity.MapID == 3219 && (!players.Entity.Dead))
  1598.                                             alive++;
  1599.                                     Kernel.SendWorldMessage(new HarryPotter.Network.GamePackets.Message("Players Alive in Dragon Top: " + alive + " ", System.Drawing.Color.Black, HarryPotter.Network.GamePackets.Message.FirstRightCorner), Program.Values);
  1600.                                     if (DateTime.Now.Minute >= 57 && DateTime.Now.Minute <= 58)
  1601.                                     {
  1602.                                         if (alive == 1)
  1603.                                         {
  1604.                                             client.Entity.Update(_String.Effect, "cortege", true);
  1605.                                             client.Entity.ConquerPoints += CPanel.HQuests;
  1606.                                             client.Entity.AddTopStatus2(Network.GamePackets.Update.Flags2.Top2Trojan, DateTime.Now.AddHours(1));
  1607.                                             Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has got " + CPanel.HQuests + " Cps For Winning Dragon Top For This Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
  1608.                                             client.Entity.SendSpawn(client, true);
  1609.                                             client.Entity.Teleport(1002, 429, 378);
  1610.                                             EntityTable.SaveEntity(client);
  1611.                                         }
  1612.                                         else
  1613.                                         {
  1614.                                             dialog.Text("There are still " + alive + " players in the map kill him first to claim prize!");
  1615.                                             dialog.Option("okay", 255);
  1616.                                             dialog.Send();
  1617.                                             break;
  1618.                                         }
  1619.                                     }
  1620.                                     else
  1621.                                     {
  1622.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:57 To xx:58 ");
  1623.                                         dialog.Option("okay", 255);
  1624.                                         dialog.Send();
  1625.                                         break;
  1626.                                     }
  1627.                                     break;
  1628.                                 }
  1629.                         }
  1630.                         break;
  1631.                     }
  1632.                 #endregion
  1633.                 #region Crazy Fighter Top
  1634.                 case 9632583:
  1635.                     {
  1636.                         switch (npcRequest.OptionID)
  1637.                         {
  1638.                             case 0:
  1639.                                 {
  1640.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Crazy Fighter War.");
  1641.                                     dialog.Option("Yes Please", 1);
  1642.                                     dialog.Option("Not now.", 255);
  1643.                                     dialog.Send();
  1644.                                     break;
  1645.                                 }
  1646.                             case 1:
  1647.                                 {
  1648.                                     if (DateTime.Now.Minute >= 57 && DateTime.Now.Minute <= 58)
  1649.                                     {
  1650.                                         client.Entity.Teleport(3229, 50, 50);
  1651.                                     }
  1652.                                     else
  1653.                                     {
  1654.                                         dialog.Text("Crazy Fighter War is Start on this time xx:57 To xx:58 in every Hour");
  1655.                                         dialog.Option("I don't care.", 255);
  1656.                                         dialog.Send();
  1657.                                         break;
  1658.                                     }
  1659.                                     break;
  1660.                                 }
  1661.                         }
  1662.                         break;
  1663.                     }
  1664.                 #endregion
  1665.                 #region Winner Crazy Fighter Top
  1666.                 case 9632593:
  1667.                     {
  1668.                         switch (npcRequest.OptionID)
  1669.                         {
  1670.                             case 0:
  1671.                                 {
  1672.                                     dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
  1673.                                     dialog.Option("Yes Please", 1);
  1674.                                     dialog.Option("I don't care.", 255);
  1675.                                     dialog.Send();
  1676.                                     break;
  1677.                                 }
  1678.                             case 1:
  1679.                                 {
  1680.                                     int alive = 0;
  1681.                                     foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  1682.                                         if (players.Entity.MapID == 3229 && (!players.Entity.Dead))
  1683.                                             alive++;
  1684.                                     Kernel.SendWorldMessage(new HarryPotter.Network.GamePackets.Message("Players Alive in Crazy Fighter War: " + alive + " ", System.Drawing.Color.Black, HarryPotter.Network.GamePackets.Message.FirstRightCorner), Program.Values);
  1685.                                     if (DateTime.Now.Minute >= 58 && DateTime.Now.Minute <= 59)
  1686.                                     {
  1687.                                         if (alive == 1)
  1688.                                         {
  1689.                                             client.Entity.Update(_String.Effect, "cortege", true);
  1690.                                             client.Entity.ConquerPoints += CPanel.CrazyFight;
  1691.                                             client.Entity.AddTopStatus2(Network.GamePackets.Update.Flags2.Top8Pirate, DateTime.Now.AddHours(1));
  1692.                                             Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has got " + CPanel.HQuests + " Cps For Winning Crazy Fighter War For This Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
  1693.                                             client.Entity.SendSpawn(client, true);
  1694.                                             client.Entity.Teleport(1002, 429, 378);
  1695.                                             EntityTable.SaveEntity(client);
  1696.                                         }
  1697.                                         else
  1698.                                         {
  1699.                                             dialog.Text("There are still " + alive + " players in the map kill him first to claim prize!");
  1700.                                             dialog.Option("okay", 255);
  1701.                                             dialog.Send();
  1702.                                             break;
  1703.                                         }
  1704.                                     }
  1705.                                     else
  1706.                                     {
  1707.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:58 To xx:59 ");
  1708.                                         dialog.Option("okay", 255);
  1709.                                         dialog.Send();
  1710.                                         break;
  1711.                                     }
  1712.                                     break;
  1713.                                 }
  1714.                         }
  1715.                         break;
  1716.                     }
  1717.                 #endregion
  1718.                 #region Forgtten World Top
  1719.                 case 9632585:
  1720.                     {
  1721.                         switch (npcRequest.OptionID)
  1722.                         {
  1723.                             case 0:
  1724.                                 {
  1725.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Forgtten World Top.");
  1726.                                     dialog.Option("Yes Please", 1);
  1727.                                     dialog.Option("Not now.", 255);
  1728.                                     dialog.Send();
  1729.                                     break;
  1730.                                 }
  1731.                             case 1:
  1732.                                 {
  1733.                                     if (DateTime.Now.Minute >= 58 && DateTime.Now.Minute <= 59)
  1734.                                     {
  1735.                                         client.Entity.Teleport(3231, 50, 50);
  1736.                                     }
  1737.                                     else
  1738.                                     {
  1739.                                         dialog.Text("Forgtten World Top is Start on this time xx:58 To xx:59 in every Hour");
  1740.                                         dialog.Option("I don't care.", 255);
  1741.                                         dialog.Send();
  1742.                                         break;
  1743.                                     }
  1744.                                     break;
  1745.                                 }
  1746.                         }
  1747.                         break;
  1748.                     }
  1749.                 #endregion
  1750.                 #region Winner Forgtten World  Top
  1751.                 case 9632595:
  1752.                     {
  1753.                         switch (npcRequest.OptionID)
  1754.                         {
  1755.                             case 0:
  1756.                                 {
  1757.                                     dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
  1758.                                     dialog.Option("Yes Please", 1);
  1759.                                     dialog.Option("I don't care.", 255);
  1760.                                     dialog.Send();
  1761.                                     break;
  1762.                                 }
  1763.                             case 1:
  1764.                                 {
  1765.                                     int alive = 0;
  1766.                                     foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  1767.                                         if (players.Entity.MapID == 3231 && (!players.Entity.Dead))
  1768.                                             alive++;
  1769.                                     Kernel.SendWorldMessage(new HarryPotter.Network.GamePackets.Message("Players Alive in Forgtten World Top: " + alive + " ", System.Drawing.Color.Black, HarryPotter.Network.GamePackets.Message.FirstRightCorner), Program.Values);
  1770.                                     if (DateTime.Now.Minute >= 00 && DateTime.Now.Minute <= 01)
  1771.                                     {
  1772.                                         if (alive == 1)
  1773.                                         {
  1774.                                             client.Entity.Update(_String.Effect, "cortege", true);
  1775.                                             client.Entity.ConquerPoints += CPanel.HQuests;
  1776.                                             client.Entity.AddTopStatus2(Network.GamePackets.Update.Flags2.Top3Ninja, DateTime.Now.AddHours(1));
  1777.                                             Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has got " + CPanel.HQuests + " Cps For Winning Forgtten World Top For This Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
  1778.                                             client.Entity.SendSpawn(client, true);
  1779.                                             client.Entity.Teleport(1002, 429, 378);
  1780.                                             EntityTable.SaveEntity(client);
  1781.                                         }
  1782.                                         else
  1783.                                         {
  1784.                                             dialog.Text("There are still " + alive + " players in the map kill him first to claim prize!");
  1785.                                             dialog.Option("okay", 255);
  1786.                                             dialog.Send();
  1787.                                             break;
  1788.                                         }
  1789.                                     }
  1790.                                     else
  1791.                                     {
  1792.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:00 To xx:01 ");
  1793.                                         dialog.Option("okay", 255);
  1794.                                         dialog.Send();
  1795.                                         break;
  1796.                                     }
  1797.                                     break;
  1798.                                 }
  1799.                         }
  1800.                         break;
  1801.                     }
  1802.                 #endregion
  1803.                 #region Snow White Top
  1804.                 case 9632586:
  1805.                     {
  1806.                         switch (npcRequest.OptionID)
  1807.                         {
  1808.                             case 0:
  1809.                                 {
  1810.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Snow White Top.");
  1811.                                     dialog.Option("Yes Please", 1);
  1812.                                     dialog.Option("Not now.", 255);
  1813.                                     dialog.Send();
  1814.                                     break;
  1815.                                 }
  1816.                             case 1:
  1817.                                 {
  1818.                                     if (DateTime.Now.Minute >= 00 && DateTime.Now.Minute <= 01)
  1819.                                     {
  1820.                                         client.Entity.Teleport(3222, 50, 50);
  1821.                                     }
  1822.                                     else
  1823.                                     {
  1824.                                         dialog.Text("Snow White Top is Start on this time xx:00 To xx:01 in every Hour");
  1825.                                         dialog.Option("I don't care.", 255);
  1826.                                         dialog.Send();
  1827.                                         break;
  1828.                                     }
  1829.                                     break;
  1830.                                 }
  1831.                         }
  1832.                         break;
  1833.                     }
  1834.                 #endregion
  1835.                 #region Winner Snow White Top
  1836.                 case 9632596:
  1837.                     {
  1838.                         switch (npcRequest.OptionID)
  1839.                         {
  1840.                             case 0:
  1841.                                 {
  1842.                                     dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
  1843.                                     dialog.Option("Yes Please", 1);
  1844.                                     dialog.Option("I don't care.", 255);
  1845.                                     dialog.Send();
  1846.                                     break;
  1847.                                 }
  1848.                             case 1:
  1849.                                 {
  1850.                                     int alive = 0;
  1851.                                     foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  1852.                                         if (players.Entity.MapID == 3222 && (!players.Entity.Dead))
  1853.                                             alive++;
  1854.                                     Kernel.SendWorldMessage(new HarryPotter.Network.GamePackets.Message("Players Alive in Snow White Top: " + alive + " ", System.Drawing.Color.Black, HarryPotter.Network.GamePackets.Message.FirstRightCorner), Program.Values);
  1855.                                     if (DateTime.Now.Minute >= 01 && DateTime.Now.Minute <= 02)
  1856.                                     {
  1857.                                         if (alive == 1)
  1858.                                         {
  1859.                                             client.Entity.Update(_String.Effect, "cortege", true);
  1860.                                             client.Entity.ConquerPoints += CPanel.HQuests;
  1861.                                             client.Entity.AddTopStatus2(Network.GamePackets.Update.Flags2.Top2Pirate, DateTime.Now.AddHours(1));
  1862.                                             Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has got " + CPanel.HQuests + " Cps For Winning Snow White Top For This Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
  1863.                                             client.Entity.SendSpawn(client, true);
  1864.                                             client.Entity.Teleport(1002, 429, 378);
  1865.                                             EntityTable.SaveEntity(client);
  1866.                                         }
  1867.                                         else
  1868.                                         {
  1869.                                             dialog.Text("There are still " + alive + " players in the map kill him first to claim prize!");
  1870.                                             dialog.Option("okay", 255);
  1871.                                             dialog.Send();
  1872.                                             break;
  1873.                                         }
  1874.                                     }
  1875.                                     else
  1876.                                     {
  1877.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:01 To xx:02 ");
  1878.                                         dialog.Option("okay", 255);
  1879.                                         dialog.Send();
  1880.                                         break;
  1881.                                     }
  1882.                                     break;
  1883.                                 }
  1884.                         }
  1885.                         break;
  1886.                     }
  1887.                 #endregion
  1888.                 #region Cps War Top
  1889.                 case 9632587:
  1890.                     {
  1891.                         switch (npcRequest.OptionID)
  1892.                         {
  1893.                             case 0:
  1894.                                 {
  1895.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Cps War.");
  1896.                                     dialog.Option("Yes Please", 1);
  1897.                                     dialog.Option("Not now.", 255);
  1898.                                     dialog.Send();
  1899.                                     break;
  1900.                                 }
  1901.                             case 1:
  1902.                                 {
  1903.                                     if (DateTime.Now.Minute >= 02 && DateTime.Now.Minute <= 03)
  1904.                                     {
  1905.                                         client.Entity.Teleport(3223, 50, 50);
  1906.                                     }
  1907.                                     else
  1908.                                     {
  1909.                                         dialog.Text("Cps War Top is Start on this time xx:02 To xx:03 in every Hour");
  1910.                                         dialog.Option("I don't care.", 255);
  1911.                                         dialog.Send();
  1912.                                         break;
  1913.                                     }
  1914.                                     break;
  1915.                                 }
  1916.                         }
  1917.                         break;
  1918.                     }
  1919.                 #endregion
  1920.                 #region Winner Cps War Top
  1921.                 case 9632597:
  1922.                     {
  1923.                         switch (npcRequest.OptionID)
  1924.                         {
  1925.                             case 0:
  1926.                                 {
  1927.                                     dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
  1928.                                     dialog.Option("Yes Please", 1);
  1929.                                     dialog.Option("I don't care.", 255);
  1930.                                     dialog.Send();
  1931.                                     break;
  1932.                                 }
  1933.                             case 1:
  1934.                                 {
  1935.                                     int alive = 0;
  1936.                                     foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  1937.                                         if (players.Entity.MapID == 3223 && (!players.Entity.Dead))
  1938.                                             alive++;
  1939.                                     Kernel.SendWorldMessage(new HarryPotter.Network.GamePackets.Message("Players Alive in Cps War: " + alive + " ", System.Drawing.Color.Black, HarryPotter.Network.GamePackets.Message.FirstRightCorner), Program.Values);
  1940.                                     if (DateTime.Now.Minute >= 03 && DateTime.Now.Minute <= 04)
  1941.                                     {
  1942.                                         if (alive == 1)
  1943.                                         {
  1944.                                             client.Entity.Update(_String.Effect, "cortege", true);
  1945.                                             client.Entity.ConquerPoints += 300000;
  1946.                                             client.Entity.AddTopStatus2(Network.GamePackets.Update.Flags2.Top3Fire, DateTime.Now.AddHours(1));
  1947.                                             Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has got " + CPanel.HQuests + " Cps For Winning Cps War Top For This Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
  1948.                                             client.Entity.SendSpawn(client, true);
  1949.                                             client.Entity.Teleport(1002, 429, 378);
  1950.                                             EntityTable.SaveEntity(client);
  1951.                                         }
  1952.                                         else
  1953.                                         {
  1954.                                             dialog.Text("There are still " + alive + " players in the map kill him first to claim prize!");
  1955.                                             dialog.Option("okay", 255);
  1956.                                             dialog.Send();
  1957.                                             break;
  1958.                                         }
  1959.                                     }
  1960.                                     else
  1961.                                     {
  1962.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:03 To xx:04 ");
  1963.                                         dialog.Option("okay", 255);
  1964.                                         dialog.Send();
  1965.                                         break;
  1966.                                     }
  1967.                                     break;
  1968.                                 }
  1969.                         }
  1970.                         break;
  1971.                     }
  1972.                 #endregion
  1973.                 #region MemperPK Top
  1974.                 case 9632588:
  1975.                     {
  1976.                         switch (npcRequest.OptionID)
  1977.                         {
  1978.                             case 0:
  1979.                                 {
  1980.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join MemperPK Top.");
  1981.                                     dialog.Option("Yes Please", 1);
  1982.                                     dialog.Option("Not now.", 255);
  1983.                                     dialog.Send();
  1984.                                     break;
  1985.                                 }
  1986.                             case 1:
  1987.                                 {
  1988.                                     if (DateTime.Now.Minute >= 04 && DateTime.Now.Minute <= 05)
  1989.                                     {
  1990.                                         client.Entity.Teleport(3224, 50, 50);
  1991.                                     }
  1992.                                     else
  1993.                                     {
  1994.                                         dialog.Text("MemperPK Top is Start on this time xx:04 To xx:05 in every Hour");
  1995.                                         dialog.Option("I don't care.", 255);
  1996.                                         dialog.Send();
  1997.                                         break;
  1998.                                     }
  1999.                                     break;
  2000.                                 }
  2001.                         }
  2002.                         break;
  2003.                     }
  2004.                 #endregion
  2005.                 #region Winner MemperPK Top
  2006.                 case 9632598:
  2007.                     {
  2008.                         switch (npcRequest.OptionID)
  2009.                         {
  2010.                             case 0:
  2011.                                 {
  2012.                                     dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
  2013.                                     dialog.Option("Yes Please", 1);
  2014.                                     dialog.Option("I don't care.", 255);
  2015.                                     dialog.Send();
  2016.                                     break;
  2017.                                 }
  2018.                             case 1:
  2019.                                 {
  2020.                                     int alive = 0;
  2021.                                     foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  2022.                                         if (players.Entity.MapID == 3224 && (!players.Entity.Dead))
  2023.                                             alive++;
  2024.                                     Kernel.SendWorldMessage(new HarryPotter.Network.GamePackets.Message("Players Alive in MemperPK Top: " + alive + " ", System.Drawing.Color.Black, HarryPotter.Network.GamePackets.Message.FirstRightCorner), Program.Values);
  2025.                                     if (DateTime.Now.Minute >= 05 && DateTime.Now.Minute <= 06)
  2026.                                     {
  2027.                                         if (alive == 1)
  2028.                                         {
  2029.                                             client.Entity.Update(_String.Effect, "cortege", true);
  2030.                                             client.Entity.ConquerPoints += CPanel.TopMember;
  2031.                                             client.Entity.AddTopStatus2(Network.GamePackets.Update.Flags2.Top2Monk, DateTime.Now.AddHours(1));
  2032.                                             Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has got " + CPanel.HQuests + " Cps For Winning MemperPK Top For This Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
  2033.                                             client.Entity.SendSpawn(client, true);
  2034.                                             client.Entity.Teleport(1002, 429, 378);
  2035.                                             EntityTable.SaveEntity(client);
  2036.                                         }
  2037.                                         else
  2038.                                         {
  2039.                                             dialog.Text("There are still " + alive + " players in the map kill him first to claim prize!");
  2040.                                             dialog.Option("okay", 255);
  2041.                                             dialog.Send();
  2042.                                             break;
  2043.                                         }
  2044.                                     }
  2045.                                     else
  2046.                                     {
  2047.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:05 To xx:06 ");
  2048.                                         dialog.Option("okay", 255);
  2049.                                         dialog.Send();
  2050.                                         break;
  2051.                                     }
  2052.                                     break;
  2053.                                 }
  2054.                         }
  2055.                         break;
  2056.                     }
  2057.                 #endregion
  2058.                 #region Money Top
  2059.                 case 9632589:
  2060.                     {
  2061.                         switch (npcRequest.OptionID)
  2062.                         {
  2063.                             case 0:
  2064.                                 {
  2065.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Money Top.");
  2066.                                     dialog.Option("Yes Please", 1);
  2067.                                     dialog.Option("Not now.", 255);
  2068.                                     dialog.Send();
  2069.                                     break;
  2070.                                 }
  2071.                             case 1:
  2072.                                 {
  2073.                                     if (DateTime.Now.Minute >= 06 && DateTime.Now.Minute <= 07)
  2074.                                     {
  2075.                                         client.Entity.Teleport(3225, 50, 50);
  2076.                                     }
  2077.                                     else
  2078.                                     {
  2079.                                         dialog.Text("Money Top is Start on this time xx:06 To xx:07 in every Hour");
  2080.                                         dialog.Option("I don't care.", 255);
  2081.                                         dialog.Send();
  2082.                                         break;
  2083.                                     }
  2084.                                     break;
  2085.                                 }
  2086.                         }
  2087.                         break;
  2088.                     }
  2089.                 #endregion
  2090.                 #region Winner Money Top
  2091.                 case 9632599:
  2092.                     {
  2093.                         switch (npcRequest.OptionID)
  2094.                         {
  2095.                             case 0:
  2096.                                 {
  2097.                                     dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
  2098.                                     dialog.Option("Yes Please", 1);
  2099.                                     dialog.Option("I don't care.", 255);
  2100.                                     dialog.Send();
  2101.                                     break;
  2102.                                 }
  2103.                             case 1:
  2104.                                 {
  2105.                                     int alive = 0;
  2106.                                     foreach (HarryPotter.Client.GameState players in HarryPotter.Kernel.GamePool.Values)
  2107.                                         if (players.Entity.MapID == 3225 && (!players.Entity.Dead))
  2108.                                             alive++;
  2109.                                     Kernel.SendWorldMessage(new HarryPotter.Network.GamePackets.Message("Players Alive in Money Top: " + alive + " ", System.Drawing.Color.Black, HarryPotter.Network.GamePackets.Message.FirstRightCorner), Program.Values);
  2110.                                     if (DateTime.Now.Minute >= 07 && DateTime.Now.Minute <= 08)
  2111.                                     {
  2112.                                         if (alive == 1)
  2113.                                         {
  2114.                                             client.Entity.Update(_String.Effect, "cortege", true);
  2115.                                             client.Entity.ConquerPoints += 100000;
  2116.                                             client.Entity.AddTopStatus2(Network.GamePackets.Update.Flags2.Top3Monk, DateTime.Now.AddHours(1));
  2117.                                             Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has got " + CPanel.HQuests + " Cps For Winning Money Top For This Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
  2118.                                             client.Entity.SendSpawn(client, true);
  2119.                                             client.Entity.Teleport(1002, 429, 378);
  2120.                                             EntityTable.SaveEntity(client);
  2121.                                         }
  2122.                                         else
  2123.                                         {
  2124.                                             dialog.Text("There are still " + alive + " players in the map kill him first to claim prize!");
  2125.                                             dialog.Option("okay", 255);
  2126.                                             dialog.Send();
  2127.                                             break;
  2128.                                         }
  2129.                                     }
  2130.                                     else
  2131.                                     {
  2132.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:07 To xx:08 ");
  2133.                                         dialog.Option("okay", 255);
  2134.                                         dialog.Send();
  2135.                                         break;
  2136.                                     }
  2137.                                     break;
  2138.                                 }
  2139.                         }
  2140.                         break;
  2141.                     }
  2142.                 #endregion
  2143.                 #region Winner Top MRConquerHost
  2144.                 case 301052:
  2145.                     {
  2146.                         switch (npcRequest.OptionID)
  2147.                         {
  2148.                             case 0:
  2149.                                 {
  2150.                                     dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
  2151.                                     dialog.Option("Yes Please", 1);
  2152.                                     dialog.Option("I don't care.", 255);
  2153.                                     dialog.Send();
  2154.                                     break;
  2155.                                 }
  2156.                             case 1:
  2157.                                 {
  2158.                                     int alive = 0;
  2159.                                     foreach (HarryPotter.Client.GameState players in Program.Values)
  2160.                                         if (players.Entity.MapID == 1598 && (!players.Entity.Dead))
  2161.                                             alive++;
  2162.                                     Kernel.SendWorldMessage(new HarryPotter.Network.GamePackets.Message("Players Alive in Top Top MRConquerHost: " + alive + " ", System.Drawing.Color.Black, HarryPotter.Network.GamePackets.Message.FirstRightCorner), Program.Values);
  2163.                                     if (DateTime.Now.Minute == 26 && DateTime.Now.Minute <= 28)
  2164.                                     {
  2165.                                         if (alive == 1)
  2166.                                         {
  2167.                                             // client.Entity.Update(_String.Effect, "cortege", true);
  2168.                                             client.Entity.ConquerPoints += CPanel.MrConquer;
  2169.                                             client.Entity.AddTopStatus2(Network.GamePackets.Update.Flags3.MrConquer, DateTime.Now.AddHours(1));
  2170.                                             Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has got " + CPanel.MrConquer + " Cps For Winning Top MRConquerHost For This Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
  2171.                                             client.Entity.SendSpawn(client, true);
  2172.                                             client.Entity.Teleport(1002, 429, 378);
  2173.                                             EntityTable.SaveEntity(client);
  2174.                                         }
  2175.                                         else
  2176.                                         {
  2177.                                             dialog.Text("There are still " + alive + " players in the map kill him first to claim prize!");
  2178.                                             dialog.Option("okay", 255);
  2179.                                             dialog.Send();
  2180.                                             break;
  2181.                                         }
  2182.                                     }
  2183.                                     else
  2184.                                     {
  2185.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:26 To xx:28 ");
  2186.                                         dialog.Option("okay", 255);
  2187.                                         dialog.Send();
  2188.                                         break;
  2189.                                     }
  2190.                                     break;
  2191.                                 }
  2192.                         }
  2193.                         break;
  2194.                     }
  2195.                 case 301053:
  2196.                     {
  2197.                         switch (npcRequest.OptionID)
  2198.                         {
  2199.                             case 0:
  2200.                                 {
  2201.                                     dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
  2202.                                     dialog.Option("Yes Please", 1);
  2203.                                     dialog.Option("I don't care.", 255);
  2204.                                     dialog.Send();
  2205.                                     break;
  2206.                                 }
  2207.                             case 1:
  2208.                                 {
  2209.                                     int alive = 0;
  2210.                                     foreach (HarryPotter.Client.GameState players in Program.Values)
  2211.                                         if (players.Entity.MapID == 1599 && (!players.Entity.Dead))
  2212.                                             alive++;
  2213.                                     Kernel.SendWorldMessage(new HarryPotter.Network.GamePackets.Message("Players Alive in Top Top MSConquerHost: " + alive + " ", System.Drawing.Color.Black, HarryPotter.Network.GamePackets.Message.FirstRightCorner), Program.Values);
  2214.                                     if (DateTime.Now.Minute == 26 && DateTime.Now.Minute <= 28)
  2215.                                     {
  2216.                                         if (alive == 1)
  2217.                                         {
  2218.                                             //  client.Entity.Update(_String.Effect, "cortege", true);
  2219.                                             client.Entity.ConquerPoints += CPanel.MsConquer;
  2220.                                             client.Entity.AddTopStatus2(Network.GamePackets.Update.Flags3.MsConquerHostess, DateTime.Now.AddHours(1));
  2221.                                             Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has got " + CPanel.MsConquer + " Cps For Winning Top MsConquerHost For This Hour.", System.Drawing.Color.Black, Message.Center), Program.Values);
  2222.                                             client.Entity.SendSpawn(client, true);
  2223.                                             client.Entity.Teleport(1002, 429, 378);
  2224.                                             EntityTable.SaveEntity(client);
  2225.                                         }
  2226.                                         else
  2227.                                         {
  2228.                                             dialog.Text("There are still " + alive + " players in the map kill him first to claim prize!");
  2229.                                             dialog.Option("okay", 255);
  2230.                                             dialog.Send();
  2231.                                             break;
  2232.                                         }
  2233.                                     }
  2234.                                     else
  2235.                                     {
  2236.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:26 To xx:28 ");
  2237.                                         dialog.Option("okay", 255);
  2238.                                         dialog.Send();
  2239.                                         break;
  2240.                                     }
  2241.                                     break;
  2242.                                 }
  2243.                         }
  2244.                         break;
  2245.                     }
  2246.                 #endregion
  2247.                 #region MSConquer And MRConquer
  2248.                 case 21: // MS
  2249.                     {
  2250.                         switch (npcRequest.OptionID)
  2251.                         {
  2252.                             case 0:
  2253.                                 {
  2254.                                     if (client.Entity.Body == 2001 || client.Entity.Body == 2002)
  2255.                                     {
  2256.                                         dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Ms Conquer Quest ?.");
  2257.                                         dialog.Option("Yes Please", 1);
  2258.                                         dialog.Option("No ThanQ ", 255);
  2259.                                         dialog.Avatar(120);
  2260.                                         dialog.Send();
  2261.                                     }
  2262.                                     else
  2263.                                     {
  2264.                                         {
  2265.                                             dialog.Text("Sorry you can Join Quest this only For Girl !.");
  2266.                                             dialog.Option("I see.", 255);
  2267.                                             dialog.Avatar(120);
  2268.                                             dialog.Send();
  2269.                                         }
  2270.                                     }
  2271.                                     break;
  2272.                                 }
  2273.                             case 1:
  2274.                                 {
  2275.                                     DateTime Now64 = DateTime.Now;
  2276.                                     if (Now64.Minute >= 23 && Now64.Minute <= 25)
  2277.                                     {
  2278.                                         Random R = new Random();
  2279.                                         int Nr = R.Next(1, 10);
  2280.                                         if (Nr == 1) client.Entity.Teleport(1599, 51, 73);
  2281.                                         if (Nr == 2) client.Entity.Teleport(1599, 33, 34);
  2282.                                         if (Nr == 3) client.Entity.Teleport(1599, 67, 34);
  2283.                                         if (Nr == 4) client.Entity.Teleport(1599, 51, 73);
  2284.                                         if (Nr == 5) client.Entity.Teleport(1599, 33, 34);
  2285.                                         if (Nr == 6) client.Entity.Teleport(1599, 67, 34);
  2286.                                         if (Nr == 7) client.Entity.Teleport(1599, 51, 73);
  2287.                                         if (Nr == 8) client.Entity.Teleport(1599, 33, 34);
  2288.                                         if (Nr == 9) client.Entity.Teleport(1599, 67, 34);
  2289.                                         if (Nr == 10) client.Entity.Teleport(1599, 68, 57);
  2290.                                         client.Entity.Update(_String.Effect, "zf2-e360", true);
  2291.                                     }
  2292.                                     else
  2293.                                     {
  2294.                                         dialog.Text("MsConquer Pk War is held during xx:23 to xx:25 you have 2 min to signup ");
  2295.                                         dialog.Option("I don't care.", 255);
  2296.                                         dialog.Send();
  2297.                                     }
  2298.                                     break;
  2299.                                 }
  2300.                         }
  2301.                         break;
  2302.                     }
  2303.                 case 22: // MR
  2304.                     {
  2305.                         switch (npcRequest.OptionID)
  2306.                         {
  2307.                             case 0:
  2308.                                 {
  2309.                                     if (client.Entity.Body == 1003 || client.Entity.Body == 1004)
  2310.                                     {
  2311.                                         dialog.Text("Hey there " + client.Entity.Name + " Would you like to join MR Conquer Quest ?.");
  2312.                                         dialog.Option("Yes Please", 1);
  2313.                                         dialog.Option("No ThanQ ", 255);
  2314.                                         dialog.Avatar(120);
  2315.                                         dialog.Send();
  2316.                                     }
  2317.                                     else
  2318.                                     {
  2319.                                         {
  2320.                                             dialog.Text("Sorry you can Join Quest this only For Boy !.");
  2321.                                             dialog.Option("I see.", 255);
  2322.                                             dialog.Avatar(120);
  2323.                                             dialog.Send();
  2324.                                         }
  2325.                                     }
  2326.                                     break;
  2327.                                 }
  2328.                             case 1:
  2329.                                 {
  2330.                                     DateTime Now64 = DateTime.Now;
  2331.                                     if (Now64.Minute >= 23 && Now64.Minute <= 25)
  2332.                                     {
  2333.                                         Random R = new Random();
  2334.                                         int Nr = R.Next(1, 10);
  2335.                                         if (Nr == 1) client.Entity.Teleport(1598, 51, 73);
  2336.                                         if (Nr == 2) client.Entity.Teleport(1598, 33, 34);
  2337.                                         if (Nr == 3) client.Entity.Teleport(1598, 67, 34);
  2338.                                         if (Nr == 4) client.Entity.Teleport(1598, 51, 73);
  2339.                                         if (Nr == 5) client.Entity.Teleport(1598, 33, 34);
  2340.                                         if (Nr == 6) client.Entity.Teleport(1598, 67, 34);
  2341.                                         if (Nr == 7) client.Entity.Teleport(1598, 51, 73);
  2342.                                         if (Nr == 8) client.Entity.Teleport(1598, 33, 34);
  2343.                                         if (Nr == 9) client.Entity.Teleport(1598, 67, 34);
  2344.                                         if (Nr == 10) client.Entity.Teleport(1598, 68, 57);
  2345.                                         client.Entity.Update(_String.Effect, "zf2-e360", true);
  2346.                                     }
  2347.                                     else
  2348.                                     {
  2349.                                         dialog.Text("MRConquer Pk War is held during xx:23 to xx:25 you have 2 min to signup ");
  2350.                                         dialog.Option("I don't care.", 255);
  2351.                                         dialog.Send();
  2352.                                     }
  2353.                                     break;
  2354.                                 }
  2355.                         }
  2356.                         break;
  2357.                     }
  2358.                  #endregion
  2359.                 #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement