Do an encrypted Xor search for the number of coins win a battle and refine with the new coin amount until you have 1 value left.
Click it and select goto.
Edit the xor value, I just removed the last three numbers and comma that was left at the end, you should end up with around 3 million coins
then go down 10 values from the one you just changed and do the same to that xor value, this will give you around 3 million gems
make sure you save your game from the "nexopad" in the game before you close it or obviously the changes wont stick.