[ندعوك للتسجيل في المنتدى أو التعريف بنفسك لمعاينة هذه الصورة]



الكود بتاع الانبسي الي هيتحط في




كود:Dialogs.cs

كود PHP:
#region Arena 300 cps
case 3006554:
{
switch (
npcRequest.OptionID)
{
case
0:
{
dialogs.Text("Would you like to go in Arena and Win 300 cps for each killing");
dialogs.Option("Yes.", 1);
dialogs.Option("No.", 255);
dialogs.Send();
break;
}
case
1:
{
if (
client.Entity.ConquerPoints >= 300)
{
//client.Inventory.Add(723903, 0, 1);
client.Entity.ConquerPoints -= 300;
client.Entity.Teleport(1860, 070, 077);
}
else
{
dialogs.Text("You don't have enough Cps!");
dialogs.Option("I see.", 255);
dialogs.Avatar(85);
dialogs.Send();
}
break;
}

}
break;
}


#endregion
الكود الي هيترفع علي النافيكات



كود PHP:
REPLACE INTO `maps` VALUES ('1860', '1860', '0001', '0000');
REPLACE INTO `npcs` VALUES ('3236', '0', '0', 'freenpc', '0002', '9958', '-1', '1002', '0413', '0381', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '', '0000', '00', '00', '0000', '00', null);
وهتفتح
Game\Entity.cs

وتعمل بحث عن


كود PHP:
public void Die(Entity killer)
{
Attack attack2;
وتحط الكود ده تحتيه
حط الكود ده وادعيلي


كود PHP:
#region Arena 300 cps By AbdouMatrix
if (EntityFlag == EntityFlag.Player)
{
if (
killer.EntityFlag == EntityFlag.Player)
{
if (
killer.MapID == 1860)
{
killer.ConquerPoints += 600;
killer.Teleport(1005, 50, 50);
_String str = new _String(true)
{
UID = killer.UID,
TextsCount = 1,
Type = 10
};
str.Texts.Add("sports_victory");
killer.Owner.SendScreen(str, true);
NpcReply reply;
reply = new NpcReply(6, string.Concat(new object[] { "You Have Killed ", Owner.Entity.Name, " In Cps Arena and u got 600 Cps !! Coded By [AbdouMatrix]" }))
{
OptionID = 0xff
};
killer.Owner.Send(reply.ToArray());


}
if (
Owner.Entity.MapID == 1860)
{
Owner.Entity.Teleport(1002, 438, 382);
_String str2 = new _String(true)
{
UID = Owner.Entity.UID,
TextsCount = 1,
Type = 10
};
str2.Texts.Add("sports_failure");
Owner.SendScreen(str2, true);
Program.WriteLine("Done By Matrix");
}
}
}
#endregion Arena 300 cps
اخر الحته الكود الي يخلي اي حد يقفل جوه لو فتح يروح التون
هتفتح



كود:EntityTable.csوتدور علي


كود PHP:
public static bool LoadEntity
هتنزل شوية لغاية اما تلاقي اكواد زي دي


كود PHP:
if (client.Map.BaseID == 0x734)
{
client.Entity.MapID = 0x3ea;
client.Entity.X = 0x1ac;
client.Entity.Y = 0x17a;
}
هتحط الكود ده تحتيه


كود PHP:
if (client.Map.BaseID == 1860)
{
client.Entity.MapID = 0x3ea;
client.Entity.X = 0x1ac;
client.Entity.Y = 0x17a;
}