//Find gold modified by poetoe
if (rand(1,20) == 1 && $userrow["currentaction"] != "Explore") {
$gold = rand(1,5000); // Select a random number between 1 and 5000 which is the amount the user with obtain.
doquery("UPDATE <<users>> SET gold=gold+$gold WHERE id=".$userrow["id"], "users"); // Update the gold variable.
$page = "You were walking along the road and you found $gold gold on the ground!"; // Output
display("You have found money on the ground!", $page);
}