كود:
#region Random By Rayzo
case 19472:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Greetings! You can swap 25 Garment Coupons for a Garment. Or swap 25 Garment Coupons for a Mount. Which one do you want to swap with me?");
dialog.Option("Garment~Coupon.", 1);
dialog.Option("Mount~Coupon.", 2);
dialog.Avatar(175);
dialog.Send();
break;
}
case 1:
{
if (client.Inventory.Contains(727262, 1))
{
client.Inventory.Remove(727262, 1);
var Garments = Database.ConquerItemInformation.BaseInformations.Values
.Where(p => (p.ID > 188105 && p.ID <= 194300)).ToArray();
client.Inventory.AddTime(Garments[Kernel.Random.Next(Garments.Length)].ID, 2, true);
}
else client.Send(new Message("You don`t have enough Garment Coupons!", System.Drawing.Color.Red, Message.System));
break;
}
case 2:
{
if (client.Inventory.Contains(727262, 1))
{
client.Inventory.Remove(727262, 1);
var Garments = Database.ConquerItemInformation.BaseInformations.Values
.Where(p => (p.ID >= 4020101 && p.ID <= 4033409)).ToArray();
client.Inventory.AddTime(Garments[Kernel.Random.Next(Garments.Length)].ID, 2, true);
}
else client.Send(new Message("You don`t have enough Garment Coupons!", System.Drawing.Color.Red, Message.System));
break;
}
}
break;
}
#endregion