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 ?
HP_REST & MP_REST is using timer ???
Re: HP_REST & MP_REST is using timer ???
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.
Code: Select all
player:rest( 50, 99, "full", 10 )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.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: HP_REST & MP_REST is using timer ???
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 !
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 !