Page 1 of 1

Picking up buffs

Posted: Mon May 31, 2010 8:17 am
by 3cmSailorfuku
Is the bot supposed to not pick them up, eg. move to the middle of the corpse? When I used earlier builds the bot moved a little forwards after a killed mob. I want to know if it's a bug, or feature since I started to use the bot again since Rev 447.

Re: Picking up buffs

Posted: Mon May 31, 2010 8:44 am
by filipsworks
It's for RoM/RA?

Can U Move that topic?

Re: Picking up buffs

Posted: Mon May 31, 2010 9:37 am
by Administrator
I guess you can consider this a feature. Having the bot always move forward in an attempt to collect a buff was considered to be too bot-like, so it was changed to happen randomly sometimes. That is, if I remember correctly.

Re: Picking up buffs

Posted: Mon May 31, 2010 11:51 am
by 3cmSailorfuku
Administrator wrote:I guess you can consider this a feature. Having the bot always move forward in an attempt to collect a buff was considered to be too bot-like, so it was changed to happen randomly sometimes. That is, if I remember correctly.
Do you know which part of the code manages the random seed? I can't remember that this happened ever.

Re: Picking up buffs

Posted: Sun Jun 06, 2010 7:20 am
by rock5
3cmSailorfuku wrote:Do you know which part of the code manages the random seed? I can't remember that this happened ever.
I believe it's line 1008 of player.lua. Looks like the odds are set to 1 in 5 to pick up the buff.

Re: Picking up buffs

Posted: Sun Jun 06, 2010 11:31 am
by 3cmSailorfuku
rock5 wrote:
3cmSailorfuku wrote:Do you know which part of the code manages the random seed? I can't remember that this happened ever.
I believe it's line 1008 of player.lua. Looks like the odds are set to 1 in 5 to pick up the buff.
I found out what the issue was, when the bot would move in to get the buff, it's actually still busy with looting in my case. Had to include a yrest(500) before it would press W to execute it after looting.