Is it possible to save the gold/lumber of a player when they enter an area, save this number set the gold/lumber to zero, and then once they leave the area they load back their old gold/lumber??
Enter area
Save current gold/lumber
Set gold/lumber to 0
Leave are get your old gold/lumber value
Enter area
Save current gold/lumber
Set gold/lumber to 0
Leave are get your old gold/lumber value