#region Winner GentleWar case 333328: { 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);//tomm210 dialog.Send(); break; } case 1: { int alive = 0; foreach (Client.GameClient Entitys in Kernel.GamePool.Values) if (Entitys.Entity.MapID == 9391 && (!Entitys.Entity.Dead)) alive++; if (DateTime.Now.Minute >= 19 && DateTime.Now.Minute <= 20) { 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:19 To xx:20 "); dialog.Option("okay", 255); dialog.Send(); break; } break; } } break; } #endregion