|
المشاركات 114 |
+التقييم 0.07 |
تاريخ التسجيل Jan 2020 |
الاقامة |
نظام التشغيل |
رقم العضوية 3394 |
#region Elite PK Tournament
if (Now64.DayOfWeek == DayOfWeek.Tuesday && Now64.Hour == 18 && Now64.Minute >= 55 && !ElitePKTournament.TimersRegistered)
{
ElitePKTournament.RegisterTimers();
ElitePKBrackets brackets = new ElitePKBrackets(true, 0);
brackets.Type = ElitePKBrackets.EPK_State;
brackets.OnGoing = true;
foreach (var client in Program.Values)
{
client.ClaimedElitePk = 0;
client.Send(brackets);
foreach (Client.GameState Client in Kernel.GamePool.Values)
{
if (client.Map.BaseID != 6001 && client.Map.BaseID != 6000 && !client.Player.Dead)
{
EventAlert alert = new EventAlert
{
StrResID = 10533,
Countdown = 60,
UK12 = 1
};
client.Player.StrResID = 10533;
client.Send(alert);
}
}
#region RemoveTopElite
var EliteChampion = Network.GamePackets.TitlePacket.Titles.ElitePKCham ption_High;
var EliteSecond = Network.GamePackets.TitlePacket.Titles.ElitePK2ndP lace_High;
var EliteThird = Network.GamePackets.TitlePacket.Titles.ElitePK3ndP lace_High;
var EliteEightChampion = Network.GamePackets.TitlePacket.Titles.ElitePKCham ption_Low;
var EliteEightSecond = Network.GamePackets.TitlePacket.Titles.ElitePK2ndP lace_Low;
var EliteEightThird = Network.GamePackets.TitlePacket.Titles.ElitePK3ndP lace_Low;
var EliteEight = Network.GamePackets.TitlePacket.Titles.ElitePKTopE ight_Low;
if (client.Player.Titles.ContainsKey(EliteChampion))
client.Player.RemoveTopStatus((ulong)EliteChampion );
if (client.Player.Titles.ContainsKey(EliteSecond))
client.Player.RemoveTopStatus((ulong)EliteSecond);
if (client.Player.Titles.ContainsKey(EliteThird))
client.Player.RemoveTopStatus((ulong)EliteThird);
if (client.Player.Titles.ContainsKey(EliteEightChampi on))
client.Player.RemoveTopStatus((ulong)EliteEightCha mpion);
if (client.Player.Titles.ContainsKey(EliteEightSecond ))
client.Player.RemoveTopStatus((ulong)EliteEightSec ond);
if (client.Player.Titles.ContainsKey(EliteEightThird) )
client.Player.RemoveTopStatus((ulong)EliteEightThi rd);
if (client.Player.Titles.ContainsKey(EliteEight))
client.Player.RemoveTopStatus((ulong)EliteEight);
#endregion
}
}
if ((((Now64.Hour == ElitePK.EventTime + 1)) && Now64.Minute >= 10) && ElitePKTournament.TimersRegistered)
{
bool done = true;
foreach (var epk in ElitePKTournament.Tournaments)
if (epk.Players.Count != 0)
done = false;
if (done)
{
ElitePKTournament.TimersRegistered = false;
ElitePKBrackets brackets = new ElitePKBrackets(true, 0);
brackets.Type = ElitePKBrackets.EPK_State;
brackets.OnGoing = false;
foreach (var client in Program.Values)
client.Send(brackets);
}
}
#endregion
#region Elite PK Tournament
if (Now64.DayOfWeek == DayOfWeek.Tuesday && Now64.Hour == 18 && Now64.Minute >= 55 && !ElitePKTournament.TimersRegistered)
{
ElitePKTournament.RegisterTimers();
ElitePKBrackets brackets = new ElitePKBrackets(true, 0);
brackets.Type = ElitePKBrackets.EPK_State;
brackets.OnGoing = true;
foreach (var client in Program.Values)
{
client.ClaimedElitePk = 0;
client.Send(brackets);
foreach (Client.GameState Client in Kernel.GamePool.Values)
{
if (client.Map.BaseID != 6001 && client.Map.BaseID != 6000 && !client.Player.Dead)
{
EventAlert alert = new EventAlert
{
StrResID = 10533,
Countdown = 60,
UK12 = 1
};
client.Player.StrResID = 10533;
client.Send(alert);
}
}
#region RemoveTopElite
var EliteChampion = Network.GamePackets.TitlePacket.Titles.ElitePKCham ption_High;
var EliteSecond = Network.GamePackets.TitlePacket.Titles.ElitePK2ndP lace_High;
var EliteThird = Network.GamePackets.TitlePacket.Titles.ElitePK3ndP lace_High;
var EliteEightChampion = Network.GamePackets.TitlePacket.Titles.ElitePKCham ption_Low;
var EliteEightSecond = Network.GamePackets.TitlePacket.Titles.ElitePK2ndP lace_Low;
var EliteEightThird = Network.GamePackets.TitlePacket.Titles.ElitePK3ndP lace_Low;
var EliteEight = Network.GamePackets.TitlePacket.Titles.ElitePKTopE ight_Low;
if (client.Player.Titles.ContainsKey(EliteChampion))
client.Player.RemoveTopStatus((ulong)EliteChampion );
if (client.Player.Titles.ContainsKey(EliteSecond))
client.Player.RemoveTopStatus((ulong)EliteSecond);
if (client.Player.Titles.ContainsKey(EliteThird))
client.Player.RemoveTopStatus((ulong)EliteThird);
if (client.Player.Titles.ContainsKey(EliteEightChampi on))
client.Player.RemoveTopStatus((ulong)EliteEightCha mpion);
if (client.Player.Titles.ContainsKey(EliteEightSecond ))
client.Player.RemoveTopStatus((ulong)EliteEightSec ond);
if (client.Player.Titles.ContainsKey(EliteEightThird) )
client.Player.RemoveTopStatus((ulong)EliteEightThi rd);
if (client.Player.Titles.ContainsKey(EliteEight))
client.Player.RemoveTopStatus((ulong)EliteEight);
#endregion
}
}
if ((((Now64.Hour == ElitePK.EventTime + 1)) && Now64.Minute >= 10) && ElitePKTournament.TimersRegistered)
{
bool done = true;
foreach (var epk in ElitePKTournament.Tournaments)
if (epk.Players.Count != 0)
done = false;
if (done)
{
ElitePKTournament.TimersRegistered = false;
ElitePKBrackets brackets = new ElitePKBrackets(true, 0);
brackets.Type = ElitePKBrackets.EPK_State;
brackets.OnGoing = false;
foreach (var client in Program.Values)
client.Send(brackets);
}
}
#endregion
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
محتاج npc تغير باسورد الايميل | abdocoder | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-05-08 11:20 PM |
مشكلة ف رنك الاسكل تيم والتيم بك | abdocoder | مشكلات السيرفيرات كونكر الشخصيه | 7 | 2020-05-03 12:41 PM |
بخصوص الاضافة بتاعت التيم والاسكل تيم بكيه | nova | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2020-04-07 06:34 PM |
مشكله الاليت بكي والأسكل تيم بكي والتيم بكي | Tyranny-Team's | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-04-06 08:00 AM |
مشكلة ف الاسكل بك والتيم بك والاليت بك | nova | مشكلات السيرفيرات كونكر الشخصيه | 7 | 2019-12-01 06:09 PM |