A general purpose mining script for powerbot.