Slow attack after loot

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

Message
Author
zCasanova
Noob
Noob
Posts: 19
Joined: 01 Jul 2009, 13:18
Noob?: No

Slow attack after loot

#1 Post by zCasanova »

I've noticed that after looting, my bot doesn't immediately attack the next monster onscreen - instead, it will return to its route path, after which it will then return to attack another monster. It is hard to describe, but I have noticed that other bots on the server (iRO) are doing the same thing.

The sequence should look like: attack -> loot -> attack -> loot

Instead it looks like: attack -> loot -> route -> attack -> loot -> route -> attack

This happens when there are available monsters to be attacked within kore's sight distance - it simply doesn't initiate the attack process without first returning to its route path first.

If multiple aggressives are attacking kore, it will kill them all back-to-back, but will display this behavior again once the attack sequence has completed and it must find another monster to attack.

This makes the bot look extremely obvious when botting a nonaggressive map and it slows down leveling.

I can't find anything on the forums regarding this. I have played with my timeouts and configs for several days to make sure it wasn't a mistake on my end, but as I mentioned above, other bots on the server on showing the same symptoms.

Oddly enough, if I turn off looting, this behavior goes away - is this is known bug with kore's loot code?

User avatar
SkylorD
Moderators
Moderators
Posts: 1167
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: Slow attack after loot

#2 Post by SkylorD »

Learn rules

zCasanova
Noob
Noob
Posts: 19
Joined: 01 Jul 2009, 13:18
Noob?: No

Re: Slow attack after loot

#3 Post by zCasanova »

It isn't a timeout issue - the bot actually returns to pathing prior to attacking available mobs within its sight, i.e., if its calc route destination is away from the mob, the bot will head that direction first, then return in the opposite direction to attack the mob after taking several steps.

I have played with my config and timeouts and the only way I can resolve this behavior is by turning off looting.

vitriol
Plain Yogurt
Plain Yogurt
Posts: 61
Joined: 19 Apr 2011, 23:26
Noob?: No

Re: Slow attack after loot

#4 Post by vitriol »

zCasanova wrote:the bot actually returns to pathing prior to attacking available mobs within its sight
this indicates that it is a timeout issue. I immediately see two parameters that could cause this behavior. And one of them is in the timeouts.txt file but is missing from the wiki.

Johan Liebert
Noob
Noob
Posts: 4
Joined: 11 Aug 2015, 08:40
Noob?: Yes

Re: Slow attack after loot

#5 Post by Johan Liebert »

It actually might be.

Try lowering

Code: Select all

# Check for monsters to attack every x seconds
ai_attack_auto 0.5
It's likely taking half a second to rescan for monsters and that's the effect you're seeing. Try lowering it to 0.3 or 0.01. Depending on how lag free you are.

User avatar
SkylorD
Moderators
Moderators
Posts: 1167
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: Slow attack after loot

#6 Post by SkylorD »

http://www.openkore.com/index.php/AttackMaxDistance

Funny my bot attack->loot->attack->loot->route when no monster
Learn rules

Locked