Page 1 of 1
HP_REST & MP_REST is using timer ???
Posted: Fri Feb 01, 2013 10:10 am
by Micke
Hi,
currently the bot is calculating, or better makes a rough guess, for duration to rest to reach a limit of hitpoints or mp.
but it isnt possible to calculate that for every case - thats why the bot often waits til the calculated time end up, altough hp == 100%
why not use the event UNIT_HEALTH, then bot will react precise without complex prophecy ?
Re: HP_REST & MP_REST is using timer ???
Posted: Fri Feb 01, 2013 12:56 pm
by rock5
The bot could very easily be very exact but if you don't have pots or healing spells to heal yourself and need to rest to recover, the bot adds a bit of randomness to the rests to look more natural. I believe this is the line that does the resting between battles
I believe this means rest a minimum of 50s, a maximum of 99s, stop resting if HP is full but rest an extra 1-10s more after being full.
Basically what this means is if you set your profile rest setting too high then your hp will always fully recover before the 50s are up. Maybe put your setting lower so it takes longer to fully recover and you don't waste as much time. Of course you can't put it so low that you risk dying. Or you could add your own accurate rest to the onLeaveCombat so the bots rest doesn't get triggered.
This is usually not an issue as newby characters get lots of pots from the gift bags and advanced characters can afford to buy pots or don't need them.
Re: HP_REST & MP_REST is using timer ???
Posted: Sat Feb 02, 2013 4:39 am
by Micke
hi rock,
wrote u 2 answers before i've got that u understood what i mean
finally i removed the randomness value, and now it works as expected
thnx !