كود:
#region GuildWar
if (GuildWar.IsWar)
{
if (Time32.Now > GuildWar.ScoreSendStamp.AddSeconds(3))
{
GuildWar.ScoreSendStamp = Time32.Now;
GuildWar.SendScores();
}
if (!GuildWar.Flame10th)
{
if (Now64.DayOfWeek == DayOfWeek.Friday && Now64.Hour == 21 && Now64.Minute == 55)
{
GuildWar.Flame10th = true;
Kernel.SendWorldMessage(new Message("You can now light the 10thFlame!", Color.White, Message.Center), Program.GamePool);
}
}
}
if (Now64.DayOfWeek == DayOfWeek.Friday && Now64.Hour == 20 && Now64.Second == 00)
{
if (!GuildWar.IsWar)
{
GuildWar.Start();
foreach (var client in Program.GamePool)
if (client.Entity.GuildID != 0)
client.MessageBox("GuildWar , Has Began . Would you like to join it ? ELTAYAR_Project !",
p => { p.Entity.Teleport(1002, 224, 237); }, null);
}
}
if (GuildWar.IsWar)
{
if (Now64.DayOfWeek == DayOfWeek.Friday && Now64.Hour == 22 && Now64.Second <= 2)
{
GuildWar.Flame10th = false;
GuildWar.End();
}
}
#endregion
#region DTM