Complex sentence: Whenever they wander in villages, they leave gifts at the doors of helpful and kind people, and when summoned for help they accept if the summoner is good of heart, but they also punish the wicked.
Split into simpler sentences: Whenever they wander in villages, they leave gifts at the doors of helpful and kind people. When summoned for help they accept if the summoner is good of heart, but they also punish the wicked.