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

مشاهدة النسخة كاملة : كوست Emperor War


محمد ياسر
2019-05-07, 12:41 PM
بسم الله الرحمن الرحيم ,

السلام عليكم ورحمة الله وبركاته ,

أزيكم يا شباب ,

يارب تكونوا بخير ,

النـهارده معانه حرب اسمها Emperor War

وهي عباره عن اوتو انفيت بيجيبك الساعه 7 اللي هو 19 في اللعبه

بتروح تكلم الان بي سي هيدخلك ,,(الان بي سي بيدخل لحد 19:30

والحرب و قتها ساعه

واي حد بيموت في الحرب دي بيوقع منه مليون سبس و اللي بيموتو هو
اللي بياخدهم

Npcs.cs


#region EmpirorWar
case 84572:
{

switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello " + client.Entity.Name + " I'm The WarLord I Can let you Join the EmpirorWar Event 1 time .");
dialog.Text("Everyday u can signup and enjoy the event for 30 Minutes at this time [<20.30> FoR <21.00>].");
dialog.Text("you need to have Join 1kk cps in your inventory if you killed any player u will drop 1kk from him also if u died u will lose 1Kk cps [Warning ThiS QuesT JusT FoR Men]");
dialog.Option("Leme Join.", 1);
dialog.Option("Just Passing By!.", 255);
dialog.Avatar(116);
dialog.Send();
break;
}
case 1:
{
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute >= 30 && DateTime.Now.Minute < 59)
{
if (client.Entity.ConquerPoints >= 1000000)
{
client.Entity.Teleport(5555, 39, 35);
dialog.Text("Defeat other players to gain cps and be carefull if u died u will lose 1Kk cps GoodLuck!.");
dialog.Option("Thanks.", 255);
dialog.Avatar(116);
dialog.Send();
}
else
{
dialog.Text("Sorry you dont have 1Kk Cps i Cant let u Join EmpirorWar Tourment");
dialog.Option("Okay sorry.", 255);
dialog.Avatar(116);
dialog.Send();
}
break;
}
else
{
dialog.Text("Sorry i cant let you join the event now come again later at the event times.");
dialog.Option("Okay sorry.", 255);
dialog.Avatar(116);
dialog.Send();
}
break;
}
}
break;
}
#endregion


Entity.cs

ابحث علي



if (killer.MapID == 7777)


وفوقه حط الكود ده




if (killer.MapID == 5555)
{
if (this.ConquerPoints >= 1000000)
{

this.ConquerPoints -= 1000000;
MohamedAgag.Network.PacketHandler.WorldMessage("Ops " + this.Name + " HaS FuCkeD By " + killer.Name + " AnD LosT 1.000.000 Cps In EmpirorWaR!!.");
}
else
{
this.Teleport(1002, 428, 378);
MohamedAgag.Network.PacketHandler.WorldMessage("Ops! " + this.Name + " Has FuCkeD AnD losed all His/Her Cps in The EmpirorWar and Go back to TwinCity.");
}
}
if (killer.MapID == 5555)
{
if (killer.MapID == 5555)
{
killer.ConquerPoints += 1000000;
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Congratulations, You HaVe GaineD 1.000.000 Cps FoR Kill One PlaYeR!");
npc.OptionID = 255;
killer.Owner.Send(npc.ToArray());
}
}


وابحث علي



if (Now > InviteSendStamp.AddSeconds(5) && invite)


فوقه حط ده




if (DateTime.Now.Hour == 21 && DateTime.Now.Minute >= 00 && DateTime.Now.Second == 00)
{
if (MapID == 5555)
{
Teleport(1002, 391, 371);
}
}


EntityTable.cs

حط الكود ده



if (client.Entity.MapID == 5555)
{
client.Entity.MapID = 1002;
client.Entity.X = 428;
client.Entity.Y = 378;
}


World.cs




if (DateTime.Now.Hour == 20 && DateTime.Now.Minute == 30 && DateTime.Now.Second == 1)
{
if (DateTime.Now.Hour == 20 && DateTime.Now.Minute == 30 && DateTime.Now.Second == 1)
{
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "EmpirorWar PK has Started! You Wana Join?");
npc.OptionID = 233;
client.Send(npc.ToArray());
//return;

}
}


PacketHandler.cs

حط ده




if (client.Map.BaseID != 6001 && client.Map.BaseID != 6000 && !client.Entity.Dead && req.OptionID == 233 && client.Map.BaseID != 700)
{
client.Entity.Teleport(5555, 50, 50);
}


وده



if (client.Entity.MapID == 5555)
{
client.Entity.Teleport(5555, 39, 35);
}


النفي كات

npcs


84572 0 0 EmpirorLego 2 5930 -1 1002 464


maps




5555 1801 7 0


بالتوفيق للجميع