|
المشاركات 1,993 |
+التقييم 1.00 |
تاريخ التسجيل Jun 2019 |
الاقامة |
نظام التشغيل ويندوز 0 |
رقم العضوية 279 |
#region GuildWar Friday
if (!Game.GuildWar.IsWar)
{
if (Now64.DayOfWeek == DayOfWeek.Friday && Now64.Hour == 19 && Now64.Minute >= 00)
{
Game.GuildWar.Start();
foreach (var client in Program.GamePool)
if (client.Player.GuildID != 0)
client.MessageBox("GuildWar Has Started Now Will Finish 9:00 PM",
p => { p.Player.Teleport(1002, 224, 237); }, null, 20);
}
}
if (Game.GuildWar.IsWar)
{
if (Time32.Now > Game.GuildWar.ScoreSendStamp.AddSeconds(3))
{
Game.GuildWar.ScoreSendStamp = Time32.Now;
Game.GuildWar.SendScores();
}
if (Now64.DayOfWeek == DayOfWeek.Friday && Now64.Hour == 21 && Now64.Minute == 50 && Now64.Second <= 2)
{
Kernel.SendWorldMessage(new Network.GamePackets.Message("GuildWar Has will closed 10 Minutes go all Pola and ready to finish",
System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.GamePool);
}
else if (GuildWar.IsWar)
{
if (Now64.DayOfWeek == DayOfWeek.Friday && Now64.Hour == 21 && Now64.Minute == 00 && Now64.Second == 00)
{
GuildWar.End();
}
}
}
#endregion
#region GuildWar Saturday
if (!Game.GuildWar.IsWar)
{
if (Now64.DayOfWeek == DayOfWeek.Saturday && Now64.Hour == 19 && Now64.Minute >= 00)
{
Game.GuildWar.Start();
foreach (var client in Program.GamePool)
if (client.Player.GuildID != 0)
client.MessageBox("GuildWar Has Started Now Will Finish 9:00 PM",
p => { p.Player.Teleport(1002, 224, 237); }, null, 20);
}
}
if (Game.GuildWar.IsWar)
{
if (Time32.Now > Game.GuildWar.ScoreSendStamp.AddSeconds(3))
{
Game.GuildWar.ScoreSendStamp = Time32.Now;
Game.GuildWar.SendScores();
}
if (Now64.DayOfWeek == DayOfWeek.Saturday && Now64.Hour == 21 && Now64.Minute == 50 && Now64.Second <= 2)
{
Kernel.SendWorldMessage(new Network.GamePackets.Message("GuildWar Has will closed 10 Minutes go all Pola and ready to finish",
System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.GamePool);
}
else if (GuildWar.IsWar)
{
if (Now64.DayOfWeek == DayOfWeek.Saturday && Now64.Hour == 21 && Now64.Minute == 00 && Now64.Second == 00)
{
GuildWar.End();
}
}
}
#endregion
#region GuildWar Sunday
if (!Game.GuildWar.IsWar)
{
if (Now64.DayOfWeek == DayOfWeek.Sunday && Now64.Hour == 19 && Now64.Minute >= 00)
{
Game.GuildWar.Start();
foreach (var client in Program.GamePool)
if (client.Player.GuildID != 0)
client.MessageBox("GuildWar Has Started Now Will Finish 9.00 PM",
p => { p.Player.Teleport(1002, 224, 237); }, null, 20);
}
}
if (Game.GuildWar.IsWar)
{
if (Time32.Now > Game.GuildWar.ScoreSendStamp.AddSeconds(3))
{
Game.GuildWar.ScoreSendStamp = Time32.Now;
Game.GuildWar.SendScores();
}
if (Now64.DayOfWeek == DayOfWeek.Sunday && Now64.Hour == 21 && Now64.Minute == 50 && Now64.Second <= 2)
{
Kernel.SendWorldMessage(new Network.GamePackets.Message("GuildWar Has will closed 10 Minutes go all Pola and ready to finish",
System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.GamePool);
}
else if (GuildWar.IsWar)
{
if (Now64.DayOfWeek == DayOfWeek.Sunday && Now64.Hour == 21 && Now64.Minute == 00 && Now64.Second == 00)
{
GuildWar.End();
}
}
}
#endregion
#region GuildWar Monday
if (!Game.GuildWar.IsWar)
{
if (Now64.DayOfWeek == DayOfWeek.Monday && Now64.Hour == 19 && Now64.Minute >= 00)
{
Game.GuildWar.Start();
foreach (var client in Program.GamePool)
if (client.Player.GuildID != 0)
client.MessageBox("GuildWar Has Started Now Will Finish 9:00 PM",
p => { p.Player.Teleport(1002, 224, 237); }, null, 20);
}
}
if (Game.GuildWar.IsWar)
{
if (Time32.Now > Game.GuildWar.ScoreSendStamp.AddSeconds(3))
{
Game.GuildWar.ScoreSendStamp = Time32.Now;
Game.GuildWar.SendScores();
}
if (Now64.DayOfWeek == DayOfWeek.Monday && Now64.Hour == 21 && Now64.Minute == 50 && Now64.Second <= 2)
{
Kernel.SendWorldMessage(new Network.GamePackets.Message("GuildWar Has will closed 10 Minutes go all Pola and ready to finish",
System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.GamePool);
}
else if (GuildWar.IsWar)
{
if (Now64.DayOfWeek == DayOfWeek.Monday && Now64.Hour == 21 && Now64.Minute == 00 && Now64.Second == 00)
{
GuildWar.End();
}
}
}
#endregion
#region GuildWar Tuesday
if (!Game.GuildWar.IsWar)
{
if (Now64.DayOfWeek == DayOfWeek.Tuesday && Now64.Hour == 19 && Now64.Minute >= 00)
{
Game.GuildWar.Start();
foreach (var client in Program.GamePool)
if (client.Player.GuildID != 0)
client.MessageBox("GuildWar Has Started Now Will Finish 9:00 PM",
p => { p.Player.Teleport(1002, 224, 237); }, null, 20);
}
}
if (Game.GuildWar.IsWar)
{
if (Time32.Now > Game.GuildWar.ScoreSendStamp.AddSeconds(3))
{
Game.GuildWar.ScoreSendStamp = Time32.Now;
Game.GuildWar.SendScores();
}
if (Now64.DayOfWeek == DayOfWeek.Tuesday && Now64.Hour == 21 && Now64.Minute == 50 && Now64.Second <= 2)
{
Kernel.SendWorldMessage(new Network.GamePackets.Message("GuildWar Has will closed 10 Minutes go all Pola and ready to finish",
System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.GamePool);
}
else if (GuildWar.IsWar)
{
if (Now64.DayOfWeek == DayOfWeek.Tuesday && Now64.Hour == 21 && Now64.Minute == 00 && Now64.Second == 00)
{
GuildWar.End();
}
}
}
#endregion
#region GuildWar Wednesday
if (!Game.GuildWar.IsWar)
{
if (Now64.DayOfWeek == DayOfWeek.Friday && Now64.Hour == 19 && Now64.Minute >= 00)
{
Game.GuildWar.Start();
foreach (var client in Program.GamePool)
if (client.Player.GuildID != 0)
client.MessageBox("GuildWar Has Started Now Will Finish 9:00 PM",
p => { p.Player.Teleport(1002, 224, 237); }, null, 20);
}
}
if (Game.GuildWar.IsWar)
{
if (Time32.Now > Game.GuildWar.ScoreSendStamp.AddSeconds(3))
{
Game.GuildWar.ScoreSendStamp = Time32.Now;
Game.GuildWar.SendScores();
}
if (Now64.DayOfWeek == DayOfWeek.Wednesday && Now64.Hour == 21 && Now64.Minute == 50 && Now64.Second <= 2)
{
Kernel.SendWorldMessage(new Network.GamePackets.Message("GuildWar Has will closed 10 Minutes go all Pola and ready to finish",
System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.GamePool);
}
else if (GuildWar.IsWar)
{
if (Now64.DayOfWeek == DayOfWeek.Wednesday && Now64.Hour == 21 && Now64.Minute == 00 && Now64.Second == 00)
{
GuildWar.End();
}
}
}
#endregion
#region GuildWar Thursday
if (!Game.GuildWar.IsWar)
{
if (Now64.DayOfWeek == DayOfWeek.Thursday && Now64.Hour == 19 && Now64.Minute >= 00)
{
Game.GuildWar.Start();
foreach (var client in Program.GamePool)
if (client.Player.GuildID != 0)
client.MessageBox("GuildWar Has Started Now Will Finish 9:00 PM",
p => { p.Player.Teleport(1002, 224, 237); }, null, 20);
}
}
if (Game.GuildWar.IsWar)
{
if (Time32.Now > Game.GuildWar.ScoreSendStamp.AddSeconds(3))
{
Game.GuildWar.ScoreSendStamp = Time32.Now;
Game.GuildWar.SendScores();
}
if (Now64.DayOfWeek == DayOfWeek.Thursday && Now64.Hour == 21 && Now64.Minute == 50 && Now64.Second <= 2)
{
Kernel.SendWorldMessage(new Network.GamePackets.Message("GuildWar Has will closed 10 Minutes go all Pola and ready to finish",
System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.GamePool);
}
else if (GuildWar.IsWar)
{
if (Now64.DayOfWeek == DayOfWeek.Thursday && Now64.Hour == 21 && Now64.Minute == 00 && Now64.Second == 00)
{
GuildWar.End();
}
}
}
#endregion
هتاقي الكود دا
if (Now64.DayOfWeek == DayOfWeek.Friday && Now64.Hour == 19 && Now64.Minute >= 00)
رقم 19
دا الوقت الي بيبدا فيه
الكود دا
client.MessageBox("GuildWar Has Started Now Will Finish 9:00 PM",
لو انات هتغير الوقت الي بيخلص فيه لازم تعدل علي رقم 9 دا
طيب اعدل علي الوقت الي بيخلص فيه ازاي
كود
if (Now64.DayOfWeek == DayOfWeek.Wednesday && Now64.Hour == 21 && Now64.Minute == 50 && Now64.Second <= 2)
وا كود
if (Now64.DayOfWeek == DayOfWeek.Wednesday && Now64.Hour == 21 && Now64.Minute == 00 && Now64.Second == 00)
رقم 21دا الي بيخلص فيه
#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 && Now64.DayOfWeek == DayOfWeek.Monday)
{
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
&& Now64.DayOfWeek == DayOfWeek.Monday
#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 && now64.dayofweek == dayofweek.monday)
{
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
&& now64.dayofweek == dayofweek.monday
الذين يشاهدون محتوى الموضوع الآن : 2 ( الأعضاء 0 والزوار 2) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
مشكلة في عمود الوار | ElSaher | مشكلات السيرفيرات كونكر الشخصيه | 6 | 2020-03-09 01:34 PM |
مشكلة باب الوار | ahmedfathy | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-02-05 06:09 PM |
حل مشكلة باب الوار | ahmedfathy | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-11-01 10:41 PM |
عايز اخلي الوار كل يوم | ElSaher | مشكلات السيرفيرات كونكر الشخصيه | 7 | 2019-07-25 03:15 AM |
خلي vip 6 يعمل شوب في اي مكان | محمد ياسر | تطوير سيرفرات كونكر | 3 | 2019-04-22 12:21 PM |