public Packet getEquipByName(String charname)
    {
        try
        {
            Packet packet = new Packet();
            packet.addHeader((byte)0x27, (byte)0x2F);
            packet.addInt(1, 4, false);
            ResultSet rs = sql.doquery("SELECT * FROM bout_characters WHERE name='" + func.removenullbyte(charname) + "' LIMIT 1");
            rs.next();
            int clevel = rs.getInt("level");
            int cbot = rs.getInt("bot");
            packet.addInt(clevel, 2, false);
            packet.addInt(0, 2, false);
            for (int i = 0; i < 11; i++)
            {
                packet.addInt(rs.getInt(i + 24), 4, false);
            }
            packet.addInt(rs.getInt("equipheadcoin"), 4, false);
            packet.addInt(rs.getInt("equipminibotcoin"), 4, false);
            packet.addByte((byte)0x00);
            packet.addByte((byte)cbot);
            packet.addByte((byte)0x01);
            packet.addByte((byte)0x00);
            packet.addString(charname);
            return packet;
        } catch (Exception e)
        {
        }
        return null;
    }