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

مشاهدة النسخة كاملة : npc PK less


محمد ياسر
2019-04-18, 10:54 AM
انبي سي لتقليل القتل الي حصل عليهم

ضيف الاكواد في

NPCS.CS

#region PK less than
case 59527:
{
switch (npcRequest.OptionID)
{
case 0:
{
if (client.Entity.PKPoints < 30)
{
dialog.Text("i cant less your pk any more you are safe Now");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
break;
}
dialog.Text("Hay I am Pkpoints lesser i can less your pk from 30 or higher");
dialog.Option("- [30] PKponits 100 cps.", 1);
dialog.Option("- [60] PKponits 200 cps", 2);
dialog.Option("- [90] PKponits 300 cps", 3);
dialog.Option("- [120] PKponits 400 cps", 4);
dialog.Option("- [150] PKponits 500 cps", 5);
dialog.Option("- [200] PKponits 600 cps", 6);
dialog.Option("- [250] PKponits 700 cps", 7);
dialog.Option("Just passing by.", 255);
dialog.Avatar(116);
dialog.Send();
break;

}
case 1:
{
if (client.Entity.PKPoints >= 30)
{
if (client.Entity.ConquerPoints >= 100)
{
client.Entity.ConquerPoints -= 100;
client.Entity.PKPoints -= 30;
}
else
{
dialog.Text("Please take 100 cps.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
}
else
{
dialog.Text("your pk points is low must higher than." + client.Entity.PKPoints);
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
break;
}
case 2:
{
if (client.Entity.PKPoints >= 60)
{
if (client.Entity.ConquerPoints >= 200)
{
client.Entity.ConquerPoints -= 200;
client.Entity.PKPoints -= 60;
}
else
{
dialog.Text("Please take 200 cps.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
}
else
{
dialog.Text("your pk points is low must higher than." + client.Entity.PKPoints);
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
break;
}
case 3:
{
if (client.Entity.PKPoints >= 90)
{
if (client.Entity.ConquerPoints >= 300)
{
client.Entity.ConquerPoints -= 300;
client.Entity.PKPoints -= 90;
}
else
{
dialog.Text("Please take 300 cps.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
}
else
{
dialog.Text("your pk points is low must higher than." + client.Entity.PKPoints);
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
break;
}
}
break;
}
#endregion

MohamedModyAdel
2019-06-25, 10:45 PM
جميل