#region Winner BigBosses
case 789622:
{
switch (npcRequest.OptionID)
{
case 0:
{
client.Entity.Update(_String.Effect, "scene_app", true);
dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
int alive = 0;
foreach (Client.GameClient Entitys in Kernel.GamePool.Values)
if (Entitys.Entity.MapID == 1707 && (!Entitys.Entity.Dead))
alive++;
if (DateTime.Now.Minute >= 12 && DateTime.Now.Minute <= 13)
{
if (alive == 1)
{
client.Entity.Update(_String.Effect, "break_start", true);
client.Entity.ConquerPoints += 10000000;
Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " claimed the prize 15000000 ConquerPoints for winning the [Top] Conquer Pk War and Receive New Wing In His WardRobe.", System.Drawing.Color.Black, Message.Talk), Program.GamePool);
client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 302, 278);
EntityTable.SaveEntity(client);
}
else
{
dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:12 To xx:13 ");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion