Gnomad
11-26-2008, 05:08 AM
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
I was bored the other day, and updating my alchemy script to work with my empath's new recipes, when I got tired of having to watch his mana every time I did reps on the training cauldron. As a result, I threw together a quick mana check using MATCHRE. It will check to see if you have 20 mana or more, and send you to the appropriate label.
Feel free to adapt it for your own script if you know what you're doing. It won't work in the Wizard.
MATCHRE mana /Remaining: ([0-9]{3}|[2-9][0-9])$/
MATCHRE nomana /Remaining: ([0-9]{1}|[0-1][0-9])$/
put power
MATCHWAIT
Fair warning: If you double in harness power, this script might not work past level 300 or so.
I was bored the other day, and updating my alchemy script to work with my empath's new recipes, when I got tired of having to watch his mana every time I did reps on the training cauldron. As a result, I threw together a quick mana check using MATCHRE. It will check to see if you have 20 mana or more, and send you to the appropriate label.
Feel free to adapt it for your own script if you know what you're doing. It won't work in the Wizard.
MATCHRE mana /Remaining: ([0-9]{3}|[2-9][0-9])$/
MATCHRE nomana /Remaining: ([0-9]{1}|[0-1][0-9])$/
put power
MATCHWAIT
Fair warning: If you double in harness power, this script might not work past level 300 or so.