Complex sentence: Before he came to Dubrovnik he lived in Arta and was sometimes employed by Skanderbeg II, as his envoy.
Split into simpler sentences: Before he came to Dubrovnik he lived in Arta. Sometimes he was employed by Skanderbeg II, as his envoy.