Advertisement
Guest User

AbdalhSamy_ASD_Quests

a guest
Nov 22nd, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 110.69 KB | None | 0 0
  1. #region OneHit
  2.                 case 18415260:
  3.                     {
  4.                         switch (npcRequest.OptionID)
  5.                         {
  6.                             case 0:
  7.                                 {
  8.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join OneHit.");
  9.                                     dialog.Option("Yes Please", 1);
  10.                                     dialog.Option("Not now.", 255);
  11.                                     dialog.Send();
  12.                                     break;
  13.                                 }
  14.                             case 1:
  15.                                 {
  16.                                     if (DateTime.Now.Minute >= 40 && DateTime.Now.Minute <= 42)
  17.                                     {
  18.                                         if (client.Entity.ContainsFlag(Update.Flags.Ride))
  19.                                         {
  20.                                             client.Entity.RemoveFlag(Update.Flags.Ride);
  21.                                         }
  22.                                         Random R = new Random();
  23.                                         int Nr = R.Next(1, 10);
  24.                                         if (Nr == 1) client.Entity.Teleport(1811, 90, 160);
  25.                                         if (Nr == 2) client.Entity.Teleport(1811, 125, 168);
  26.                                         if (Nr == 3) client.Entity.Teleport(1811, 141, 167);
  27.                                         if (Nr == 4) client.Entity.Teleport(1811, 151, 142);
  28.                                         if (Nr == 5) client.Entity.Teleport(1811, 138, 114);
  29.                                         if (Nr == 6) client.Entity.Teleport(1811, 116, 121);
  30.                                         if (Nr == 7) client.Entity.Teleport(1811, 89, 89);
  31.                                         if (Nr == 8) client.Entity.Teleport(1811, 100, 74);
  32.                                         if (Nr == 9) client.Entity.Teleport(1811, 124, 74);
  33.                                         if (Nr == 10) client.Entity.Teleport(1811, 152, 88);
  34.                                     }
  35.                                     else
  36.                                     {
  37.                                         dialog.Text("OneHit is held during xx:40 To xx:42 in every Hour");
  38.                                         dialog.Option("I don't care.", 255);
  39.                                         dialog.Send();
  40.                                         break;
  41.                                     }
  42.                                     break;
  43.                                 }
  44.                         }
  45.                         break;
  46.                     }
  47.                 #endregion
  48.                 #region Winner OneHit
  49.                 case 18415250:
  50.                     {
  51.                         switch (npcRequest.OptionID)
  52.                         {
  53.                             case 0:
  54.                                 {
  55.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  56.                                     dialog.Option("Yes Please", 1);
  57.                                     dialog.Option("I don't care.", 255);
  58.                                     dialog.Send();
  59.                                     break;
  60.                                 }
  61.                             case 1:
  62.                                 {
  63.                                     int alive = 0;
  64.                                     foreach (Manboy00_ASD.Client.GameClient players in Program.GamePool)
  65.                                         if (players.Entity.MapID == 1811 && (!players.Entity.Dead))
  66.                                             alive++;
  67.                                     Kernel.SendWorldMessage(new Manboy00_ASD.Network.GamePackets.Message("Players Alive in OneHit: " + alive + " ", System.Drawing.Color.Black, Manboy00_ASD.Network.GamePackets.Message.FirstRightCorner), Program.GamePool);
  68.                                     if (DateTime.Now.Minute >= 44 && DateTime.Now.Minute <= 50)
  69.                                     {
  70.                                         if (alive == 1)
  71.                                         {
  72.                                             client.Entity.Update(_String.Effect, "break_start", true);
  73.                                             client.Entity.ConquerPoints += rates.LastMan;
  74.                                             //Game.Flags.AddTopConquer(client);
  75.                                             //client.Entity.AddFlag2(Manboy00_ASD.Network.GamePackets.Update.Flags2.WeeklyTop8Pk);
  76.                                             Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " Has Won  " + rates.LastMan + " Cps For Winning OneHit For This Hour.", System.Drawing.Color.Black, Message.Center), Program.GamePool);
  77.                                             client.Entity.SendSpawn(client, true);
  78.                                             client.Entity.Teleport(1002, 300, 280);
  79.                                             EntityTable.SaveEntity(client);
  80.                                         }
  81.                                         else
  82.                                         {
  83.                                             dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
  84.                                             dialog.Option("okay", 255);
  85.                                             dialog.Send();
  86.                                             break;
  87.                                         }
  88.                                     }
  89.                                     else
  90.                                     {
  91.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:44 To xx:50 ");
  92.                                         dialog.Option("okay", 255);
  93.                                         dialog.Send();
  94.                                         break;
  95.                                     }
  96.                                     break;
  97.                                 }
  98.                         }
  99.                         break;
  100.                     }
  101.                 #endregion
  102. //------------------------------------------//
  103. #region LordsWar
  104.                 case 45720:
  105.                     {
  106.  
  107.                         switch (npcRequest.OptionID)
  108.                         {
  109.                             case 0:
  110.                                 {
  111.                                     dialog.Text("Hello " + client.Entity.Name + " I'm The WarLord I Can let you Join the LordsWar Event 1 time .");
  112.                                     dialog.Text("Everyday u can signup and enjoy the event for 30 Minutes at this time [<20.30> FoR <21.00>].");
  113.                                     dialog.Text("you need to have Join 1kk cps in your inventory if you killed any player u will drop 1kk from him also if u died u will lose 1Kk cps [Warning ThiS QuesT JusT FoR Men]");
  114.                                     dialog.Option("Leme Join.", 1);
  115.                                     dialog.Option("Just Passing By!.", 255);
  116.                                     dialog.Avatar(116);
  117.                                     dialog.Send();
  118.                                     break;
  119.                                 }
  120.                             case 1:
  121.                                 {
  122.                                     if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 30 && DateTime.Now.Minute < 59)
  123.                                     {
  124.                                         if (client.Entity.ConquerPoints >= 1000000)
  125.                                         {
  126.                                             if (client.Entity.ContainsFlag(Update.Flags.Ride))
  127.                                             {
  128.                                                 client.Entity.RemoveFlag(Update.Flags.Ride);
  129.                                             }
  130.                                             client.Entity.Teleport(5555, 39, 35);
  131.                                             dialog.Text("Defeat other players to gain cps and be carefull if u died u will lose 1Kk cps GoodLuck!.");
  132.                                             dialog.Option("Thanks.", 255);
  133.                                             dialog.Avatar(116);
  134.                                             dialog.Send();
  135.                                         }
  136.                                         else
  137.                                         {
  138.                                             dialog.Text("Sorry you dont have 1Kk Cps i Cant let u Join LordsWar Tourment");
  139.                                             dialog.Option("Okay sorry.", 255);
  140.                                             dialog.Avatar(116);
  141.                                             dialog.Send();
  142.                                         }
  143.                                         break;
  144.                                     }
  145.                                     else
  146.                                     {
  147.                                         dialog.Text("Sorry i cant let you join the event now come again later at the event times.");
  148.                                         dialog.Option("Okay sorry.", 255);
  149.                                         dialog.Avatar(116);
  150.                                         dialog.Send();
  151.                                     }
  152.                                     break;
  153.                                 }
  154.                         }
  155.                         break;
  156.                     }
  157.                 #endregion
  158.                 #region Winner LordsWar
  159.                 case 741301:
  160.                     {
  161.                         switch (npcRequest.OptionID)
  162.                         {
  163.                             case 0:
  164.                                 {
  165.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  166.                                     dialog.Option("Yes Please", 1);
  167.                                     dialog.Option("I don't care.", 255);
  168.                                     dialog.Send();
  169.                                     break;
  170.                                 }
  171.                             case 1:
  172.                                 {
  173.                                     int alive = 0;
  174.                                     foreach (Manboy00_ASD.Client.GameClient players in Program.GamePool)
  175.                                         if (players.Entity.MapID == 3214 && (!players.Entity.Dead))
  176.                                             alive++;
  177.                                     Kernel.SendWorldMessage(new Manboy00_ASD.Network.GamePackets.Message("Players Alive in Life~Pk: " + alive + " ", System.Drawing.Color.Black, Manboy00_ASD.Network.GamePackets.Message.FirstRightCorner), Program.GamePool);
  178.                                     if (DateTime.Now.Minute >= 00 && DateTime.Now.Minute <= 59)
  179.                                     {
  180.                                         if (alive == 100)
  181.                                         {
  182.                                             client.Entity.Update(_String.Effect, "break_start", true);
  183.                                             client.Entity.ConquerPoints += rates.LastMan;
  184.                                             //Game.Flags.AddTopConquer(client);
  185.                                             //client.Entity.AddFlag2(Manboy00_ASD.Network.GamePackets.Update.Flags2.WeeklyTop8Pk);
  186.                                             // Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " Has Won  " + rates.LastMan + " Cps For Winning Life~PK For This Hour.", System.Drawing.Color.Black, Message.Center), Program.GamePool);
  187.                                             client.Entity.SendSpawn(client, true);
  188.                                             client.Entity.Teleport(1002, 300, 280);
  189.                                             EntityTable.SaveEntity(client);
  190.                                         }
  191.                                         else
  192.                                         {
  193.                                             dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
  194.                                             dialog.Option("okay", 255);
  195.                                             dialog.Send();
  196.                                             break;
  197.                                         }
  198.                                     }
  199.                                     else
  200.                                     {
  201.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:00 To xx:59 ");
  202.                                         dialog.Option("okay", 255);
  203.                                         dialog.Send();
  204.                                         break;
  205.                                     }
  206.                                     break;
  207.                                 }
  208.                         }
  209.                         break;
  210.                     }
  211.                 #endregion
  212. //----------------------//
  213.  #region PeoplesChampion War
  214.                 case 333329:
  215.                     {
  216.                         switch (npcRequest.OptionID)
  217.                         {
  218.                             case 0:
  219.                                 {
  220.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join the PeoplesChampion War  ?.");
  221.                                     dialog.Option("Yes Please", 1);
  222.                                     dialog.Option("Not now.", 255);
  223.                                     dialog.Send();
  224.                                     break;
  225.                                 }
  226.                             case 1:
  227.                                 {
  228.                                     if (DateTime.Now.Minute >= 18 && DateTime.Now.Minute <= 20)
  229.                                     {
  230.                                         client.Entity.Teleport(9391, 50, 50);
  231.                                     }
  232.                                     else
  233.                                     {
  234.                                         dialog.Text("PeoplesChampion War is held during xx:18 To xx:20 in every Hour");
  235.                                         dialog.Option("I don't care.", 255);
  236.                                         dialog.Send();
  237.                                         break;
  238.                                     }
  239.                                     break;
  240.                                 }
  241.                         }
  242.                         break;
  243.                     }
  244.                 #endregion
  245.                 #region Winner PeoplesChampion War
  246.                 case 333328:
  247.                     {
  248.                         switch (npcRequest.OptionID)
  249.                         {
  250.                             case 0:
  251.                                 {
  252.                                     dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
  253.                                     dialog.Option("Yes Please", 1);
  254.                                     dialog.Option("I don't care.", 255);
  255.                                     dialog.Send();
  256.                                     break;
  257.                                 }
  258.                             case 1:
  259.                                 {
  260.                                     int alive = 0;
  261.                                     foreach (Manboy00_ASD.Client.GameClient players in Program.GamePool)
  262.                                         if (players.Entity.MapID == 9391 && (!players.Entity.Dead))
  263.                                             alive++;
  264.                                     Kernel.SendWorldMessage(new Manboy00_ASD.Network.GamePackets.Message("Players Alive in PeoplesChampion War: " + alive + " ", System.Drawing.Color.Black, Manboy00_ASD.Network.GamePackets.Message.FirstRightCorner), Program.GamePool);
  265.                                     if (DateTime.Now.Minute >= 21 && DateTime.Now.Minute <= 25)
  266.                                     {
  267.                                         if (alive == 1)
  268.                                         {
  269.                                             client.Entity.Update(_String.Effect, ("break_start"), true);
  270.                                             client.Entity.ConquerPoints += rates.LastMan;
  271.                                             Game.Flags.AddTopGentle(client);
  272.                                             client.Entity.AddFlag2(Manboy00_ASD.Network.GamePackets.Update.Flags2.Top3Water);
  273.                                             Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " Has Won " + rates.LastMan + " Cps For Winning PeoplesChampion War For This Hour And Halo.", System.Drawing.Color.Black, Message.Center), Program.GamePool);
  274.                                             client.Entity.SendSpawn(client, true);
  275.                                             client.Entity.Teleport(1002, 300, 280);
  276.                                             EntityTable.SaveEntity(client);
  277.                                         }
  278.                                         else
  279.                                         {
  280.                                             dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
  281.                                             dialog.Option("okay", 255);
  282.                                             dialog.Send();
  283.                                             break;
  284.                                         }
  285.                                     }
  286.                                     else
  287.                                     {
  288.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:21 To xx:23 ");
  289.                                         dialog.Option("okay", 255);
  290.                                         dialog.Send();
  291.                                         break;
  292.                                     }
  293.                                     break;
  294.                                 }
  295.                         }
  296.                         break;
  297.                     }
  298.                 #endregion
  299.                 #region The Eral War
  300.                 case 333377:
  301.                     {
  302.                         switch (npcRequest.OptionID)
  303.                         {
  304.                             case 0:
  305.                                 {
  306.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join the The Eral War  ?.");
  307.                                     dialog.Option("Yes Please", 1);
  308.                                     dialog.Option("Not now.", 255);
  309.                                     dialog.Send();
  310.                                     break;
  311.                                 }
  312.                             case 1:
  313.                                 {
  314.                                     if (DateTime.Now.Minute >= 35 && DateTime.Now.Minute <= 37)
  315.                                     {
  316.                                         if (client.Entity.ContainsFlag(Update.Flags.Ride))
  317.                                         {
  318.                                             client.Entity.RemoveFlag(Update.Flags.Ride);
  319.                                         }
  320.                                         client.Entity.Teleport(9392, 50, 50);
  321.                                     }
  322.                                     else
  323.                                     {
  324.                                         dialog.Text("The Eral War is held during xx:35 To xx:37 in every Hour");
  325.                                         dialog.Option("I don't care.", 255);
  326.                                         dialog.Send();
  327.                                         break;
  328.                                     }
  329.                                     break;
  330.                                 }
  331.                         }
  332.                         break;
  333.                     }
  334.                 #endregion
  335.                 #region Winner The Eral War
  336.                 case 333378:
  337.                     {
  338.                         switch (npcRequest.OptionID)
  339.                         {
  340.                             case 0:
  341.                                 {
  342.                                     dialog.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize?.");
  343.                                     dialog.Option("Yes Please", 1);
  344.                                     dialog.Option("I don't care.", 255);
  345.                                     dialog.Send();
  346.                                     break;
  347.                                 }
  348.                             case 1:
  349.                                 {
  350.                                     int alive = 0;
  351.                                     foreach (Manboy00_ASD.Client.GameClient players in Program.GamePool)
  352.                                         if (players.Entity.MapID == 9392 && (!players.Entity.Dead))
  353.                                             alive++;
  354.                                     Kernel.SendWorldMessage(new Manboy00_ASD.Network.GamePackets.Message("Players Alive in The Eral War: " + alive + " ", System.Drawing.Color.Black, Manboy00_ASD.Network.GamePackets.Message.FirstRightCorner), Program.GamePool);
  355.                                     if (DateTime.Now.Minute >= 38 && DateTime.Now.Minute <= 42)
  356.                                     {
  357.                                         if (alive == 1)
  358.                                         {
  359.                                             client.Entity.Update(_String.Effect, ("break_start"), true);
  360.                                             client.Entity.ConquerPoints += rates.LastMan;
  361.                                             Game.Flags.AddTopCrazy(client);
  362.                                             client.Entity.AddFlag2(Manboy00_ASD.Network.GamePackets.Update.Flags2.Top3Warrior);
  363.                                             Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " Has Won " + rates.LastMan + " Cps For Winning The Eral War For This Hour And Halo.", System.Drawing.Color.Black, Message.Center), Program.GamePool);
  364.                                             client.Entity.SendSpawn(client, true);
  365.                                             client.Entity.Teleport(1002, 300, 280);
  366.                                             EntityTable.SaveEntity(client);
  367.                                         }
  368.                                         else
  369.                                         {
  370.                                             dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
  371.                                             dialog.Option("okay", 255);
  372.                                             dialog.Send();
  373.                                             break;
  374.                                         }
  375.                                     }
  376.                                     else
  377.                                     {
  378.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:38 To xx:40 ");
  379.                                         dialog.Option("okay", 255);
  380.                                         dialog.Send();
  381.                                         break;
  382.                                     }
  383.                                     break;
  384.                                 }
  385.                         }
  386.                         break;
  387.                     }
  388.                 #endregion
  389. //-----------------------------//
  390.  #region First Events
  391.                 #region TopDonation Event Daily  ID =95550
  392.  
  393.                 case 95550:
  394.                     {
  395.                         switch (npcRequest.OptionID)
  396.                         {
  397.                             case 0:
  398.                                 {
  399.                                     dialog.Text("Hello hero [" + client.Entity.Name + "] There is new Event it Called  TopDonation like its war betten nobiles ranks every Kings there is map for Them and Princes have another map");
  400.                                     dialog.Text("..etc as ranks This. Tournoment Starts every Day at 6:00PM and Finish at 6:10PM You Will Get Auto Invite and Can Die and Revive and Join etc untill it finished GOOOOOOOOOD Luck :)");
  401.                                     dialog.Text("Note: Kings Prizes is [100000 Cps] ,Princes Prizes [50000 Cps] ,Ducke Prizes [20000 Cps] , Earls,Barno and kinghts Prizes [10000 Cps]");
  402.                                     dialog.Option("Join The Tournoment ", 1);
  403.                                     dialog.Option("Blah, boring.", 255);
  404.                                     dialog.Send();
  405.                                     break;
  406.                                 }
  407.                             case 1:
  408.                                 {
  409.                                     if (DateTime.Now.Hour == 18 && DateTime.Now.Minute >= 00 && DateTime.Now.Minute <= 10)
  410.                                     {
  411.                                         if (client.Entity.ContainsFlag(Update.Flags.Ride))
  412.                                         {
  413.                                             client.Entity.RemoveFlag(Update.Flags.Ride);
  414.                                         }
  415.                                         if (client.Entity.NobilityRank == Game.ConquerStructures.NobilityRank.King)//TopKings
  416.                                         {
  417.                                             _String str = new _String(true);
  418.                                             str.UID = client.Entity.UID;
  419.                                             str.TextsCount = 1;
  420.                                             str.Type = _String.Effect;
  421.                                             str.Texts.Add("good");
  422.                                             Manboy00Effects.good(client);
  423.                                             client.Entity.Owner.SendScreen(str, true);
  424.                                             client.Entity.Teleport(9992, 50, 50);
  425.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have joined TopKings Map Just Wait Untile it Start ."));
  426.                                         }
  427.                                         else if (client.Entity.NobilityRank == Game.ConquerStructures.NobilityRank.Prince)//TopPrince
  428.                                         {
  429.                                             _String str = new _String(true);
  430.                                             str.UID = client.Entity.UID;
  431.                                             str.TextsCount = 1;
  432.                                             str.Type = _String.Effect;
  433.                                             str.Texts.Add("good");
  434.                                             Manboy00Effects.good(client);
  435.                                             client.Entity.Owner.SendScreen(str, true);
  436.                                             client.Entity.Teleport(9993, 50, 50);
  437.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have joined TopPrince Map Just Wait Untile it Start ."));
  438.                                         }
  439.                                         else if (client.Entity.NobilityRank == Game.ConquerStructures.NobilityRank.Duke)//TopDucke
  440.                                         {
  441.                                             _String str = new _String(true);
  442.                                             str.UID = client.Entity.UID;
  443.                                             str.TextsCount = 1;
  444.                                             str.Type = _String.Effect;
  445.                                             str.Texts.Add("good");
  446.                                             Manboy00Effects.good(client);
  447.                                             client.Entity.Owner.SendScreen(str, true);
  448.                                             client.Entity.Teleport(9994, 50, 50);
  449.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have joined TopDucke Map Just Wait Untile it Start ."));
  450.                                         }
  451.                                         else if (client.Entity.NobilityRank == Game.ConquerStructures.NobilityRank.Knight)//TopKinght
  452.                                         {
  453.                                             _String str = new _String(true);
  454.                                             str.UID = client.Entity.UID;
  455.                                             str.TextsCount = 1;
  456.                                             str.Type = _String.Effect;
  457.                                             str.Texts.Add("good");
  458.                                             Manboy00Effects.good(client);
  459.                                             client.Entity.Owner.SendScreen(str, true);
  460.                                             client.Entity.Teleport(9995, 50, 50);
  461.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have joined TopKinght Map Just Wait Untile it Start ."));
  462.                                         }
  463.                                         else if (client.Entity.NobilityRank == Game.ConquerStructures.NobilityRank.Earl)//TopEarl
  464.                                         {
  465.                                             _String str = new _String(true);
  466.                                             str.UID = client.Entity.UID;
  467.                                             str.TextsCount = 1;
  468.                                             str.Type = _String.Effect;
  469.                                             str.Texts.Add("good");
  470.                                             Manboy00Effects.good(client);
  471.                                             client.Entity.Owner.SendScreen(str, true);
  472.                                             client.Entity.Teleport(9996, 50, 50);
  473.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have joined TopEarl Map Just Wait Untile it Start ."));
  474.                                         }
  475.                                         else if (client.Entity.NobilityRank == Game.ConquerStructures.NobilityRank.Baron)//TopBaron
  476.                                         {
  477.                                             _String str = new _String(true);
  478.                                             str.UID = client.Entity.UID;
  479.                                             str.TextsCount = 1;
  480.                                             str.Type = _String.Effect;
  481.                                             str.Texts.Add("good");
  482.                                             Manboy00Effects.good(client);
  483.                                             client.Entity.Owner.SendScreen(str, true);
  484.                                             client.Entity.Teleport(9997, 50, 50);
  485.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have joined TopBaron Map Just Wait Untile it Start ."));
  486.                                         }
  487.                                         else
  488.                                         {
  489.                                             client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro You Are not In Nobiles Rank only can Join (Kings,Princes,Duke,Earl,Baron,Kinght)"));
  490.                                         }
  491.                                     }
  492.                                     else
  493.                                     {
  494.                                         client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro There is No Tournpment Now Come On 6:00PM."));
  495.                                     }
  496.  
  497.                                     break;
  498.                                 }
  499.                         }
  500.                         break;
  501.                     }
  502.  
  503.                 #endregion TopDonation Event Daily  ID =95550
  504.                 #region TopDonation Prize ID =95551  KINgs
  505.  
  506.                 case 95551:
  507.                     {
  508.                         switch (npcRequest.OptionID)
  509.                         {
  510.                             case 0:
  511.                                 {
  512.                                     dialog.Text("Hello hero [" + client.Entity.Name + "] Are you Still Alive you need your prize ?????????? yah you can take it after event finish");
  513.                                     dialog.Text("Note: Kings Prizes is [100000 Cps] ,Princes Prizes [50000 Cps] ,Ducke Prizes [20000 Cps] , Earls,Barno and kinghts Prizes [10000 Cps]");
  514.                                     dialog.Option("Claim Prize ", 1);
  515.                                     dialog.Option("Blah, boring.", 255);
  516.                                     dialog.Send();
  517.                                     break;
  518.                                 }
  519.                             case 1:
  520.                                 {
  521.                                     int alive = 0;
  522.                                     foreach (Manboy00_ASD.Client.GameClient players in Kernel.GamePool.Values)
  523.                                         if (players.Entity.MapID == 9992 && (!players.Entity.Dead))
  524.                                             alive++;
  525.  
  526.                                     if (DateTime.Now.Hour == 18 && DateTime.Now.Minute >= 11 && DateTime.Now.Minute <= 15)
  527.                                     {
  528.                                         if (alive == 1)
  529.                                         {
  530.                                             _String str = new _String(true);
  531.                                             str.UID = client.Entity.UID;
  532.                                             str.TextsCount = 1;
  533.                                             str.Type = _String.Effect;
  534.                                             str.Texts.Add("break_start");
  535.                                             Manboy00Effects.break_start(client);
  536.                                             client.Entity.Owner.SendScreen(str, true);
  537.                                             client.Entity.Teleport(1002, 427, 387);
  538.                                             client.Entity.ConquerPoints += 100000;
  539.                                             client.Entity.TopKing = 1;
  540.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have got 100000 CPs and TopKing halo gooood Luck  ."));
  541.                                         }
  542.                                         else
  543.                                         {
  544.                                             client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro You Are not alone there is  " + alive.ToString() + " Players Alive"));
  545.                                         }
  546.                                     }
  547.                                     else
  548.                                     {
  549.                                         client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro The Torunoment Not FInished Yet Come After It Finished (6:11 PM) ."));
  550.                                     }
  551.  
  552.                                     break;
  553.                                 }
  554.                         }
  555.                         break;
  556.                     }
  557.  
  558.                 #endregion TopDonation Prize ID =95551  KINgs
  559.                 #region TopDonation Prize ID =95551 Princes
  560.  
  561.                 case 95552:
  562.                     {
  563.                         switch (npcRequest.OptionID)
  564.                         {
  565.                             case 0:
  566.                                 {
  567.                                     dialog.Text("Hello hero [" + client.Entity.Name + "] Are you Still Alive you need your prize ?????????? yah you can take it after event finish");
  568.                                     dialog.Text("Note: Kings Prizes is [100000 Cps] ,Princes Prizes [50000 Cps] ,Ducke Prizes [20000 Cps] , Earls,Barno and kinghts Prizes [10000 Cps]");
  569.                                     dialog.Option("Claim Prize ", 1);
  570.                                     dialog.Option("Blah, boring.", 255);
  571.                                     dialog.Send();
  572.                                     break;
  573.                                 }
  574.                             case 1:
  575.                                 {
  576.                                     int alive = 0;
  577.                                     foreach (Manboy00_ASD.Client.GameClient players in Kernel.GamePool.Values)
  578.                                         if (players.Entity.MapID == 9993 && (!players.Entity.Dead))
  579.                                             alive++;
  580.  
  581.                                     if (DateTime.Now.Hour == 18 && DateTime.Now.Minute >= 11 && DateTime.Now.Minute <= 15)
  582.                                     {
  583.                                         if (alive == 1)
  584.                                         {
  585.                                             _String str = new _String(true);
  586.                                             str.UID = client.Entity.UID;
  587.                                             str.TextsCount = 1;
  588.                                             str.Type = _String.Effect;
  589.                                             str.Texts.Add("break_start");
  590.                                             Manboy00Effects.break_start(client);
  591.                                             client.Entity.Owner.SendScreen(str, true);
  592.                                             client.Entity.Teleport(1002, 427, 387);
  593.                                             client.Entity.TopPrince = 1;
  594.                                             client.Entity.ConquerPoints += 50000;
  595.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have got 50000 CPs and TopPrince halo gooood Luck  ."));
  596.                                         }
  597.                                         else
  598.                                         {
  599.                                             client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro You Are not alone there is  " + alive.ToString() + " Players Alive"));
  600.                                             break;
  601.                                         }
  602.                                     }
  603.                                     else
  604.                                     {
  605.                                         client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro The Torunoment Not FInished Yet Come After It Finished (6:11 PM) ."));
  606.                                         break;
  607.                                     }
  608.  
  609.                                     break;
  610.                                 }
  611.                         }
  612.                         break;
  613.                     }
  614.  
  615.                 #endregion TopDonation Prize ID =95551 Princes
  616.                 #region TopDonation Prize ID =95551 Ducke
  617.  
  618.                 case 95553:
  619.                     {
  620.                         switch (npcRequest.OptionID)
  621.                         {
  622.                             case 0:
  623.                                 {
  624.                                     dialog.Text("Hello hero [" + client.Entity.Name + "] Are you Still Alive you need your prize ?????????? yah you can take it after event finish");
  625.                                     dialog.Text("Note: Kings Prizes is [100000 Cps] ,Princes Prizes [50000 Cps] ,Ducke Prizes [20000 Cps] , Earls,Barno and kinghts Prizes [10000 Cps]");
  626.                                     dialog.Option("Claim Prize ", 1);
  627.                                     dialog.Option("Blah, boring.", 255);
  628.                                     dialog.Send();
  629.                                     break;
  630.                                 }
  631.                             case 1:
  632.                                 {
  633.                                     int alive = 0;
  634.                                     foreach (Manboy00_ASD.Client.GameClient players in Kernel.GamePool.Values)
  635.                                         if (players.Entity.MapID == 9994 && (!players.Entity.Dead))
  636.                                             alive++;
  637.  
  638.                                     if (DateTime.Now.Hour == 18 && DateTime.Now.Minute >= 11 && DateTime.Now.Minute <= 15)
  639.                                     {
  640.                                         if (alive == 1)
  641.                                         {
  642.                                             _String str = new _String(true);
  643.                                             str.UID = client.Entity.UID;
  644.                                             str.TextsCount = 1;
  645.                                             str.Type = _String.Effect;
  646.                                             str.Texts.Add("break_start");
  647.                                             Manboy00Effects.break_start(client);
  648.                                             client.Entity.Owner.SendScreen(str, true);
  649.                                             client.Entity.Teleport(1002, 427, 387);
  650.                                             client.Entity.TopDucke = 1;
  651.                                             client.Entity.ConquerPoints += 20000;
  652.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have got 20000 CPs and TopDucke halo gooood Luck  ."));
  653.                                         }
  654.                                         else
  655.                                         {
  656.                                             client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro You Are not alone there is  " + alive.ToString() + " Players Alive"));
  657.                                         }
  658.                                     }
  659.                                     else
  660.                                     {
  661.                                         client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro The Torunoment Not FInished Yet Come After It Finished (6:11 PM) ."));
  662.                                     }
  663.  
  664.                                     break;
  665.                                 }
  666.                         }
  667.                         break;
  668.                     }
  669.  
  670.                 #endregion TopDonation Prize ID =95551 Ducke
  671.                 #region TopDonation Prize ID =95551 to Earl
  672.  
  673.                 case 95554:
  674.                     {
  675.                         switch (npcRequest.OptionID)
  676.                         {
  677.                             case 0:
  678.                                 {
  679.                                     dialog.Text("Hello hero [" + client.Entity.Name + "] Are you Still Alive you need your prize ?????????? yah you can take it after event finish");
  680.                                     dialog.Text("Note: Kings Prizes is [100000 Cps] ,Princes Prizes [50000 Cps] ,Ducke Prizes [20000 Cps] , Earls,Barno and kinghts Prizes [10000 Cps]");
  681.                                     dialog.Option("Claim Prize ", 1);
  682.                                     dialog.Option("Blah, boring.", 255);
  683.                                     dialog.Send();
  684.                                     break;
  685.                                 }
  686.                             case 1:
  687.                                 {
  688.                                     int alive = 0;
  689.                                     foreach (Manboy00_ASD.Client.GameClient players in Kernel.GamePool.Values)
  690.                                         if (players.Entity.MapID == 9995 && (!players.Entity.Dead))
  691.                                             alive++;
  692.  
  693.                                     if (DateTime.Now.Hour == 18 && DateTime.Now.Minute >= 11 && DateTime.Now.Minute <= 15)
  694.                                     {
  695.                                         if (alive == 1)
  696.                                         {
  697.                                             _String str = new _String(true);
  698.                                             str.UID = client.Entity.UID;
  699.                                             str.TextsCount = 1;
  700.                                             str.Type = _String.Effect;
  701.                                             str.Texts.Add("break_start");
  702.                                             Manboy00Effects.break_start(client);
  703.                                             client.Entity.Owner.SendScreen(str, true);
  704.                                             client.Entity.Teleport(1002, 427, 387);
  705.                                             client.Entity.TopEarl = 1;
  706.                                             client.Entity.ConquerPoints += 10000;
  707.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have got 10000  CPs and TopEarl halo gooood Luck ."));
  708.                                         }
  709.                                         else
  710.                                         {
  711.                                             client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro You Are not alone there is  " + alive.ToString() + " Players Alive"));
  712.                                         }
  713.                                     }
  714.                                     else
  715.                                     {
  716.                                         client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro The Torunoment Not FInished Yet Come After It Finished (6:11 PM) ."));
  717.                                     }
  718.  
  719.                                     break;
  720.                                 }
  721.                         }
  722.                         break;
  723.                     }
  724.  
  725.                 #endregion TopDonation Prize ID =95551 to Earl
  726.                 #region TopDonation Prize ID =95551 to Baron
  727.  
  728.                 case 95555:
  729.                     {
  730.                         switch (npcRequest.OptionID)
  731.                         {
  732.                             case 0:
  733.                                 {
  734.                                     dialog.Text("Hello hero [" + client.Entity.Name + "] Are you Still Alive you need your prize ?????????? yah you can take it after event finish");
  735.                                     dialog.Text("Note: Kings Prizes is [100000 Cps] ,Princes Prizes [50000 Cps] ,Ducke Prizes [20000 Cps] , Earls,Barno and kinghts Prizes [10000 Cps]");
  736.                                     dialog.Option("Claim Prize ", 1);
  737.                                     dialog.Option("Blah, boring.", 255);
  738.                                     dialog.Send();
  739.                                     break;
  740.                                 }
  741.                             case 1:
  742.                                 {
  743.                                     int alive = 0;
  744.                                     foreach (Manboy00_ASD.Client.GameClient players in Kernel.GamePool.Values)
  745.                                         if (players.Entity.MapID == 9996 && (!players.Entity.Dead))
  746.                                             alive++;
  747.  
  748.                                     if (DateTime.Now.Hour == 18 && DateTime.Now.Minute >= 11 && DateTime.Now.Minute <= 15)
  749.                                     {
  750.                                         if (alive == 1)
  751.                                         {
  752.                                             _String str = new _String(true);
  753.                                             str.UID = client.Entity.UID;
  754.                                             str.TextsCount = 1;
  755.                                             str.Type = _String.Effect;
  756.                                             str.Texts.Add("break_start");
  757.                                             Manboy00Effects.break_start(client);
  758.                                             client.Entity.Owner.SendScreen(str, true);
  759.                                             client.Entity.Teleport(1002, 427, 387);
  760.                                             client.Entity.TopBaron = 1;
  761.                                             client.Entity.ConquerPoints += 10000;
  762.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have got 10000 CPs and TopBaron halo gooood Luck ."));
  763.                                         }
  764.                                         else
  765.                                         {
  766.                                             client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro You Are not alone there is  " + alive.ToString() + " Players Alive"));
  767.                                         }
  768.                                     }
  769.                                     else
  770.                                     {
  771.                                         client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro The Torunoment Not FInished Yet Come After It Finished (6:11 PM) ."));
  772.                                     }
  773.  
  774.                                     break;
  775.                                 }
  776.                         }
  777.                         break;
  778.                     }
  779.  
  780.                 #endregion TopDonation Prize ID =95551 to Baron
  781.                 #region TopDonation Prize ID =95551 to Kinght
  782.  
  783.                 case 95556:
  784.                     {
  785.                         switch (npcRequest.OptionID)
  786.                         {
  787.                             case 0:
  788.                                 {
  789.                                     dialog.Text("Hello hero [" + client.Entity.Name + "] Are you Still Alive you need your prize ?????????? yah you can take it after event finish");
  790.                                     dialog.Text("Note: Kings Prizes is [100000 Cps] ,Princes Prizes [50000 Cps] ,Ducke Prizes [20000 Cps] , Earls,Barno and kinghts Prizes [10000 Cps]");
  791.                                     dialog.Option("Claim Prize ", 1);
  792.                                     dialog.Option("Blah, boring.", 255);
  793.                                     dialog.Send();
  794.                                     break;
  795.                                 }
  796.                             case 1:
  797.                                 {
  798.                                     int alive = 0;
  799.                                     foreach (Manboy00_ASD.Client.GameClient players in Kernel.GamePool.Values)
  800.                                         if (players.Entity.MapID == 9997 && (!players.Entity.Dead))
  801.                                             alive++;
  802.  
  803.                                     if (DateTime.Now.Hour == 18 && DateTime.Now.Minute >= 11 && DateTime.Now.Minute <= 15)
  804.                                     {
  805.                                         if (alive == 1)
  806.                                         {
  807.                                             _String str = new _String(true);
  808.                                             str.UID = client.Entity.UID;
  809.                                             str.TextsCount = 1;
  810.                                             str.Type = _String.Effect;
  811.                                             str.Texts.Add("break_start");
  812.                                             Manboy00Effects.break_start(client);
  813.                                             client.Entity.Owner.SendScreen(str, true);
  814.                                             client.Entity.Teleport(1002, 427, 387);
  815.                                             client.Entity.TopKinght = 1;
  816.                                             client.Entity.ConquerPoints += 10000;
  817.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have got 10000 CPs and TopKnight halo gooood Luck ."));
  818.                                         }
  819.                                         else
  820.                                         {
  821.                                             client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro You Are not alone there is  " + alive.ToString() + " Players Alive"));
  822.                                         }
  823.                                     }
  824.                                     else
  825.                                     {
  826.                                         client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro The Torunoment Not FInished Yet Come After It Finished (6:11 PM) ."));
  827.                                     }
  828.  
  829.                                     break;
  830.                                 }
  831.                         }
  832.                         break;
  833.                     }
  834.  
  835.                 #endregion TopDonation Prize ID =95551 to Kinght
  836.  
  837.                 #endregion First Events
  838.                 #region Scend Events
  839.  
  840.                 #region TopPk RedName -- BlackNAme Event Daily  ID =82121
  841.  
  842.                 case 82121:
  843.                     {
  844.                         switch (npcRequest.OptionID)
  845.                         {
  846.                             case 0:
  847.                                 {
  848.                                     dialog.Text("Hello hero [" + client.Entity.Name + "] There is new Event it Called  TopRedName -- BlackName like its war betten PkPonints ranks every Top White PkPoints [ 0 -- 29 ] there is map for Them and TopRedName PkPoints [ 30 -- 99 ] have another map");
  849.                                     dialog.Text("And TopBlackName PkPoints [ 100 -- 199 ] ..etc as ranks This. Tournoment Starts every Day at 4:00PM and Finish at 4:11PM You Will Get Auto Invite and Can Die and Revive and Join etc untill it finished GOOOOOOOOOD Luck :)");
  850.                                     dialog.Text("Note: Blackname Prizes is [100000 Cps] ,Redname Prizes [50000 Cps] ,Whitename Prizes [20000 Cps] ;");
  851.                                     dialog.Option("Join The Tournoment ", 1);
  852.                                     dialog.Option("Blah, boring.", 255);
  853.                                     dialog.Send();
  854.                                     break;
  855.                                 }
  856.                             case 1:
  857.                                 {
  858.                                     if (DateTime.Now.Hour == 16 && DateTime.Now.Minute >= 00 && DateTime.Now.Minute <= 10)
  859.                                     {
  860.                                         if (client.Entity.ContainsFlag(Update.Flags.Ride))
  861.                                         {
  862.                                             client.Entity.RemoveFlag(Update.Flags.Ride);
  863.                                         }
  864.                                         if (client.Entity.PKPoints >= 100 && client.Entity.PKPoints <= 199)//BlackName
  865.                                         {
  866.                                             _String str = new _String(true);
  867.                                             str.UID = client.Entity.UID;
  868.                                             str.TextsCount = 1;
  869.                                             str.Type = _String.Effect;
  870.                                             str.Texts.Add("good");
  871.                                             Manboy00Effects.good(client);
  872.                                             client.Entity.Owner.SendScreen(str, true);
  873.                                             client.Entity.Teleport(3320, 50, 50);
  874.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have joined TopBlackname Map Just Wait Untile it Start ."));
  875.                                         }
  876.                                         if (client.Entity.PKPoints >= 30 && client.Entity.PKPoints <= 99)//TopRedname
  877.                                         {
  878.                                             _String str = new _String(true);
  879.                                             str.UID = client.Entity.UID;
  880.                                             str.TextsCount = 1;
  881.                                             str.Type = _String.Effect;
  882.                                             str.Texts.Add("good");
  883.                                             Manboy00Effects.good(client);
  884.                                             client.Entity.Owner.SendScreen(str, true);
  885.                                             client.Entity.Teleport(3321, 50, 50);
  886.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have joined TopRedname Map Just Wait Untile it Start ."));
  887.                                         }
  888.                                         if (client.Entity.PKPoints >= 00 && client.Entity.PKPoints <= 29)//TopWithename
  889.                                         {
  890.                                             _String str = new _String(true);
  891.                                             str.UID = client.Entity.UID;
  892.                                             str.TextsCount = 1;
  893.                                             str.Type = _String.Effect;
  894.                                             str.Texts.Add("good");
  895.                                             Manboy00Effects.good(client);
  896.                                             client.Entity.Owner.SendScreen(str, true);
  897.                                             client.Entity.Teleport(3322, 50, 50);
  898.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have joined TopWhitename Map Just Wait Untile it Start ."));
  899.                                         }
  900.                                     }
  901.                                     else
  902.                                     {
  903.                                         client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro There is No Tournpment Now COme On 4:00PM."));
  904.                                     }
  905.  
  906.                                     break;
  907.                                 }
  908.                         }
  909.                         break;
  910.                     }
  911.  
  912.                 #endregion TopPkPoints Event Daily
  913.                 #region TopPkPoints Prize BlackName
  914.  
  915.                 case 82122:
  916.                     {
  917.                         switch (npcRequest.OptionID)
  918.                         {
  919.                             case 0:
  920.                                 {
  921.                                     dialog.Text("Hello hero [" + client.Entity.Name + "] There is new Event it Called  TopRedName -- BlackName like its war betten PkPonints ranks every Top White PkPoints [ 0 -- 29 ] there is map for Them and TopRedName PkPoints [ 30 -- 99 ] have another map");
  922.                                     dialog.Text("And TopBlackName PkPoints [ 100 -- 199 ] ..etc as ranks This. Tournoment Starts every Day at 4:00PM and Finish at 4:11PM You Will Get Auto Invite and Can Die and Revive and Join etc untill it finished GOOOOOOOOOD Luck :)");
  923.                                     dialog.Text("Note: Blackname Prizes is [100000 Cps] ,Redname Prizes [50000 Cps] ,Whitename Prizes [20000 Cps] ;");
  924.                                     dialog.Option("Claim Prize ", 1);
  925.                                     dialog.Option("Blah, boring.", 255);
  926.                                     dialog.Send();
  927.                                     break;
  928.                                 }
  929.                             case 1:
  930.                                 {
  931.                                     int alive = 0;
  932.                                     foreach (Manboy00_ASD.Client.GameClient players in Kernel.GamePool.Values)
  933.                                         if (players.Entity.MapID == 3320 && (!players.Entity.Dead))
  934.                                             alive++;
  935.  
  936.                                     if (DateTime.Now.Hour == 16 && DateTime.Now.Minute >= 11 && DateTime.Now.Minute <= 15)
  937.                                     {
  938.                                         if (alive == 1)
  939.                                         {
  940.                                             _String str = new _String(true);
  941.                                             str.UID = client.Entity.UID;
  942.                                             str.TextsCount = 1;
  943.                                             str.Type = _String.Effect;
  944.                                             str.Texts.Add("break_start");
  945.                                             Manboy00Effects.break_start(client);
  946.                                             client.Entity.Owner.SendScreen(str, true);
  947.                                             client.Entity.Teleport(1002, 427, 387);
  948.                                             client.Entity.ConquerPoints += 100000;
  949.                                             client.Entity.TopBlackname = 1;
  950.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have got 100000 CPs and TopBlackname halo gooood Luck  ."));
  951.                                         }
  952.                                         else
  953.                                         {
  954.                                             client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro You Are not alone there is  " + alive.ToString() + " Players Alive"));
  955.                                         }
  956.                                     }
  957.                                     else
  958.                                     {
  959.                                         client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro The Torunoment Not FInished Yet Come After It Finished (4:11 PM) ."));
  960.                                     }
  961.  
  962.                                     break;
  963.                                 }
  964.                         }
  965.                         break;
  966.                     }
  967.  
  968.                 #endregion TopDonation
  969.                 #region TopDonation Prize Redname
  970.  
  971.                 case 82123:
  972.                     {
  973.                         switch (npcRequest.OptionID)
  974.                         {
  975.                             case 0:
  976.                                 {
  977.                                     dialog.Text("Hello hero [" + client.Entity.Name + "] There is new Event it Called  TopRedName -- BlackName like its war betten PkPonints ranks every Top White PkPoints [ 0 -- 29 ] there is map for Them and TopRedName PkPoints [ 30 -- 99 ] have another map");
  978.                                     dialog.Text("And TopBlackName PkPoints [ 100 -- 199 ] ..etc as ranks This. Tournoment Starts every Day at 4:00PM and Finish at 4:11PM You Will Get Auto Invite and Can Die and Revive and Join etc untill it finished GOOOOOOOOOD Luck :)");
  979.                                     dialog.Text("Note: Blackname Prizes is [100000 Cps] ,Redname Prizes [50000 Cps] ,Whitename Prizes [20000 Cps] ;");
  980.                                     dialog.Option("Claim Prize ", 1);
  981.                                     dialog.Option("Blah, boring.", 255);
  982.                                     dialog.Send();
  983.                                     break;
  984.                                 }
  985.                             case 1:
  986.                                 {
  987.                                     int alive = 0;
  988.                                     foreach (Manboy00_ASD.Client.GameClient players in Kernel.GamePool.Values)
  989.                                         if (players.Entity.MapID == 3321 && (!players.Entity.Dead))
  990.                                             alive++;
  991.  
  992.                                     if (DateTime.Now.Hour == 16 && DateTime.Now.Minute >= 11 && DateTime.Now.Minute <= 15)
  993.                                     {
  994.                                         if (alive == 1)
  995.                                         {
  996.                                             _String str = new _String(true);
  997.                                             str.UID = client.Entity.UID;
  998.                                             str.TextsCount = 1;
  999.                                             str.Type = _String.Effect;
  1000.                                             str.Texts.Add("break_start");
  1001.                                             Manboy00Effects.break_start(client);
  1002.                                             client.Entity.Owner.SendScreen(str, true);
  1003.                                             client.Entity.Teleport(1002, 427, 387);
  1004.                                             client.Entity.TopRedname = 1;
  1005.                                             client.Entity.ConquerPoints += 50000;
  1006.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have got 50000 CPs and TopRedname halo gooood Luck  ."));
  1007.                                         }
  1008.                                         else
  1009.                                         {
  1010.                                             client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro You Are not alone there is  " + alive.ToString() + " Players Alive"));
  1011.                                             break;
  1012.                                         }
  1013.                                     }
  1014.                                     else
  1015.                                     {
  1016.                                         client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro The Torunoment Not FInished Yet Come After It Finished (4:11 PM) ."));
  1017.                                         break;
  1018.                                     }
  1019.  
  1020.                                     break;
  1021.                                 }
  1022.                         }
  1023.                         break;
  1024.                     }
  1025.  
  1026.                 #endregion TopDonation Prize
  1027.                 #region TopDonation Prize TopWitheName
  1028.  
  1029.                 case 82124:
  1030.                     {
  1031.                         switch (npcRequest.OptionID)
  1032.                         {
  1033.                             case 0:
  1034.                                 {
  1035.                                     dialog.Text("Hello hero [" + client.Entity.Name + "] There is new Event it Called  TopRedName -- BlackName like its war betten PkPonints ranks every Top White PkPoints [ 0 -- 29 ] there is map for Them and TopRedName PkPoints [ 30 -- 99 ] have another map");
  1036.                                     dialog.Text("And TopBlackName PkPoints [ 100 -- 199 ] ..etc as ranks This. Tournoment Starts every Day at 4:00PM and Finish at 4:11PM You Will Get Auto Invite and Can Die and Revive and Join etc untill it finished GOOOOOOOOOD Luck :)");
  1037.                                     dialog.Text("Note: Blackname Prizes is [100000 Cps] ,Redname Prizes [50000 Cps] ,Whitename Prizes [20000 Cps] ;");
  1038.                                     dialog.Option("Claim Prize ", 1);
  1039.                                     dialog.Option("Blah, boring.", 255);
  1040.                                     dialog.Send();
  1041.                                     break;
  1042.                                 }
  1043.                             case 1:
  1044.                                 {
  1045.                                     int alive = 0;
  1046.                                     foreach (Manboy00_ASD.Client.GameClient players in Kernel.GamePool.Values)
  1047.                                         if (players.Entity.MapID == 3322 && (!players.Entity.Dead))
  1048.                                             alive++;
  1049.  
  1050.                                     if (DateTime.Now.Hour == 16 && DateTime.Now.Minute >= 10 && DateTime.Now.Minute <= 15)
  1051.                                     {
  1052.                                         if (alive == 1)
  1053.                                         {
  1054.                                             _String str = new _String(true);
  1055.                                             str.UID = client.Entity.UID;
  1056.                                             str.TextsCount = 1;
  1057.                                             str.Type = _String.Effect;
  1058.                                             str.Texts.Add("break_start");
  1059.                                             Manboy00Effects.break_start(client);
  1060.                                             client.Entity.Owner.SendScreen(str, true);
  1061.                                             client.Entity.Teleport(1002, 427, 387);
  1062.                                             client.Entity.TopWithename = 1;
  1063.                                             client.Entity.ConquerPoints += 20000;
  1064.                                             client.Send(new Network.GamePackets.NpcReply(6, "Gratz You have got 20000 CPs and Withename halo gooood Luck  ."));
  1065.                                         }
  1066.                                         else
  1067.                                         {
  1068.                                             client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro You Are not alone there is  " + alive.ToString() + " Players Alive"));
  1069.                                         }
  1070.                                     }
  1071.                                     else
  1072.                                     {
  1073.                                         client.Send(new Network.GamePackets.NpcReply(6, "Sorry Bro The Torunoment Not FInished Yet Come After It Finished (4:11 PM) ."));
  1074.                                     }
  1075.  
  1076.                                     break;
  1077.                                 }
  1078.                         }
  1079.                         break;
  1080.                     }
  1081.  
  1082.                 #endregion TopDonation Prize
  1083.  
  1084.                 #endregion First Events
  1085. //--------------------------//
  1086. #region LastMan
  1087.                 case 54238:
  1088.                     {
  1089.                         switch (npcRequest.OptionID)
  1090.                         {
  1091.                             case 0:
  1092.                                 {
  1093.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join LastManStanding PKWar?.");
  1094.                                     dialog.Option("Yes Please", 1);
  1095.                                     dialog.Option("I don't care.", 255);
  1096.                                     dialog.Send();
  1097.                                     break;
  1098.                                 }
  1099.                             case 1:
  1100.                                 {
  1101.  
  1102.                                     DateTime Now64 = DateTime.Now;
  1103.                                     if (Now64.Minute >= 30 && Now64.Minute <= 32)
  1104.                                     {
  1105.                                         if (client.Entity.ContainsFlag(Update.Flags.Ride))
  1106.                                         {
  1107.                                             client.Entity.RemoveFlag(Update.Flags.Ride);
  1108.                                         }
  1109.                                         Random R = new Random();
  1110.                                         int Nr = R.Next(1, 10);
  1111.                                         if (Nr == 1) client.Entity.Teleport(3333, 51, 73);
  1112.                                         if (Nr == 2) client.Entity.Teleport(3333, 33, 34);
  1113.                                         if (Nr == 3) client.Entity.Teleport(3333, 67, 34);
  1114.                                         if (Nr == 4) client.Entity.Teleport(3333, 51, 73);
  1115.                                         if (Nr == 5) client.Entity.Teleport(3333, 33, 34);
  1116.                                         if (Nr == 6) client.Entity.Teleport(3333, 67, 34);
  1117.                                         if (Nr == 7) client.Entity.Teleport(3333, 51, 73);
  1118.                                         if (Nr == 8) client.Entity.Teleport(3333, 33, 34);
  1119.                                         if (Nr == 9) client.Entity.Teleport(3333, 67, 34);
  1120.                                         if (Nr == 10) client.Entity.Teleport(3333, 68, 57);
  1121.                                     }
  1122.                                     else
  1123.                                     {
  1124.                                         dialog.Text("LastManStanding Pk War is held during xx:30 to xx:33 you have 2 min to signup ");
  1125.                                         dialog.Option("I don't care.", 255);
  1126.                                         dialog.Send();
  1127.                                         break;
  1128.                                     }
  1129.                                     break;
  1130.                                 }
  1131.                         }
  1132.                         break;
  1133.                     }
  1134.                 #endregion
  1135. #region Winner of LastMan
  1136.                 case 54235:
  1137.                     {
  1138.                         switch (npcRequest.OptionID)
  1139.                         {
  1140.                             case 0:
  1141.                                 {
  1142.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  1143.                                     dialog.Option("Yes Please", 1);
  1144.                                     dialog.Option("I don't care.", 255);
  1145.                                     dialog.Send();
  1146.                                     break;
  1147.                                 }
  1148.                             case 1:
  1149.                                 {
  1150.                                     Daily.CheackAlive2();
  1151.                                     DateTime Now64 = DateTime.Now;
  1152.                                     if ((Now64.Minute >= 34) && (Now64.Minute <= 50))
  1153.                                     {
  1154.                                         if (Daily.howmanyinmap2 == 1)
  1155.                                         {
  1156.                                             //#warning LAST MAN PRIZE
  1157.                                             client.Entity.ConquerPoints += rates.LastMan;
  1158.                                             Game.Flags.AddTopLastMan(client);
  1159.                                             client.Entity.AddFlag2(Network.GamePackets.Update.Flags2.Top2Warrior);
  1160.                                             Manboy00_ASD.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " claimed the prize " + rates.LastMan + " ConquerPoints for winning the LastManStanding for this Hour.", System.Drawing.Color.Black, Message.Center), Program.GamePool);
  1161.                                             client.Entity.SendSpawn(client, true);
  1162.                                             client.Entity.Teleport(1002, 300, 280);
  1163.                                             client.Entity.Update(_String.Effect, "break_start", true);
  1164.                                             EntityTable.SaveEntity(client);
  1165.                                         }
  1166.                                         else
  1167.                                         {
  1168.                                             dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!");
  1169.                                             dialog.Option("okay", 255);
  1170.                                             dialog.Send();
  1171.                                             break;
  1172.                                         }
  1173.                                     }
  1174.                                     else
  1175.                                     {
  1176.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:34");
  1177.                                         dialog.Option("okay", 255);
  1178.                                         dialog.Send();
  1179.                                         break;
  1180.                                     }
  1181.                                     break;
  1182.                                 }
  1183.                         }
  1184.                         break;
  1185.                     }
  1186.                 #endregion
  1187. //---------------------------------//
  1188.  #region MonthlyPk
  1189.                 case 2316:
  1190.                     {
  1191.                         switch (npcRequest.OptionID)
  1192.                         {
  1193.                             case 0:
  1194.                                 {
  1195.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join the Monthly PKWar?.");
  1196.                                     dialog.Option("Yes Please", 1);
  1197.                                     dialog.Option("I don't care.", 255);
  1198.                                     dialog.Send();
  1199.                                     break;
  1200.                                 }
  1201.                             case 1:
  1202.                                 {
  1203.                                     var Now64 = DateTime.Now;
  1204.                                     if (Program.World.MonthlyPKWar && Now64.Minute <= 5)
  1205.                                     {
  1206.                                         if (client.Entity.ContainsFlag(Update.Flags.Ride))
  1207.                                         {
  1208.                                             client.Entity.RemoveFlag(Update.Flags.Ride);
  1209.                                         }
  1210.                                         Random R = new Random();
  1211.                                         int Nr = R.Next(1, 10);
  1212.                                         if (Nr == 1) client.Entity.Teleport(1518, 114, 078);
  1213.                                         if (Nr == 2) client.Entity.Teleport(1518, 96, 87);
  1214.                                         if (Nr == 3) client.Entity.Teleport(1518, 142, 88);
  1215.                                         if (Nr == 4) client.Entity.Teleport(1518, 115, 115);
  1216.                                         if (Nr == 5) client.Entity.Teleport(1518, 98, 130);
  1217.                                         if (Nr == 6) client.Entity.Teleport(1518, 96, 153);
  1218.                                         if (Nr == 7) client.Entity.Teleport(1518, 112, 162);
  1219.                                         if (Nr == 8) client.Entity.Teleport(1518, 130, 166);
  1220.                                         if (Nr == 9) client.Entity.Teleport(1518, 139, 114);
  1221.                                         if (Nr == 10) client.Entity.Teleport(1518, 156, 119);
  1222.                                     }
  1223.                                     else
  1224.                                     {
  1225.                                         dialog.Text("You may sign up during the first 5 minutes of the event! Monthly Pk War is held during the first Sunday of each month! This month's is held on " + Program.World.MonthlyPKDate.ToString("dd MMMM yyyy") + " at 14:00. Next month is held on " + Program.World.NextMonthlyPKDate.ToString("dd MMMM yyyy") + ".");
  1226.                                         dialog.Option("I don't care.", 255);
  1227.                                         dialog.Send();
  1228.                                         break;
  1229.                                     }
  1230.                                     break;
  1231.                                 }
  1232.                         }
  1233.                         break;
  1234.                     }
  1235.                 #endregion
  1236.                 #region Winner of MonthlyPk NPC 2315
  1237.                 case 2317:
  1238.                     {
  1239.                         switch (npcRequest.OptionID)
  1240.                         {
  1241.                             case 0:
  1242.                                 {
  1243.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  1244.                                     dialog.Option("Yes Please", 1);
  1245.                                     dialog.Option("I don't care.", 255);
  1246.                                     dialog.Send();
  1247.                                     break;
  1248.                                 }
  1249.                             case 1:
  1250.                                 {
  1251.                                     int alive = 0;
  1252.                                     foreach (Manboy00_ASD.Client.GameClient players in Program.GamePool)
  1253.                                         if (players.Entity.MapID == 1518 && (!players.Entity.Dead))
  1254.                                             alive++;
  1255.                                     var Now64 = DateTime.Now;
  1256.                                     if (Now64.DayOfYear == 1 && Now64.Hour >= 14 && Now64.Minute >= 8)
  1257.                                     {
  1258.                                         if (alive == 1)
  1259.                                         {
  1260.                                             //#warning MONTHLY PK PRIZE
  1261.                                             client.Entity.ConquerPoints += rates.MonthlyPk;
  1262.                                             Manboy00_ASD.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " claimed the prize " + rates.MonthlyPk + " ConquerPoints for winning the Monthly Pk War and Receive Monthly PkWar Halo.", System.Drawing.Color.Black, Message.Talk), Program.GamePool);
  1263.                                             Game.Flags.AddMonthly(client);
  1264.                                             client.Entity.AddFlag(Update.Flags.MonthlyPKChampion);
  1265.                                             client.Entity.SendSpawn(client, true);
  1266.                                             client.Entity.Teleport(1002, 300, 280);
  1267.                                             client.Entity.Update(_String.Effect, "break_start", true);
  1268.                                             EntityTable.SaveEntity(client);
  1269.                                         }
  1270.                                         else
  1271.                                         {
  1272.                                             dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
  1273.                                             dialog.Option("okay", 255);
  1274.                                             dialog.Send();
  1275.                                             break;
  1276.                                         }
  1277.                                     }
  1278.                                     else
  1279.                                     {
  1280.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 14:25");
  1281.                                         dialog.Option("okay", 255);
  1282.                                         dialog.Send();
  1283.                                         break;
  1284.                                     }
  1285.                                     break;
  1286.                                 }
  1287.                         }
  1288.                         break;
  1289.                     }
  1290.                 #endregion
  1291. //-------------------------------//
  1292. #region Killers War
  1293.                 case 23114:
  1294.                     {
  1295.                         switch (npcRequest.OptionID)
  1296.                         {
  1297.                             case 0:
  1298.                                 {
  1299.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join the Killers War?.");
  1300.                                     dialog.Option("Yes Please", 1);
  1301.                                     dialog.Option("I don't care.", 255);
  1302.                                     dialog.Send();
  1303.                                     break;
  1304.                                 }
  1305.                             case 1:
  1306.                                 {
  1307.                                     if (DateTime.Now.Minute >= 8 && DateTime.Now.Minute <= 10)
  1308.                                     {
  1309.                                         if (client.Entity.ContainsFlag(Update.Flags.Ride))
  1310.                                         {
  1311.                                             client.Entity.RemoveFlag(Update.Flags.Ride);
  1312.                                         }
  1313.                                         Random R = new Random();
  1314.                                         int Nr = R.Next(1, 10);
  1315.                                         if (Nr == 1) client.Entity.Teleport(1601, 114, 078);
  1316.                                         if (Nr == 2) client.Entity.Teleport(1601, 96, 87);
  1317.                                         if (Nr == 3) client.Entity.Teleport(1601, 142, 88);
  1318.                                         if (Nr == 4) client.Entity.Teleport(1601, 115, 115);
  1319.                                         if (Nr == 5) client.Entity.Teleport(1601, 98, 130);
  1320.                                         if (Nr == 6) client.Entity.Teleport(1601, 96, 153);
  1321.                                         if (Nr == 7) client.Entity.Teleport(1601, 112, 162);
  1322.                                         if (Nr == 8) client.Entity.Teleport(1601, 130, 166);
  1323.                                         if (Nr == 9) client.Entity.Teleport(1601, 139, 114);
  1324.                                         if (Nr == 10) client.Entity.Teleport(1601, 156, 119);
  1325.                                     }
  1326.                                     else
  1327.                                     {
  1328.                                         dialog.Text("Killers War is held during at xx:08 to xx:10 ");
  1329.                                         dialog.Option("I don't care.", 255);
  1330.                                         dialog.Send();
  1331.                                         break;
  1332.                                     }
  1333.                                     break;
  1334.                                 }
  1335.                         }
  1336.                         break;
  1337.                     }
  1338.                 #endregion
  1339.                 #region Winner of Killers War
  1340.                 case 54233:
  1341.                     {
  1342.                         switch (npcRequest.OptionID)
  1343.                         {
  1344.                             case 0:
  1345.                                 {
  1346.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  1347.                                     dialog.Option("Yes Please", 1);
  1348.                                     dialog.Option("I don't care.", 255);
  1349.                                     dialog.Send();
  1350.                                     break;
  1351.                                 }
  1352.                             case 1:
  1353.                                 {
  1354.                                     Daily.CheackAlive3();
  1355.                                     DateTime Now64 = DateTime.Now;
  1356.                                     if (DateTime.Now.Minute >= 11 && DateTime.Now.Minute <= 25)
  1357.                                     {
  1358.                                         if (Daily.howmanyinmap2 == 1)
  1359.                                         {
  1360.                                             //#warning LAST MAN PRIZE
  1361.                                             client.Entity.ConquerPoints += rates.LastMan;
  1362.                                             Game.Flags.AddTopConquer(client);
  1363.                                             client.Entity.AddFlag2(Network.GamePackets.Update.Flags2.WeeklyTop8Pk);
  1364.                                             Manboy00_ASD.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " claimed the prize " + rates.LastMan + " ConquerPoints for winning Killers War for this Hour.", System.Drawing.Color.Black, Message.Center), Program.GamePool);
  1365.                                             client.Entity.SendSpawn(client, true);
  1366.                                             client.Entity.Teleport(1002, 300, 280);
  1367.                                             EntityTable.SaveEntity(client);
  1368.                                         }
  1369.                                         else
  1370.                                         {
  1371.                                             dialog.Text("Have A  players in the map kill it first to claim prize!");
  1372.                                             dialog.Option("okay", 255);
  1373.                                             dialog.Send();
  1374.                                             break;
  1375.                                         }
  1376.                                     }
  1377.                                     else
  1378.                                     {
  1379.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:11 to xx:15");
  1380.                                         dialog.Option("okay", 255);
  1381.                                         dialog.Send();
  1382.                                         break;
  1383.                                     }
  1384.                                     break;
  1385.                                 }
  1386.                         }
  1387.                         break;
  1388.                     }
  1389.                 #endregion
  1390. //--------------------------------//
  1391.  #region DailyPkWar
  1392.                 case 231400:
  1393.                     {
  1394.                         switch (npcRequest.OptionID)
  1395.                         {
  1396.                             case 0:
  1397.                                 {
  1398.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join the Daily PKWar?.");
  1399.                                     dialog.Option("Yes Please", 1);
  1400.                                     dialog.Option("I don't care.", 255);
  1401.                                     dialog.Send();
  1402.                                     break;
  1403.                                 }
  1404.                             case 1:
  1405.                                 {
  1406.                                     var Now64 = DateTime.Now;
  1407.                                     if (DateTime.Now.Minute >= 00 && DateTime.Now.Minute < 05)
  1408.                                     {
  1409.                                         if (client.Entity.ContainsFlag(Update.Flags.Ride))
  1410.                                         {
  1411.                                             client.Entity.RemoveFlag(Update.Flags.Ride);
  1412.                                         }
  1413.                                         client.Entity.Teleport(8877, 52, 44);
  1414.                                     }
  1415.                                     else
  1416.                                     {
  1417.                                         dialog.Text("Daily Pk War is held between xx:00 and xx:05 every Hour");
  1418.                                         dialog.Option("I don't care.", 255);
  1419.                                         dialog.Send();
  1420.                                         break;
  1421.                                     }
  1422.                                     break;
  1423.                                 }
  1424.                         }
  1425.                         break;
  1426.                     }
  1427.                 #endregion
  1428.                 #region Winner of DailyPk NPC 231500
  1429.                 case 231500:
  1430.                     {
  1431.                         switch (npcRequest.OptionID)
  1432.                         {
  1433.                             case 0:
  1434.                                 {
  1435.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  1436.                                     dialog.Option("Yes Please", 1);
  1437.                                     dialog.Option("I don't care.", 255);
  1438.                                     dialog.Send();
  1439.                                     break;
  1440.                                 }
  1441.                             case 1:
  1442.                                 {
  1443.                                     Daily.CheackAlive();
  1444.                                     var Now64 = DateTime.Now;
  1445.                                     if (Now64.Minute >= 08 && Now64.Minute <= 30)
  1446.                                     {
  1447.                                         if (Daily.howmanyinmap == 1)
  1448.                                         {
  1449.                                             //#warning DAILY PK PRIZE
  1450.                                             client.Entity.ConquerPoints += rates.DailyPk;
  1451.                                             //client.Entity.Status3 = 1;
  1452.                                             Manboy00_ASD.Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " claimed the prize " + rates.DailyPk + " ConquerPoints for winning the DailyPk for this Hour.", System.Drawing.Color.Black, Message.Center), Program.GamePool);
  1453.                                             //client.Entity.AddFlag(Update.Flags.WeeklyPKChampion);
  1454.                                             client.Entity.SendSpawn(client, true);
  1455.                                             client.Entity.Teleport(1002, 300, 280);
  1456.                                             //EntityTable.SaveEntity(client);
  1457.                                         }
  1458.                                         else
  1459.                                         {
  1460.                                             dialog.Text("There are still " + Daily.howmanyinmap + " players in the map kill it first to claim prize!");
  1461.                                             dialog.Option("okay", 255);
  1462.                                             dialog.Send();
  1463.                                             break;
  1464.                                         }
  1465.                                     }
  1466.                                     else
  1467.                                     {
  1468.                                         dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:08");
  1469.                                         dialog.Option("okay", 255);
  1470.                                         dialog.Send();
  1471.                                         break;
  1472.                                     }
  1473.                                     break;
  1474.                                 }
  1475.                         }
  1476.                         break;
  1477.                     }
  1478.                 #endregion
  1479. //-------------------------------//
  1480. #region TopSpouse Join
  1481.                 case 2314006:
  1482.                     {
  1483.                         switch (npcRequest.OptionID)
  1484.                         {
  1485.                             case 0:
  1486.                                 {
  1487.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join TopSpouse PKWar?.");
  1488.                                     dialog.Text("you should make Team and Join your Spouse in it so i can let you Join?.");
  1489.                                     dialog.Option("Yes Please", 1);
  1490.                                     dialog.Option("I don't care.", 255);
  1491.                                     dialog.Send();
  1492.                                     break;
  1493.                                 }
  1494.                             case 1:
  1495.                                 {
  1496.                                     DateTime Now64 = DateTime.Now;
  1497.                                     if (Now64.DayOfWeek == DayOfWeek.Friday && Now64.Hour == 18 && Now64.Minute == 00 && Now64.Minute < 05)
  1498.                                     {
  1499.                                         if (client.Team != null && client.Team.TeamLeader && (client.Entity.Body == 1003 || client.Entity.Body == 1004))
  1500.                                         {
  1501.                                             if (client.Team.SpouseWarFull)
  1502.                                             {
  1503.                                                 if (client.Entity.ContainsFlag(Update.Flags.Ride))
  1504.                                                 {
  1505.                                                     client.Entity.RemoveFlag(Update.Flags.Ride);
  1506.                                                 }
  1507.                                                 client.Team.Teammates[0].Entity.Teleport(1090, 40, 50);
  1508.                                                 client.Team.Teammates[1].Entity.Teleport(1090, 40, 50);
  1509.                                             }
  1510.                                         }
  1511.                                     }
  1512.                                     else
  1513.                                     {
  1514.                                         dialog.Text("TopSpouse Pk War is held during 17:00 to 17:05 and End 17:30 in every day");
  1515.                                         dialog.Text("and to let you Join you must be Team leader and have your spouse in the team");
  1516.                                         dialog.Text(" Note: only you and your Spouse in the Team so you can Join");
  1517.                                         dialog.Option("I don't care.", 255);
  1518.                                         dialog.Send();
  1519.                                         break;
  1520.                                     }
  1521.                                     break;
  1522.                                 }
  1523.                         }
  1524.                         break;
  1525.                     }
  1526.                 #endregion
  1527.                 #region TopSpouse Claim
  1528.                 case 2314007:
  1529.                     {
  1530.                         switch (npcRequest.OptionID)
  1531.                         {
  1532.                             case 0:
  1533.                                 {
  1534.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim TopSpouse PKWar reward?.");
  1535.                                     dialog.Text("you should be the only man here your claim 50k cps and 2 lover book dont forget to give?.");
  1536.                                     dialog.Text(" A loveBook to your Spouse and claim halo from here?.");
  1537.                                     dialog.Option("ClaimPrize", 1);
  1538.                                     dialog.Option("I don't care.", 255);
  1539.                                     dialog.Send();
  1540.                                     break;
  1541.                                 }
  1542.                             case 1:
  1543.                                 {
  1544.                                     if (DateTime.Now.Hour >= 18 && DateTime.Now.Minute >= 5)
  1545.                                     {
  1546.                                         Game.ConquerStructures.Daily.CheackSpouse();
  1547.                                         if (Game.ConquerStructures.Daily.howmanyinmap3 == 1)
  1548.                                         {
  1549.                                             foreach (Client.GameClient Teammate in client.Team.Teammates)
  1550.                                             {
  1551.                                                 if (client.Team != null)
  1552.                                                 {
  1553.                                                     client.Entity.AddTopStatus(Update.Flags.TopSpouse, DateTime.Now.AddDays(7));
  1554.                                                     client.Entity.Teleport(1002, 301, 278);
  1555.                                                     Teammate.Entity.Teleport(1002, 301, 278);
  1556.                                                     Teammate.Entity.AddTopStatus(Update.Flags.TopSpouse, DateTime.Now.AddDays(7));
  1557.                                                     GameClient spouse = Program.FindClient(client.Entity.Spouse);
  1558.                                                     if (spouse != null)
  1559.                                                     {
  1560.                                                         spouse.Entity.AddTopStatus(Update.Flags.TopSpouse, DateTime.Now.AddDays(7));
  1561.                                                         spouse.Entity.Teleport(1002, 429, 378);
  1562.                                                     }
  1563.                                                     #warning SPOUSE PK PRIZE ( COUPLES PK )
  1564.                                                     client.Entity.ConquerPoints += rates.TopSpouse;
  1565.                                                     client.Inventory.Add(722269, 0, 2);
  1566.                                                     Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " has claimed Prize for Couples pk for this day " + rates.TopSpouse + " cps and 2 LoveBook!.", System.Drawing.Color.White, Message.Center), Program.GamePool);
  1567.                                                 }
  1568.                                             }
  1569.                                         }
  1570.                                     }
  1571.                                     else
  1572.                                     {
  1573.                                         dialog.Text("Sorry you can claim TopSpouse Prize if you the last man Here in The Map");
  1574.                                         dialog.Option("oh i see!.", 255);
  1575.                                         dialog.Send();
  1576.                                         break;
  1577.                                     }
  1578.                                     break;
  1579.                                 }
  1580.                         }
  1581.                         break;
  1582.                     }
  1583.                 #endregion  
  1584. //----------------------------------//
  1585. #region SkillPk
  1586.                 case 5090:
  1587.                     {
  1588.                         switch (npcRequest.OptionID)
  1589.                         {
  1590.                             case 0:
  1591.                                 {
  1592.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Skill PKWar?.");
  1593.                                     dialog.Text("you can SignUp during 18:05 to 18:20 and first 8 Players will get 10 Points.");
  1594.                                     dialog.Text("faster than any player else will be in the Top8Champions and obtain Rewards GoodLuck!");
  1595.                                     dialog.Option("Yes Please", 1);
  1596.                                     dialog.Option("I don't care.", 255);
  1597.                                     dialog.Send();
  1598.                                     break;
  1599.                                 }
  1600.                             case 1:
  1601.                                 {
  1602.                                     if (DateTime.Now.Hour == 18 && DateTime.Now.Minute >= 5 && DateTime.Now.Minute < 20)
  1603.                                     {
  1604.  
  1605.                                         if (client.Entity.ContainsFlag(Update.Flags.Ride))
  1606.                                         {
  1607.                                             client.Entity.RemoveFlag(Update.Flags.Ride);
  1608.                                         }
  1609.                                         if (!Game.Tournaments.SkillTournament.Top8.ContainsKey(client.Entity.UID))
  1610.                                         {
  1611.                                             Game.Tournaments.SkillTournament.AddMap(client);
  1612.                                         }
  1613.                                         else
  1614.                                         {
  1615.                                             dialog.Text("SORRY you cant signup again you already in top8 List ");
  1616.                                             dialog.Option("Woow thanks!", 255);
  1617.                                             dialog.Send();
  1618.                                             break;
  1619.                                         }
  1620.                                     }
  1621.                                     else
  1622.                                     {
  1623.                                         dialog.Text("Skill Pk War is held during 18:05 to 18:20 you have 15 min to signup ");
  1624.                                         dialog.Option("I don't care.", 255);
  1625.                                         dialog.Send();
  1626.                                         break;
  1627.                                     }
  1628.                                     break;
  1629.                                 }
  1630.                         }
  1631.                         break;
  1632.                     }
  1633.                 #endregion
  1634.                 #region SkillPkWinner
  1635.                 case 5017:
  1636.                     {
  1637.                         switch (npcRequest.OptionID)
  1638.                         {
  1639.                             case 0:
  1640.                                 {
  1641.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to Claim Skill PKWar Prize?.");
  1642.                                     dialog.Text("You Should Have 10 SkillPoints so u can be in the top 8Th Champion.");
  1643.                                     dialog.Text("faster than any player else will be in the Top8Champions and obtain Rewards GoodLuck!");
  1644.                                     dialog.Option("Yes Please", 1);
  1645.                                     dialog.Option("I don't care.", 255);
  1646.                                     dialog.Send();
  1647.                                     break;//TQ
  1648.                                 }
  1649.                             case 1:
  1650.                                 {
  1651.                                     if (DateTime.Now.Hour == 18 && DateTime.Now.Minute >= 5 && DateTime.Now.Minute < 20)
  1652.                                     {
  1653.                                         if (client.skillpoints >= 10)
  1654.                                         {
  1655.                                             if (Program.SkillPkRank < 8)
  1656.                                             {
  1657.                                                 Program.SkillPkRank++;
  1658.                                                 Game.Tournaments.SkillTournament.ObtinedReward(client);
  1659.                                                 client.Entity.Teleport(1002, 391, 371);
  1660.                                             }
  1661.                                             else
  1662.                                             {
  1663.                                                 client.Entity.ConquerPoints += 5000000;
  1664.                                                 client.Entity.Teleport(1002, 391, 371);
  1665.                                                 dialog.Text("Sorry you late there was Top8Champions Already but u got 5kk cps as gift ");
  1666.                                                 dialog.Option("Thanks.", 255);
  1667.                                                 dialog.Send();
  1668.                                             }
  1669.  
  1670.                                         }
  1671.                                         else
  1672.                                         {
  1673.                                             dialog.Text("Sorry you dont have 10 Skill Points yet come again later ");
  1674.                                             dialog.Option("sorry.", 255);
  1675.                                             dialog.Send();
  1676.                                         }
  1677.                                     }
  1678.                                     else
  1679.                                     {
  1680.                                         dialog.Text("sorry you can only claim prize btw 19:05 to 19:20 ");
  1681.                                         dialog.Option("I don't care.", 255);
  1682.                                         dialog.Send();
  1683.                                         break;
  1684.                                     }
  1685.                                     break;
  1686.                                 }
  1687.                         }
  1688.                         break;
  1689.                     }
  1690.                 #endregion
  1691. //------------------------------//
  1692. #region TeamPkWinner
  1693.                 case 50160:
  1694.                     {
  1695.                         switch (npcRequest.OptionID)
  1696.                         {
  1697.                             case 0:
  1698.                                 {
  1699.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to Claim Team PKWar Prize?.");
  1700.                                     dialog.Text("You Should Have 20 TeamPoints so u can be in the top 8Th Champion.");
  1701.                                     dialog.Text("faster than any player else will be in the Top8Champions and obtain Rewards GoodLuck!");
  1702.                                     dialog.Option("Yes Please", 1);
  1703.                                     dialog.Option("I don't care.", 255);
  1704.                                     dialog.Send();
  1705.                                     break;
  1706.                                 }
  1707.                             case 1:
  1708.                                 {
  1709.                                     if (DateTime.Now.Hour == 16 && DateTime.Now.Minute >= 5 && DateTime.Now.Minute < 20)
  1710.                                     {
  1711.                                         if (client.teampoints >= 20)
  1712.                                         {
  1713.                                             if (Program.TeamRank < 8)
  1714.                                             {
  1715.                                                 Program.TeamRank++;
  1716.                                                 Game.Tournaments.TeamTournament.ObtinedReward(client);
  1717.                                                 client.Entity.Teleport(1002, 391, 371);
  1718.                                             }
  1719.                                             else
  1720.                                             {
  1721.                                                 client.Entity.ConquerPoints += 5000000;
  1722.                                                 client.Entity.Teleport(1002, 391, 371);
  1723.                                                 dialog.Text("Sorry you late there was Top8Champions Already but u got 5kk cps as gift ");
  1724.                                                 dialog.Option("Thanks.", 255);
  1725.                                                 dialog.Send();
  1726.                                             }
  1727.  
  1728.                                         }
  1729.                                         else
  1730.                                         {
  1731.                                             dialog.Text("Sorry you dont have 20 Elite Points yet come again later ");
  1732.                                             dialog.Option("sorry.", 255);
  1733.                                             dialog.Send();
  1734.                                         }
  1735.                                     }
  1736.                                     else
  1737.                                     {
  1738.                                         dialog.Text("sorry you can only claim prize btw 16:05 to 16:20 ");
  1739.                                         dialog.Option("I don't care.", 255);
  1740.                                         dialog.Send();
  1741.                                         break;
  1742.                                     }
  1743.                                     break;
  1744.                                 }
  1745.                         }
  1746.                         break;
  1747.                     }
  1748.                 #endregion
  1749.                 #region TeamPk
  1750.                 case 50150:
  1751.                     {
  1752.                         switch (npcRequest.OptionID)
  1753.                         {
  1754.                             case 0:
  1755.                                 {
  1756.                                     dialog.Text("Hey there " + client.Entity.Name + " Would you like to join Team PKWar?.");
  1757.                                     dialog.Text("you can SignUp during 16:05 to 16:20 and first 8 Players will get 20 Points.");
  1758.                                     dialog.Text("faster than any player else will be in the Top8Champions and obtain Rewards GoodLuck!");
  1759.                                     dialog.Option("Yes Please", 1);
  1760.                                     dialog.Option("I don't care.", 255);
  1761.                                     dialog.Send();
  1762.                                     break;
  1763.                                 }
  1764.                             case 1:
  1765.                                 {
  1766.                                     if (DateTime.Now.Hour == 16 && DateTime.Now.Minute >= 5 && DateTime.Now.Minute < 20)
  1767.                                     {
  1768.                                         if (client.Entity.ContainsFlag(Update.Flags.Ride))
  1769.                                         {
  1770.                                             client.Entity.RemoveFlag(Update.Flags.Ride);
  1771.                                         }
  1772.                                         if (!Game.Tournaments.TeamTournament.Top8.ContainsKey(client.Entity.UID))
  1773.                                         {
  1774.                                             Game.Tournaments.TeamTournament.AddMap(client);
  1775.                                         }
  1776.                                         else
  1777.                                         {
  1778.                                             dialog.Text("SORRY you cant signup again you already in top8 List ");
  1779.                                             dialog.Option("Woow thanks!", 255);
  1780.                                             dialog.Send();
  1781.                                             break;
  1782.                                         }
  1783.                                     }
  1784.                                     else
  1785.                                     {
  1786.                                         dialog.Text("TeamPk War is held during 16:05 to 16:20 you have 15 min to signup ");
  1787.                                         dialog.Option("I don't care.", 255);
  1788.                                         dialog.Send();
  1789.                                         break;
  1790.                                     }
  1791.                                     break;
  1792.                                 }
  1793.                         }
  1794.                         break;
  1795.                     }
  1796.                 #endregion
  1797. //------------------------------//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement