The alternator has been replaced. OK. Is it actually putting out the rated amperage? Because your last clue makes me think it's marginal at best. Turning on the lights and/or air conditioner should have very little if any effect on engine speed and smoothness. I think you're running on battery mostly, and it's barely able to keep the ignition running.
Quotes to live by:
guessing gets expensive
nothing is more expensive than a cheap BMW
buying a ratty example (of a BMW) is a parasitic relationship.(and you ain't the mosquito)
Ken Kanne, Silverhill, AL, E36 & New Member Intro Forum Mod/Bimmerfest Tow Truck
1995 318is "Bebe"; 1993 325is "Elvira"; 1985 635CSi "Katja"; 1984 633CSi "Sylvia"; 1987 325is "Odette"