Ok I just made this NPC on my own im learning #C.. So umm... It works and all.. but when I relog the items show up.. how do I make it not do that?
Code:
case 10151://Clearinv NPC
{
if (LinkBack == 0)
{
Text("Would you like me to clear your Inventory?", CSocket);
Link("Yes", 1, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
foreach (Struct.ItemInfo Itm in CSocket.Client.Inventory.Values)
CSocket.Send(ConquerPacket.ItemUsage(Itm.UID, 0, Struct.ItemUsage.RemoveItem));
CSocket.Client.Inventory.Clear();
}
}
break;