Untitled


SUBMITTED BY: Guest

DATE: Aug. 28, 2017, 2:58 a.m.

FORMAT: Text only

SIZE: 3.5 kB

HITS: 438

  1. #region Winner BigBosses
  2. case 789622:
  3. {
  4. switch (npcRequest.OptionID)
  5. {
  6. case 0:
  7. {
  8. client.Entity.Update(_String.Effect, "scene_app", true);
  9. dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
  10. dialog.Option("Yes Please", 1);
  11. dialog.Option("I don't care.", 255);
  12. dialog.Send();
  13. break;
  14. }
  15. case 1:
  16. {
  17. int alive = 0;
  18. foreach (Client.GameClient Entitys in Kernel.GamePool.Values)
  19. if (Entitys.Entity.MapID == 1707 && (!Entitys.Entity.Dead))
  20. alive++;
  21. if (DateTime.Now.Minute >= 12 && DateTime.Now.Minute <= 13)
  22. {
  23. if (alive == 1)
  24. {
  25. client.Entity.Update(_String.Effect, "break_start", true);
  26. client.Entity.ConquerPoints += 10000000;
  27. 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);
  28. client.Entity.SendSpawn(client, true);
  29. client.Entity.Teleport(1002, 302, 278);
  30. EntityTable.SaveEntity(client);
  31. }
  32. else
  33. {
  34. dialog.Text("There are still " + alive + " players in the map kill it first to claim prize!");
  35. dialog.Option("okay", 255);
  36. dialog.Send();
  37. break;
  38. }
  39. }
  40. else
  41. {
  42. dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after xx:12 To xx:13 ");
  43. dialog.Option("okay", 255);
  44. dialog.Send();
  45. break;
  46. }
  47. break;
  48. }
  49. }
  50. break;
  51. }
  52. #endregion

comments powered by Disqus