|
#region Guildwar
#region Guildwar
#region GuildWar Pk
if ((DateTime.Now.Hour == 20 && DateTime.Now.Minute == 00 && DateTime.Now.Second == 0))
{
Kernel.SendWorldMessage(new Message("GuildWar has begun! GuildWar End At 21.00", Color.White, Message.Center), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("GuildWar has begun! Would you like to join?",
(p) => { p.Player.Teleport(1002, 224, 237); }, null, 60);
}
#endregion
#region GuildWar Friday
if (GuildWar.IsWar)
{
if (Time32.Now > GuildWar.ScoreSendStamp.AddSeconds(5))
{
GuildWar.ScoreSendStamp = Time32.Now;
GuildWar.SendScores();
}
}
if (Now64.DayOfWeek == DayOfWeek.Friday)
{
if (Now64.Hour > 19 && Now64.Hour <= 20)
{
if (!GuildWar.IsWar)
{
GuildWar.Start();
foreach (Client.GameState client in Kernel.GamePool.Values)
{
if (client.Map.BaseID != 6001 && client.Map.BaseID != 6000 && !client.Player.Dead)
{
AutoInvite alert = new AutoInvite
{
StrResID = (uint)AutoInvite.Mode.GuildWar,
Countdown = 60,
Action = 1
};
client.Player.StrResID = (uint)AutoInvite.Mode.GuildWar;
client.Send(alert.ToArray());
}
}
}
}
}
if (GuildWar.IsWar)
{
if (Now64.Hour == 21 && Now64.Second <= 2)
{
GuildWar.Flame10th = false;
GuildWar.End();
}
}
#endregion
#endregion
#region Guildwar
#region Guildwar
#region GuildWar Pk
if ((DateTime.Now.Hour == 20 && DateTime.Now.Minute == 00 && DateTime.Now.Second == 0))
{
Kernel.SendWorldMessage(new Message("GuildWar has begun! GuildWar End At 21.00", Color.White, Message.Center), Program.Values);
foreach (var client in Program.Values)
client.MessageBox("GuildWar has begun! Would you like to join?",
(p) => { p.Player.Teleport(1002, 224, 237); }, null, 60);
}
#endregion
#region GuildWar Friday
if (GuildWar.IsWar)
{
if (Time32.Now > GuildWar.ScoreSendStamp.AddSeconds(5))
{
GuildWar.ScoreSendStamp = Time32.Now;
GuildWar.SendScores();
}
}
if (Now64.DayOfWeek == DayOfWeek.Friday)
{
if (Now64.Hour > 19 && Now64.Hour <= 20)
{
if (!GuildWar.IsWar)
{
GuildWar.Start();
foreach (Client.GameState client in Kernel.GamePool.Values)
{
if (client.Map.BaseID != 6001 && client.Map.BaseID != 6000 && !client.Player.Dead)
{
AutoInvite alert = new AutoInvite
{
StrResID = (uint)AutoInvite.Mode.GuildWar,
Countdown = 60,
Action = 1
};
client.Player.StrResID = (uint)AutoInvite.Mode.GuildWar;
client.Send(alert.ToArray());
}
}
}
}
}
if (GuildWar.IsWar)
{
if (Now64.Hour == 21 && Now64.Second <= 2)
{
GuildWar.Flame10th = false;
GuildWar.End();
}
}
#endregion
#endregion
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
اى حد معاه مشكله فى السورس الاسبانى يخوش هنا | Mr. Co | تطوير سيرفرات كونكر | 13 | 2023-12-27 07:16 AM |
التيم الاسكل الاليت الي عندو مشاكل فيهم يخوش هنااا | ElSaher | تطوير سيرفرات كونكر | 15 | 2023-06-29 09:19 PM |
ممكن حد يساعدني | 469fb2a7c3 | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-12-11 06:44 PM |
ياريت اي حد يساعدني | Omar Mohamed100 | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2019-11-04 10:47 PM |
بسرعه يا ريت حد يساعدني | سمير | مشكلات السيرفيرات كونكر الشخصيه | 6 | 2019-11-02 12:55 PM |