Stuck at attacking monster

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderators: Moderators, Developers

User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: Stuck at attacking monster

#11 Post by kLabMouse »

sofax222 wrote: Where is the "Quick-mod tools" should be shown ?
I can not find it !
So, I has no this function !?
At the bottom of the page.

When I get home, I will check your rights.
sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

Re: Stuck at attacking monster

#12 Post by sofax222 »

kLabMouse wrote:
sofax222 wrote: Where is the "Quick-mod tools" should be shown ?
I can not find it !
So, I has no this function !?
At the bottom of the page.

When I get home, I will check your rights.
Thank you very much !
I got it. It is at bottom og the page !
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Stuck at attacking monster

#13 Post by EternalHarvest »

So, why it got reversed and using default ai_attack_giveup timeout now?

AI::Attack::shouldGiveUp already checks timeOut($args->{ai_attack_giveup}) (disregarding special options and bug position countermeasures), so !timeOut($args->{ai_attack_giveup}) will usually be true anyway.

It looks like original idea was something like "if there was no damage in either direction for 0.5 seconds and monster is too far, move", no?
sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

Re: Stuck at attacking monster

#14 Post by sofax222 »

EternalHarvest wrote:So, why it got reversed and using default ai_attack_giveup timeout now?

AI::Attack::shouldGiveUp already checks timeOut($args->{ai_attack_giveup}) (disregarding special options and bug position countermeasures), so !timeOut($args->{ai_attack_giveup}) will usually be true anyway.

It looks like original idea was something like "if there was no damage in either direction for 0.5 seconds and monster is too far, move", no?
Actially, I can not figure out the original code "timeOut($args->{ai_attack_giveup}, 0.5)" what for.

But, I trace the value of timeOut($args->{ai_attack_giveup}, 0.5), it will be "false", then the character stuck on attacking, or stuck with using skill.
zCasanova
Noob
Noob
Posts: 19
Joined: 01 Jul 2009, 13:18
Noob?: No

Re: Stuck at attacking monster

#15 Post by zCasanova »

I can finally take plants & mushrooms off my ignore list.
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Stuck at attacking monster

#16 Post by EternalHarvest »

sofax222 wrote:I can not figure out the original code "timeOut($args->{ai_attack_giveup}, 0.5)" what for.
It looks like the intention was to do

Code: Select all

timeOut($args->{ai_attack_giveup}{time}, 0.5)
zCasanova
Noob
Noob
Posts: 19
Joined: 01 Jul 2009, 13:18
Noob?: No

Re: Stuck at attacking monster

#17 Post by zCasanova »

After the last update, my characters have been getting stuck again.
sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

Re: Stuck at attacking monster

#18 Post by sofax222 »

zCasanova wrote:After the last update, my characters have been getting stuck again.
What version you update to ?
How to stuck ?

I update to r7762, and it is fine !