public static void OnDoEquip(WorldClient client, INetPacketStream packet) { var equipItemPacket = new EquipItemPacket(packet); var inventoryEvent = new InventoryEquipEventArgs(equipItemPacket.UniqueId, equipItemPacket.Part); client.Player.NotifySystem <InventorySystem>(inventoryEvent); }
public void OnDoEquip(IWorldClient client, EquipItemPacket packet) { _inventorySystem.EquipItem(client.Player, packet.UniqueId, packet.Part); }