if (player_has_enough_gold): # Give item else: # Send message