The method works on Cheat Engine versions 5.3 to 5.5, and it involves scanning for a multiplied value rather than the gold figure itself.
The general sequence: enter a dungeon room, attach Cheat Engine to the game's process, then win a battle and note the gold awarded. Multiply that number by eight and run a first scan on the result. Fight again, note the new gold total, multiply by eight, and run a next scan. Narrow the results down, change the remaining address to the value you want, then leave and re-enter the quest for the gold to register.
Be warned that memory editing can corrupt a character, so back up before you try, and expect the exact steps to shift between game and client versions.