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

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


ElSaher
2020-02-19, 10:11 AM
عايز اخلي الاليت كل يوم الساعه 7


#region ElitePK Tournament
if (Now64.Hour == ElitePK.EventTime && Now64.Minute >= 55 && !ElitePKTournament.TimersRegistered)
{
ElitePKTournament.RegisterTimers();
MsgPKEliteMatchInfo brackets = new MsgPKEliteMatchInfo(true, 0);
brackets.Type = MsgPKEliteMatchInfo.EPK_State;
brackets.OnGoing = true;
foreach (Client.GameState clients in Kernel.GamePool.Values)
{
clients.Player.ClaimedElitePk = false;
}
Player.name = new object[] { "ElitePK Tournament Has Start To SignUp Go To ElitePKEnvoy in TwinCity!?" };
Kernel.SendWorldMessage(new MsgTalk(string.Concat(Player.name), "ALLUSERS", "[ElitePK Tournament]", Color.Red, 2500), Server.GamePool);
foreach (var client in Server.GamePool)
{
if (!client.InQualifier() && client.Map.BaseID != 6001 && client.Map.BaseID != 6000 && !client.Player.Dead)
{
MsgInviteTrans alert = new MsgInviteTrans
{
InviteID = 10533,
Countdown = 60,
Action = 1
};
client.Player.InviteID = 10533;
client.Send(alert.ToArray());
}
#region RemoveTopElite
var EliteChampion = MsgTitle.Titles.ElitePKChamption_High;
var EliteSecond = MsgTitle.Titles.ElitePK2ndPlace_High;
var EliteThird = MsgTitle.Titles.ElitePK3ndPlace_High;
var EliteEightChampion = MsgTitle.Titles.ElitePKChamption_Low;
var EliteEightSecond = MsgTitle.Titles.ElitePK2ndPlace_Low;
var EliteEightThird = MsgTitle.Titles.ElitePK3ndPlace_Low;
var EliteEight = MsgTitle.Titles.ElitePKTopEight_Low;
client.Player.RemoveTopStatus((ulong)Network.GameP ackets.MsgTitle.Titles.ElitePKChamption_High);
client.Player.RemoveTopStatus((ulong)Network.GameP ackets.MsgTitle.Titles.ElitePKChamption_Low);
client.Player.RemoveTopStatus((ulong)Network.GameP ackets.MsgTitle.Titles.ElitePK2ndPlace_High);
client.Player.RemoveTopStatus((ulong)Network.GameP ackets.MsgTitle.Titles.ElitePK2ndPlace_Low);
client.Player.RemoveTopStatus((ulong)Network.GameP ackets.MsgTitle.Titles.ElitePK3ndPlace_High);
client.Player.RemoveTopStatus((ulong)Network.GameP ackets.MsgTitle.Titles.ElitePK3ndPlace_Low);
client.Player.RemoveTopStatus((ulong)Network.GameP ackets.MsgTitle.Titles.ElitePKTopEight_High);
client.Player.RemoveTopStatus((ulong)Network.GameP ackets.MsgTitle.Titles.ElitePKTopEight_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 && ElitePKTournament.TimersRegistered)
{
bool done = true;
foreach (var epk in ElitePKTournament.Tournaments)
if (epk.Players.Count != 0)
done = false;
if (done)
{
ElitePKTournament.TimersRegistered = false;
MsgPKEliteMatchInfo brackets = new MsgPKEliteMatchInfo(true, 0);
brackets.Type = MsgPKEliteMatchInfo.EPK_State;
brackets.OnGoing = false;
foreach (var client in Server.GamePool)
client.Send(brackets);
}
}
#endregion


وا التيم بكيه الساعه 5

#region TeamPk Tournament
if (Now64.DayOfWeek == DayOfWeek.Saturday && Now64.Hour == 18 && Now64.Minute == 55 && Now64.Second <= 0)
{
TeamElitePk.TeamTournament.Open();
foreach (Client.GameState clients in Kernel.GamePool.Values)
{
clients.Player.ClaimedTeamPK = false;
}
Player.name = new object[] { "TeamPk Tournament has started to signup go to TC TeamPkManager in TwinCity!" };
Kernel.SendWorldMessage(new MsgTalk(string.Concat(Player.name), "ALLUSERS", "[TeamPk Tournament]", Color.Red, 2500), Server.GamePool);
foreach (var client in Server.GamePool)
{
if (!client.InQualifier() && client.Map.BaseID != 6001 && client.Map.BaseID != 6000 && !client.Player.Dead)
{
MsgInviteTrans alert = new MsgInviteTrans
{
InviteID = 10543,
Countdown = 60,
Action = 1
};
client.Player.InviteID = 10543;
client.Send(alert.ToArray());
}
}
}
#endregion


وا الاسكل الساعه 9

#region SkillTeamPk Tournament
if (Now64.DayOfWeek == DayOfWeek.Wednesday && Now64.Hour == 19 && Now64.Minute == 45 && Now64.Second <= 0)
{
TeamElitePk.SkillTeamTournament.Open();
foreach (Client.GameState clients in Kernel.GamePool.Values)
{
clients.Player.ClaimedSTeamPK = false;
}
Player.name = new object[] { "SkillTeamPk Tournament has started to signup go to TC SkillTeamPkManager in TwinCity!" };
Kernel.SendWorldMessage(new MsgTalk(string.Concat(Player.name), "ALLUSERS", "[SkillTeamPk Tournament]", Color.Red, 2500), Server.GamePool);
foreach (var client in Server.GamePool)
{
if (!client.InQualifier() && client.Map.BaseID != 6001 && client.Map.BaseID != 6000 && !client.Player.Dead)
{
MsgInviteTrans alert = new MsgInviteTrans
{
InviteID = 10541,
Countdown = 60,
Action = 1
};
client.Player.InviteID = 10541;
client.Send(alert.ToArray());
}
}
}
#endregion

محمد ياسر
2020-02-19, 11:02 AM
كل الحجات ده موجوده عنك لفي القاعده لكلاس فيه كل المواعيد ياعني ده حاجه سهله مستعجب كيف مش عارف تعدلهم

Users
2020-02-19, 04:21 PM
هههههههههههههه فكرتنى بتعليقك على حسن انا عندى شغل كتير وهنزلو
شويه شويه ه شويه شويه هههههههههههههه
لو محدش جاوبك لما افتح الجهاز هعدلهمك

megokarika
2020-02-19, 04:24 PM
هههههههههههههه فكرتنى بتعليقك على حسن انا عندى شغل كتير وهنزلو
شويه شويه ه شويه شويه هههههههههههههه
لو محدش جاوبك لما افتح الجهاز هعدلهمك

سورس حضرتك فيه ان بي سي بيدي اسطف p7 +12

عاوز اعدل ع الكود اخلية يدي اسطف +12 و الغى اضافة الصول من الاسطفات


#region Stuff[P7]
case 195291:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey There " + client.Entity.Name + " Would you like to take Full Stuff");
dialog.Option("Stuff Bruce_LeeP7", 1);
dialog.Option("Stuff NinjaP7", 3);
dialog.Option("Stuff MonkP7", 4);
dialog.Option("Stuff TaoistP7", 5);
dialog.Option("Stuff TrojanP7", 6);
dialog.Option("Stuff PirateP7", 7);
dialog.Option("Stuff WarriorP7", 8);
dialog.Option("Stuff ArcherP7", 9);
dialog.Option("Stuff WindWalkerP7", 11);
dialog.Option("Fan-Tower-Wing-Crop-Steed", 10);
dialog.Option("ThunderStrikerP7", 12);

dialog.Send();
break;
}


#region Steed > tower > fan > wing > Crop
case 10:
{
uint itemid1 = 300000;//Steed
uint itemid2 = 202009;//Tower
uint itemid3 = 201009;//Fan
uint itemid4 = 204009;//Wing
uint itemid5 = 203009;//Crop
ConquerItem item1 = new ConquerItem(true);
item1.ID = itemid1;
item1.Color = Game.Enums.Color.White;
item1.Plus = 12;
item1.Durability = item1.MaximDurability = Database.ConquerItemInformation.BaseInformations[itemid1].Durability;
client.Inventory.Add(item1, Game.Enums.ItemUse.CreateAndAdd);

ConquerItem item2 = new ConquerItem(true);
item2.ID = itemid2;
item2.Color = Game.Enums.Color.White;
item2.Plus = 12;
item2.Bless = 1;
item2.SocketOne = Game.Enums.Gem.SuperGloryGem;
item2.SocketTwo = Game.Enums.Gem.SuperGloryGem;
item2.Durability = item2.MaximDurability = Database.ConquerItemInformation.BaseInformations[itemid2].Durability;
client.Inventory.Add(item2, Game.Enums.ItemUse.CreateAndAdd);

ConquerItem item3 = new ConquerItem(true);
item3.ID = itemid3;
item3.Color = Game.Enums.Color.White;
item3.Plus = 12;
item3.Bless = 1;
item3.SocketOne = Game.Enums.Gem.SuperThunderGem;
item3.SocketTwo = Game.Enums.Gem.SuperThunderGem;
item3.Durability = item3.MaximDurability = Database.ConquerItemInformation.BaseInformations[itemid3].Durability;
client.Inventory.Add(item3, Game.Enums.ItemUse.CreateAndAdd);

ConquerItem item4 = new ConquerItem(true);
item4.ID = itemid4;
item4.Color = Game.Enums.Color.White;
item4.Plus = 12;
item4.Bless = 1;
item4.SocketOne = Game.Enums.Gem.SuperThunderGem;
item4.SocketTwo = Game.Enums.Gem.SuperGloryGem;
item4.Durability = item4.MaximDurability = Database.ConquerItemInformation.BaseInformations[itemid4].Durability;
client.Inventory.Add(item4, Game.Enums.ItemUse.CreateAndAdd);

ConquerItem item5 = new ConquerItem(true);
item5.ID = itemid5;
item5.Color = Game.Enums.Color.White;
item5.Plus = 12;
item5.Bless = 1;
item5.Durability = item5.MaximDurability = Database.ConquerItemInformation.BaseInformations[itemid5].Durability;
client.Inventory.Add(item5, Game.Enums.ItemUse.CreateAndAdd);
break;
}
#endregion
case 12: //ThunderStriker
{
client.Inventory.Add(201009, 12, 1, 103, 103, 1);//Fan
client.Inventory.Add(203009, 12, 1, 0, 0, 1);//Crop//Code :
client.Inventory.Add(204009, 12, 1, 103, 123, 1);//Wing//Code :
client.Inventory.AddSoul(681439, 800111, 6, 12, 12, 1, true, false);//Code
client.Inventory.AddSoul(680439, 800111, 6, 12, 12, 1, true, false);//Code
client.Inventory.AddSoul(102200, 822071, 6, 12, 12, 1, true, false);//Armor
client.Inventory.AddSoul(146309, 820073, 6, 12, 12, 1, true, false);//Cap
client.Inventory.AddSoul(120269, 821033, 6, 12, 12, 1, true, false);//Necklace
client.Inventory.AddSoul(150269, 823058, 6, 12, 12, 1, true, false);//Ring
client.Inventory.AddSoul(160249, 824018, 4, 12, 12, 1, true, false);//Boot
break;

}

case 11://windwalker
{
//client.Entity.ConquerPoints -= 1;
client.Inventory.AddSoul(626439, 801308, 6, 12, 12, 1, true, false);//DragonFan
client.Inventory.AddSoul(626439, 801308, 6, 12, 12, 1, true, false);//DragonFan
client.Inventory.AddSoul(101309, 822071, 6, 12, 12, 1, true, false);//Armor
client.Inventory.AddSoul(170309, 820073, 6, 12, 12, 1, true, false);//Hat
client.Inventory.AddSoul(120269, 821033, 6, 12, 12, 1, true, false);//Necklace
client.Inventory.AddSoul(150269, 823058, 6, 12, 12, 1, true, false);//Ring
client.Inventory.AddSoul(160249, 824018, 6, 12, 12, 1, true, false);//Boot
break;

}
case 1://Bruce_Lee
{
//client.Entity.ConquerPoints -= 1;




client.Inventory.AddSoul(617439, 801004, 6, 12, 12, 1, true, false);//SkyNunchaku
client.Inventory.AddSoul(617439, 801004, 6, 12, 12, 1, true, false);//SkyNunchaku
client.Inventory.AddSoul(138309, 822071, 6, 12, 12, 1, true, false);//Bruce_LeeArmor
client.Inventory.AddSoul(148309, 820073, 6, 12, 12, 1, true, false);//Bruce_LeeHood
client.Inventory.AddSoul(120269, 821033, 6, 12, 12, 1, true, false);//Necklace
client.Inventory.AddSoul(150269, 823058, 6, 12, 12, 1, true, false);//Ring
client.Inventory.AddSoul(160249, 824018, 6, 12, 12, 1, true, false);//Boot
// client.Entity.Teleport(1002, 410, 354);
dialog.Text("thanks for this gift you have got item soul stablized forever By Falcons ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;

}

case 3://ninja
{
// client.Entity.ConquerPoints -= 1;


client.Inventory.AddSoul(511439, 800255, 6, 12, 12, 1, true, false);//Scythe
client.Inventory.AddSoul(511439, 800255, 6, 12, 12, 1, true, false);//Scythe
client.Inventory.AddSoul(616439, 800111, 6, 12, 12, 1, true, false);//Katana
client.Inventory.AddSoul(616439, 800111, 6, 12, 12, 1, true, false);//Katana
client.Inventory.AddSoul(601439, 800111, 6, 12, 12, 1, true, false);//Katana
client.Inventory.AddSoul(601439, 800111, 6, 12, 12, 1, true, false);//Katana
client.Inventory.AddSoul(601439, 800142, 6, 12, 12, 1, true, false);//Katana
client.Inventory.AddSoul(601439, 800142, 6, 12, 12, 1, true, false);//Katana
client.Inventory.AddSoul(135309, 822071, 6, 12, 12, 1, true, false);//ArmorNinja
client.Inventory.AddSoul(123309, 820073, 6, 12, 12, 1, true, false);//NinjaHood
client.Inventory.AddSoul(120269, 821033, 6, 12, 12, 1, true, false);//Necklace
client.Inventory.AddSoul(150269, 823058, 6, 12, 12, 1, true, false);//Ring
client.Inventory.AddSoul(160249, 824018, 6, 12, 12, 1, true, false);//Boot
// client.Entity.Teleport(1002, 410, 354);
dialog.Text("thanks for this gift you have got item soul stablized forever By Falcons ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;

}
case 4://Monk
{
// client.Entity.ConquerPoints -= 1;

client.Inventory.AddSoul(622439, 800725, 6, 12, 12, 1, true, false);//Beads
client.Inventory.AddSoul(622439, 800725, 6, 12, 12, 1, true, false);//Beads
client.Inventory.AddSoul(610439, 800725, 6, 12, 12, 1, true, false);//Beads
client.Inventory.AddSoul(610439, 800725, 6, 12, 12, 1, true, false);//Beads
client.Inventory.AddSoul(136309, 822071, 6, 12, 12, 1, true, false);//ArmorMonk
client.Inventory.AddSoul(143309, 820073, 6, 12, 12, 1, true, false);//CapMonk
client.Inventory.AddSoul(120269, 821033, 6, 12, 12, 1, true, false);//Necklace
client.Inventory.AddSoul(150269, 823058, 6, 12, 12, 1, true, false);//Ring
client.Inventory.AddSoul(160249, 824018, 6, 12, 12, 1, true, false);//Boot
// client.Entity.Teleport(1002, 410, 354);
dialog.Text("thanks for this gift you have got item soul stablized forever By Falcons ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;

}
case 5://Fire And Water
{
// client.Entity.ConquerPoints -= 1;




client.Inventory.AddSoul(421439, 800522, 6, 12, 12, 1, true, false);//BackSword
client.Inventory.AddSoul(620439, 800522, 6, 12, 12, 1, true, false);//ImperialBacksword
client.Inventory.AddSoul(619439, 801104, 6, 12, 12, 1, true, false);
client.Inventory.AddSoul(134309, 822071, 6, 12, 12, 1, true, false);//ArmorFire
client.Inventory.AddSoul(114309, 820076, 6, 12, 12, 1, true, false);//CapFire
client.Inventory.AddSoul(152279, 823060, 6, 12, 12, 1, true, false);//Bracelet
client.Inventory.AddSoul(121269, 821034, 6, 12, 12, 1, true, false);//Bag
client.Inventory.AddSoul(160249, 824018, 6, 12, 12, 1, true, false);//Boot
//client.Entity.Teleport(1002, 410, 354);
dialog.Text("thanks for this gift you have got item soul stablized forever By Falcons ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;

}
case 6://Trojan
{
// client.Entity.ConquerPoints -= 1;



client.Inventory.AddSoul(480439, 800111, 6, 12, 12, 1, true, false);//Clup
client.Inventory.AddSoul(614429, 800111, 6, 12, 12, 1, true, false);//ShadowCrossSaber
client.Inventory.AddSoul(614429, 800111, 6, 12, 12, 1, true, false);//ShadowCrossSaber
client.Inventory.AddSoul(410439, 800111, 6, 12, 12, 1, true, false);//Blade
client.Inventory.AddSoul(420439, 800111, 6, 12, 12, 1, true, false);//Sword
client.Inventory.AddSoul(130309, 822071, 6, 12, 12, 1, true, false);//ArmorTrojan
client.Inventory.AddSoul(118309, 820073, 6, 12, 12, 1, true, false);//CapTrojan
client.Inventory.AddSoul(120269, 821033, 6, 12, 12, 1, true, false);//Necklace
client.Inventory.AddSoul(150269, 823058, 6, 12, 12, 1, true, false);//Ring
client.Inventory.AddSoul(160249, 824018, 6, 12, 12, 1, true, false);//Boot
//client.Entity.Teleport(1002, 410, 354);
dialog.Text("thanks for this gift you have got item soul stablized forever By Falcons ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;

}
case 7://Pirate
{
// client.Entity.ConquerPoints -= 1;


client.Inventory.AddSoul(671439, 800811, 6, 12, 12, 1, true, false);//EpicRapier
client.Inventory.AddSoul(670439, 800810, 6, 12, 12, 1, true, false);//EpicPistol
client.Inventory.AddSoul(611439, 800811, 6, 12, 12, 1, true, false);//Rapier
client.Inventory.AddSoul(612439, 800810, 6, 12, 12, 1, true, false);//Pistol
client.Inventory.AddSoul(139309, 822071, 6, 12, 12, 1, true, false);//ArmorPirate
client.Inventory.AddSoul(144309, 820073, 6, 12, 12, 1, true, false);//CapPirate
client.Inventory.AddSoul(120269, 821033, 6, 12, 12, 1, true, false);//Necklace
client.Inventory.AddSoul(150269, 823058, 6, 12, 12, 1, true, false);//Ring
client.Inventory.AddSoul(160249, 824018, 6, 12, 12, 1, true, false);//Boot
// client.Entity.Teleport(1002, 410, 354);
dialog.Text("thanks for this gift you have got item soul stablized forever By Falcons ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;

}
case 8://Warrior
{
// client.Entity.ConquerPoints -= 1;


client.Inventory.AddSoul(560439, 800215, 6, 12, 12, 1, true, false);//Spear
client.Inventory.AddSoul(900309, 800422, 6, 12, 12, 1, true, false);//Shield
client.Inventory.AddSoul(624439, 801216, 6, 12, 12, 1, true, false);//Fist Strick
client.Inventory.AddSoul(624439, 801216, 6, 12, 12, 1, true, false);//Fist Strick
client.Inventory.AddSoul(131309, 822071, 6, 12, 12, 1, true, false);//ArmorWarrior
client.Inventory.AddSoul(111309, 820073, 6, 12, 12, 1, true, false);//CapWarrior
client.Inventory.AddSoul(120269, 821033, 6, 12, 12, 1, true, false);//Necklace
client.Inventory.AddSoul(150269, 823058, 6, 12, 12, 1, true, false);//Ring
client.Inventory.AddSoul(160249, 824018, 6, 12, 12, 1, true, false);//Boot
// client.Entity.Teleport(1002, 410, 354);
dialog.Text("thanks for this gift you have got item soul stablized forever By Falcons ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;

}
case 9://Archer
{
// client.Entity.ConquerPoints -= 1;


client.Inventory.AddSoul(613429, 800917, 6, 12, 12, 1, true, false);//Knife
client.Inventory.AddSoul(613429, 800917, 6, 12, 12, 1, true, false);//Knife
client.Inventory.AddSoul(500429, 800618, 6, 12, 12, 1, true, false);//Bow
client.Inventory.AddSoul(133309, 822071, 6, 12, 12, 1, true, false);//ArmorArcher
client.Inventory.AddSoul(113309, 820073, 6, 12, 12, 1, true, false);//CapArcher
client.Inventory.AddSoul(120269, 821033, 6, 12, 12, 1, true, false);//Necklace
client.Inventory.AddSoul(150269, 823058, 6, 12, 12, 1, true, false);//Ring
client.Inventory.AddSoul(160249, 824018, 6, 12, 12, 1, true, false);//Boot
//client.Entity.Teleport(1002, 410, 354);
dialog.Text("thanks for this gift you have got item soul stablized forever By Falcons ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;

}
}
break;
}
#endregion

ElSaher
2020-02-19, 06:31 PM
كل الحجات ده موجوده عنك لفي القاعده لكلاس فيه كل المواعيد ياعني ده حاجه سهله مستعجب كيف مش عارف تعدلهم

فين دا اجد حازم

Hassan Emprator
2020-02-19, 07:57 PM
هههههههههههههه فكرتنى بتعليقك على حسن انا عندى شغل كتير وهنزلو
شويه شويه ه شويه شويه هههههههههههههه
لو محدش جاوبك لما افتح الجهاز هعدلهمك

هههههههههههههه بس يض :harhar1:

ElSaher
2020-02-19, 08:13 PM
هههههههههههههه بس يض :harhar1:

ودا حقيقي منا بنزل اهو

بس في 3حجاات مش بعرف اعملهم في المواعيد

التيم الاليت الاسكل

ElSaher
2020-02-19, 09:18 PM
تم الحل شكرا يا حسن

AdhamMohamed
2020-02-20, 05:26 PM
طب هنعمل الاضفات في انهي ملف

ElSaher
2020-02-20, 07:35 PM
طب هنعمل الاضفات في انهي ملف

World ومش تستخدم الاضافات بتاعتي لاني مسج وفي فرق بين الكلاسات