private void WorldTournaments(int time)
#region GuildWar if (GuildWar.IsWar) { if (Time32.Now > GuildWar.ScoreSendStamp.AddSeconds(3)) { GuildWar.ScoreSendStamp = Time32.Now; GuildWar.SendScores(); } } if ((Now64.Hour >= 00 && Now64.Hour <= 21) && Now64.DayOfWeek == DayOfWeek.Sunday) { if (!GuildWar.IsWar) { GuildWar.Start(); foreach (Client.GameState client in Kernel.GamePool.Values) { if (client.Map.BaseID != 6001 && client.Map.BaseID != 6000 && !client.Entity.Dead) { EventAlert alert = new EventAlert { StrResID = 10515, Countdown = 60, UK12 = 1 }; client.Entity.StrResID = 10515; client.Send(alert); } } } } if (GuildWar.IsWar) { if (Now64.Hour == 22 && Now64.Second <= 00) { GuildWar.Flame10th = false; GuildWar.End(); } } #endregion #region GuildWar if ((Now64.Hour == 21 && Now64.Minute == 00 && Now64.Second == 00) && (Now64.DayOfWeek == DayOfWeek.Sunday)) { Kernel.SendWorldMessage(new Message("Guild War now work will end at 22:00 Server time have Chance To Get [500.000 Cps] !", Color.White, Message.BroadcastMessage), Program.Values); foreach (var client in Program.Values) client.MessageBox(" Guild War now work will end at 22:00 Server time?", p => { p.Entity.Teleport(1002, 224, 237); }, null, 20); } #endregion