private unsafe void HandleEquip(GameClient Client, ItemUsage* Packet) { ConquerItem Item; if (Client.TryGetInventory(Packet->ID, out Item)) { Item.Position = (ItemPosition)Packet->Location; Client.AddEquipment(Item, Item.Position); Client.RemoveInventory(Item); } }
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); } } }