2008-08-31, 03:35 PM
tzk221 Wrote:Which is what I did. My HP is 2788 and MP is 1837. If HP<1250 and MP>1200, use barb. If HP<1800 and MP<1200, use pizza. If else, wait.
Works really well. I think I overpotted only 100 HP during the entire time.
Code:
function pot()
{
if (hp<1250) && (mp>1200) {
eat(barb);
}
elseif (hp<1800) && (mp<1200) {
eat(pizza);
}
else {
setTimeout("pot()",1000);
}(yay for javascript...? ._.)

