The easiest way is to build a "HarvEstate Manor" which costs 1000000. You can get 50000 from selling it.
So, in CE just search for 1000000 (4 bytes) and add all findinds to the address list:
[Only registered and activated users can see links. Click Here To Register...]
After that, change the value of all addresses in the address list to 0:
[Only registered and activated users can see links. Click Here To Register...]
The result is, that you can get that building for free now:
[Only registered and activated users can see links. Click Here To Register...]
Now, to reach the gold cap easily, just repeat these steps. But this time, you have to look for 50000 (4 bytes) and change the value to 2000000.
After that, just sell the building and you'll receive 2000000 gold (which is the cap):
[Only registered and activated users can see links. Click Here To Register...]
Have fun ;)