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

مشاهدة النسخة كاملة : Npc تغير التوكن


محمد ياسر
2019-05-13, 02:54 AM
السلام عليكم ورحمة الله وبركاته
انبي سي تغير التوكن الي بتاخده في حرب الجيلد وير
#region Change LordTokens
case 890:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Greetings! I'm a great seller, I have the most precious items in the entire ");
dialog.Text("world. What do you want to get?");
dialog.Option("GoldPrize [5 LordTokens]", 1);
dialog.Option("GoldCup [4 LordTokens]", 2);
dialog.Option("GoldTrophy [3 LordTokens]", 3);
dialog.Option("SilverPrize [2 LordTokens]", 4);
dialog.Option("BronzePrize [1 LordTokens]", 5);
dialog.Option("Just passing by.", 255);
dialog.Avatar(85);
dialog.Send();
break;
}
case 1:
{
if (client.Inventory.Contains(723467, 5))
{

client.Inventory.Remove(723467, 5);
client.Inventory.Add(2100075, 0, 1);
}
else
{
dialog.Text("You don't have enough 5 LordTokens !");
dialog.Option("I see.", 255);
dialog.Avatar(85);
dialog.Send();
}
break;
}
case 2:
{
if (client.Inventory.Contains(723467, 4))
{

client.Inventory.Remove(723467, 4);
client.Inventory.Add(2100095, 0, 1);




}
else
{
dialog.Text("You don't have enough 4 LordTokens !");
dialog.Option("I see.", 255);
dialog.Avatar(85);
dialog.Send();
}
break;
}
case 3:
{
if (client.Inventory.Contains(723467, 3))
{

client.Inventory.Remove(723467, 3);
client.Inventory.Add(2100085, 0, 1);




}
else
{
dialog.Text("You don't have enough 3 LordTokens !");
dialog.Option("I see.", 255);
dialog.Avatar(85);
dialog.Send();
}
break;
}
case 4:
{
if (client.Inventory.Contains(723467, 2))
{

client.Inventory.Remove(723467, 2);
client.Inventory.Add(2100065, 0, 1);

}
else
{
dialog.Text("You don't have enough 2 LordTokens !");
dialog.Option("I see.", 255);
dialog.Avatar(85);
dialog.Send();
}
break;
}
case 5:
{
if (client.Inventory.Contains(723467, 1))
{

client.Inventory.Remove(723467, 1);
client.Inventory.Add(2100055, 0, 1);

}
else
{
dialog.Text("You don't have enough 1 LordTokens !");
dialog.Option("I see.", 255);
dialog.Avatar(85);
dialog.Send();
}
break;
}
}
break;
}
#endregion