SHARE
TWEET

Untitled

a guest Oct 21st, 2019 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #region TreasureBox
  2.             if ((Now64.Minute == 32) && (Now64.Second == 01))
  3.             {
  4.                 TreasureBox.OnGoing = true;
  5.                 for (int i = 0; i < 10; i++)
  6.                     Game.TreasureBox.Generate();
  7.                 Kernel.SendWorldMessage(new Message("The Lost TreasureBox event began!", Color.Red, Message.Center));
  8.  
  9.                 foreach (var client in Program.Values)
  10.                     client.MessageBox("Lost treasure box event has started! Would you like to join? [Prize: 5kk or 1 kk  CPs or more]",
  11.                         (p) => { p.Player.Teleport(1002, 300, 229); }, null);
  12.             }
  13.             if (TreasureBox.OnGoing)
  14.             {
  15.                 Game.TreasureBox.Generate();
  16.             }
  17.             if ((Now64.Minute == 37) && TreasureBox.OnGoing)
  18.             {
  19.                 TreasureBox.OnGoing = false;
  20.                 foreach (var client in Program.Values)
  21.                     if (client.Player.MapID == 3820)
  22.                         client.Player.Teleport(1002, 302, 286);
  23.                 Kernel.SendWorldMessage(new Message("The Lost TreasureBox event ended!", Color.Red, Message.Center));
  24.             }
  25.             #endregion
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top