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

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


AdhamMohamed
2020-02-22, 04:14 AM
يجدعان بليز محتاج اغير المعاد بيتاع الاسكل والتيم والاليت بكيه

عاوز الاسكل تيم بكيه يوم الاحد من الساعه 19.55

الكود اهو

#region SkillTeamPk
if (((Now64.Hour == SkillPk.EventTime) && Now64.Minute >= 55) && !SkillPk.SkillTournament.Opened)
Game.Features.Tournaments.SkillPk.SkillTournament. Open();
#endregion

وعاوز التيم بكيه يوم الاثنين الساعه 20.55

الكود اهو

#region TeamPk
if (((Now64.Hour == TeamPk.EventTime) && Now64.Minute >= 55) && !TeamPk.TeamTournament.Opened)
Game.Features.Tournaments.TeamPk.TeamTournament.Op en();
#endregion
#region SkillTeamPk
if (((Now64.Hour == SkillPk.EventTime) && Now64.Minute >= 55) && !SkillPk.SkillTournament.Opened)
Game.Features.Tournaments.SkillPk.SkillTournament. Open();
#endregion

وعاوز اعمل الاليت بكيه يوم الثلاث الساعه 18.55

الكود اهو

#region Elite PK Tournament
if (((Now64.Hour == ElitePK.EventTime) && 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

انا اسف يجدعان معلش محتاجهم ضروري وياريت الموضوع ميتقفلش :detective2:

ElSaher
2020-02-22, 04:34 AM
اتفضل الاليت بكيه اهو


#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

ElSaher
2020-02-22, 04:37 AM
الاسكل تيم بكيه اتفضل

#region SkillTeamPk
if (Now64.DayOfWeek == DayOfWeek.Sunday && Now64.Hour == 19 && Now64.Minute == 55 && Now64.Second <= 0)
Game.Features.Tournaments.SkillPk.SkillTournament. Open();
#endregion

ElSaher
2020-02-22, 04:41 AM
اتفضل التيم اهو


#region TeamPk
if (Now64.DayOfWeek == DayOfWeek.Monday && Now64.Hour == 20 && Now64.Minute == 55 && Now64.Second <= 0)
Game.Features.Tournaments.TeamPk.TeamTournament.Op en();
#endregion