예제 #1
0
        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);
                }
            }
        }
예제 #2
0
        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);
                }
            }
        }