Emission lines from condensing intracluster gas