Complex sentence: She gambled away her spare cash on fruit machines and by betting on dog racing but, when she had winnings, she was generous to her friends in the area.
Split into simpler sentences: She gambled away her spare cash on fruit machines and by betting on dog racing. When she had winnings, she was generous to her friends in the area.