كونكر عرب

كونكر عرب (https://conquer-arab.com/index.php)
-   تطوير سيرفرات كونكر (https://conquer-arab.com/forumdisplay.php?f=11)
-   -   NPC Cup Seller (https://conquer-arab.com/showthread.php?t=6940)

Hazem 2021-08-16 03:04 PM

NPC Cup Seller
 

الان بي سي التالى وهو Cup Seller يبيع 5 كاسات مختلفه على الترتيب والكود هو


#region Cup Seller
case 50504:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Do You Want Any Cup.");
dialog.Option("GoldCup.", 1);
dialog.Option("WorldCup.", 2);
dialog.Option("BronzePrize.", 3);
dialog.Option("SilverPrize.", 4);
dialog.Option("DragonCup.", 5);
dialog.Option("Just Passing By!", 255);
dialog.Send();
break;
}
case 1:
{
if (client.Entity.ConquerPoints >= 10000000)
client.Inventory.Add(2100095, 0, 1);
client.Entity.ConquerPoints -= 10000000;
break;
}
case 2:
{
if (client.Entity.ConquerPoints >= 5000000)
client.Inventory.Add(2100005, 0, 1);
client.Entity.ConquerPoints -= 5000000;
break;
}
case 3:
{
if (client.Entity.ConquerPoints >= 3000000)
client.Inventory.Add(2100055, 0, 1);
client.Entity.ConquerPoints -= 3000000;
break;
}
case 4:
{
if (client.Entity.ConquerPoints >= 2000000)
client.Inventory.Add(2100065, 0, 1);
client.Entity.ConquerPoints -= 2000000;
break;
}
case 5:
{
if (client.Entity.ConquerPoints >= 1000000)
client.Inventory.Add(21000105, 0, 1);
client.Entity.ConquerPoints -= 1000000;
break;
}

}
break;
}
#endregion




الساعة الآن 04:53 AM

مرحبا بكم في منتدي اكواد لتطوير الالعاب
new notificatio by 9adq_ala7sas