المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ممكن حد يخوش يساعدني


469fb2a7c3
2019-12-23, 11:42 PM
عايز اعمل الوير يوم الجمعه ممكن حد يقولي ازي

Tefa
2019-12-24, 04:35 AM
world.cs
ابحث عن
#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