Page 1 of 1

bug? or maybe only me?

Posted: Sun Jul 10, 2011 5:27 pm
by botje
i am noticing more frequent lately, that when my bot rests, to heal up, it keeps running forward.

it used to just stop, and rest for the hp, but now it runs like intoo walls etc.

is this only me, or are more people experiencing this?

Botje

Re: bug? or maybe only me?

Posted: Sun Jul 10, 2011 11:12 pm
by rock5
It's possible that when we implemented "don't stop at waypoints" feature that we broke the resting feature. Resting is supposed to happen after combat before moving on isn't it? Is that when you are noticing the problem? Whe is it that it tries to rest but runs instead?

If it is failing to stop for player:rest() you can try adding this line to the function.

After line 2802 of player.lua

Code: Select all

function CPlayer:rest(_restmin, _restmax, _resttype, _restaddrnd)
Add

Code: Select all

keyboardRelease( settings.hotkeys.MOVE_FORWARD.key );
See if that helps.

Re: bug? or maybe only me?

Posted: Mon Jul 11, 2011 2:27 am
by botje
yes thats exactly when it happens, added that line, ill report back after some testing :)

botje

Re: bug? or maybe only me?

Posted: Mon Jul 11, 2011 8:27 am
by botje
yep, that seemed to do the trick :)

Botje

Re: bug? or maybe only me?

Posted: Mon Jul 11, 2011 8:33 am
by rock5
I'll add it to my next commit.

Re: bug? or maybe only me?

Posted: Mon Jul 11, 2011 8:39 am
by botje
thanx a lot mate ^.^

Botje