Im trying to get it so when you talk to an npc they can tell if an item in your inventory is bound or not, and if it is to not give reward but i cant seem to get it working, Can someone take a look at what i have done so far and explain where im going wrong pls or a better way of doin it if there is, Thanks.
Code:
case 1:
{
Interfaces.IConquerItem item = new ConquerItem(true);
item.ID = 1058011;
if (client.Inventory.TryGetItem(item.UID, out item))
{
if (item.Bound == false)
{
client.Inventory.Remove(item, Game.Enums.ItemUse.Remove);
client.Entity.BoundCps += 100;
}
else
{
dialog.Text("Your item is bound.");
dialog.Send();
break;
}
}
else
{
dialog.Text("You do not have the item");
dialog.Send();
break;
}
break;
}