Complex sentence: He finds himself in a situation similar to that in the "Arabian Nights": as long as he can keep telling stories, a princess of the little people will bring him food and water so he can repair himself.
Split into simpler sentences: He finds himself in a situation similar to that in the Arabian Nights. As long as he can keep telling stories, a princess of the little people will bring him food and water so he can repair himself.