Monte Carlo calculations for resonance scattering with absorption or differential expansion