public Packet deequip(int slot, int epart)
    {
        Packet packet = new Packet();
        switch (epart)
        {
            case 1:
                packet.addHeader((byte) 0xE5, (byte) 0x2E);
                if (slot == 0 && this.equipitemscoin[0] != 0){
                    epart = 4;
                    slot = 0;
                }

                break;
                
            case 2:
                packet.addHeader((byte) 0x1A, (byte) 0x2F);
                if (slot == 0 && this.equipitemscoin[1] != 0){
                    epart = 4;
                    slot = 1;
                }
                else
                    slot += 3;
                break;

            case 3:
                packet.addHeader((byte) 0x1C, (byte) 0x2F);
                slot += 11;
                break;
            
        }
        try
        {
            int aid = this.getEquip(epart, slot);
            if (aid == 0)
            {
                packet.addPacketHead((byte) 0x00, (byte) 0x60);
                return packet;
            }

            int islot = this.slotAvaible();

            if (islot != -1)
            {
                this.setInvent(aid, islot);
                this.setEquip(0, epart, slot);
                //packet.addPacketHead((byte) 0x01, (byte) 0x00);
                packet.setPacket(this.getpacketcinfo());
                return packet;
            }

            packet.addPacketHead((byte) 0x00, (byte) 0x61);
            return packet;
        } catch (Exception e)
        {
            debug(e.getMessage());
        }
        packet.addPacketHead((byte) 0x00, (byte) 0x60);
        return packet;
    }