private unsafe void HandleUnequip(GameClient Client, ItemUsage *Packet) { ItemPosition Position = (ItemPosition)Packet->Location; ConquerItem Item; if (Client.TryGetEquipment(Position, out Item)) { if (Client.AddInventory(Item)) { Client.Unequip(Item, Position); } else { Client.Message("Inventory is full!", ChatType.Top, Color.Red); } } }
private unsafe void HandleUnequip(GameClient Client, ItemUsage* Packet) { ItemPosition Position = (ItemPosition)Packet->Location; ConquerItem Item; if (Client.TryGetEquipment(Position, out Item)) { if (Client.AddInventory(Item)) { Client.Unequip(Item, Position); } else { Client.Message("Inventory is full!", ChatType.Top, Color.Red); } } }