Page 1 of 1

Must face target to attack

Posted: Sun Oct 10, 2010 7:50 pm
by xtremeuser
Hi,

Maybe due to some lag but occasionally I'm seeing the bot ingame, facing a mob, and if a small lag spike or anything, it will stay focused on that mob, while saying 'must face target to attack' pretty much. Sometimes it fixes it but lately I'm noticing it can be stuck like this for hours.... I was using a rogue in this case, it will cast shadow prison here and there but cannot use any attack skills.

Just wondering, is it built in to move when it gets this, and if so can we increase the range, seems mine is not moving far enough back when it does try to fix sometimes, and most times, it doesn't try to realign itself, eg take a step or 2 back.

Re: Must face target to attack

Posted: Sun Oct 10, 2010 8:47 pm
by rock5
I think this is due to the mob not really being where it looks like it is. Not sure what causes it but I noticed my rogue will still caste "Kick" and will eventually kill it with kick alone. Maybe kick doesn't require the mob to be in front of you.

Consider adding kick in your attack sequence for when this happens.

I expect, though, that it should disengage when it finds it isn't damaging the mob, so it shouldn't be staying with the same mob for hours. You don't have an insanely high value for MAX_FIGHT_TIME in your profile, do you?

Re: Must face target to attack

Posted: Tue Oct 12, 2010 11:21 pm
by xtremeuser
nope its set to 15, default. Might change it to like 5 though I guess. It still gets hit though, doesn't max fight time work both ways, eg if doesn't hit or be hit, then it breaks off? Besides the rogue still casts shadow prison, but no other attacks. Doesn't happen often but have seen it.

Re: Must face target to attack

Posted: Tue Oct 12, 2010 11:33 pm
by rock5
xtremeuser wrote:doesn't max fight time work both ways, eg if doesn't hit or be hit, then it breaks off?
I don't think so because there could be a number of reasons why you aren't getting hit eg. Root skil, shield spell that blocks damage etc.
xtremeuser wrote:Besides the rogue still casts shadow prison, but no other attacks. Doesn't happen often but have seen it.
Probably shadow prison, like kick, doesn't require the mob to be in front of you.

Re: Must face target to attack

Posted: Thu Oct 14, 2010 7:20 pm
by Giram
I have sometimes similar problem. It keeps tellin that same thing and i think i die because of that. I am w/r so i could use skill called shadow step to teleport next to that monster. How it would be possible to do shadow step for example time have passed like 5sec with one monster or can i check if monster health havent changed for a while?

Re: Must face target to attack

Posted: Thu Oct 14, 2010 8:14 pm
by rock5
Giram wrote:I have sometimes similar problem. It keeps tellin that same thing and i think i die because of that. I am w/r so i could use skill called shadow step to teleport next to that monster. How it would be possible to do shadow step for example time have passed like 5sec with one monster or can i check if monster health havent changed for a while?
You could add something like this to your onSkillCast section of your profile.

Code: Select all

player:update()
if player.Fighting then
    if( os.difftime(os.time(), player.lastHitTime) > 5 ) then -- more than 5 sec without damaging target
        player:cast("ROGUE_SHADOW_STEP");
    end
end
That might work although it might try to cast it more than once. Let me know if it doesn't work.