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

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


محمد ياسر
2019-04-18, 11:03 AM
عفواً لايمكن عرض الروابط في الإرشيف
السلام عليكم ورحمة الله وبركاته

انبي سي بيع الحيوانات الاليفه الي بتكون ماشيه جنبك

يلا نبداء

افتح npcs.cs

وضيف ده

#region Seller Pet
case 8011://and this id
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Welcome , i'm admin Pet a Pet if You Have 1200 Cps I Can Give you Skills Pet a Pet ");
dialog.Option("BuY SummonRipper.", 1);
// dialog.Option("BuY ChaosRipper(Transform).", 2);
dialog.Option("BuY CatBellLevel 5.", 3);
dialog.Option("BuY SummonFox.", 4);
dialog.Option("BuY SummonCrane.", 5);
dialog.Option("BuY SummonPanda.", 6);
dialog.Option("BuY SummonVoltaicWarg.", 7);
dialog.Option("Have a good day.", 255);
dialog.Send();
break;
}
#region Pets
case 1:
{
if (client.Entity.ConquerPoints < 1200)
{
dialog.Text("You don't have 1200 ConquerPoints");
dialog.Option("Thank you master.", 255);
dialog.Send();
return;
}
if (client.Entity.ConquerPoints >= 1200)
{
if (!client.AddSpell(LearnableSpell(12470)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
else
{
client.Entity.ConquerPoints -= 1200;
}
}
break;
}
case 2:
{
if (client.Entity.ConquerPoints < 1200)
{
dialog.Text("You don't have 1200 ConquerPoints");
dialog.Option("Thank you master.", 255);
dialog.Send();
return;
}
if (client.Entity.ConquerPoints >= 1200)
{
if (!client.AddSpell(LearnableSpell(12480)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
else
{
client.Entity.ConquerPoints -= 1200;
}
}
break;
}
case 3:
{
if (client.Entity.ConquerPoints < 1200)
{
dialog.Text("You don't have 1200 ConquerPoints");
dialog.Option("Thank you master.", 255);
dialog.Send();
return;
}
if (client.Entity.ConquerPoints >= 1200)
{
if (!client.AddSpell(LearnableSpell(12610)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
else
{
client.Entity.ConquerPoints -= 1200;
}
}
break;
}
case 4:
{
if (client.Entity.ConquerPoints < 1200)
{
dialog.Text("You don't have 1200 ConquerPoints");
dialog.Option("Thank you master.", 255);
dialog.Send();
return;
}
if (client.Entity.ConquerPoints >= 1200)
{
if (!client.AddSpell(LearnableSpell(12020)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
else
{
client.Entity.ConquerPoints -= 1200;
}
}
break;
}
case 5:
{
if (client.Entity.ConquerPoints < 1200)
{
dialog.Text("You don't have 1200 ConquerPoints");
dialog.Option("Thank you master.", 255);
dialog.Send();
return;
}
if (client.Entity.ConquerPoints >= 1200)
{
if (!client.AddSpell(LearnableSpell(12030)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
else
{
client.Entity.ConquerPoints -= 1200;
}
}
break;
}
case 6:
{
if (client.Entity.ConquerPoints < 1200)
{
dialog.Text("You don't have 1200 ConquerPoints");
dialog.Option("Thank you master.", 255);
dialog.Send();
return;
}
if (client.Entity.ConquerPoints >= 1200)
{
if (!client.AddSpell(LearnableSpell(12040)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
else
{
client.Entity.ConquerPoints -= 1200;
}
}
break;
}
case 7:
{
if (client.Entity.ConquerPoints < 1200)
{
dialog.Text("You don't have 1200 ConquerPoints");
dialog.Option("Thank you master.", 255);
dialog.Send();
return;
}
if (client.Entity.ConquerPoints >= 1200)
{
if (!client.AddSpell(LearnableSpell(12050)))
{
dialog.Text("You already know this skill.");
dialog.Option("Thank you master.", 255);
dialog.Send();
}
else
{
client.Entity.ConquerPoints -= 1200;
}
}
break;
}
#endregion Pets
}
break;
}
#endregion

باقي تحطهم في القاعده

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