Perhaps you can pretend to join the enemy side, and then decide to steal the treasure. At a risk at being caught, of course, but there is always the chance of doing it again. I\'m not sure if this is possible, but it would be interesting. And pretending to join it may bring other advantages as well.
Solving puzzles, riddles, and doing odd things such as capturing flying purple hippos (not original anymore) to get the treasure.