|
|
private void WorldTournaments(int time)
{
private void WorldTournaments(int time)
{
Time32 Now = new Time32(time);
DateTime Now64 = DateTime.Now;
#region Elite GW
if (!Game.EliteGuildWar.IsWar)
{
if (Now64.Minute == 44 && Now64.Second == 12)
{
Game.EliteGuildWar.Start();
foreach (var client in Program.Values)
client.MessageBox("EliteGuildWar Begin Want Join ?",
p => { p.Player.Teleport(1002, 285, 158); }, null);
}
}
if (Game.EliteGuildWar.IsWar)
{
if (Time32.Now > Game.EliteGuildWar.ScoreSendStamp.AddSeconds(3))
{
Game.EliteGuildWar.ScoreSendStamp = Time32.Now;
Game.EliteGuildWar.SendScores();
}
if (Now64.Minute == 54 && Now64.Second <= 10)
{
Kernel.SendWorldMessage(new Network.GamePackets.Message("Elite GuildWar will closed 5 Minutes left till End Hurry kick other Guild's.", System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.Values);
}
}
if (Game.EliteGuildWar.IsWar)
{
if (Now64.Minute == 58 && Now64.Second == 59)
{
Game.EliteGuildWar.End();
{
Kernel.SendWorldMessage(new Network.GamePackets.Message("EliteGuiLD War Ended.", System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.Values);
}
}
}
#endregion
|
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|