When i'm going to bot with team i have problem with aggro freeze. If my character attack 1st its averything ok. If someone else attack before me and get in combat then my client freeze to leave combat and MM masssage is:
-- stop moving if aggro, bot will stand and wait until to get the target from the client
-- only if not in the fight stuff coding (means self.Fighting == false )
if( self.Battling and -- we have aggro
self.Fighting == false and -- we are not coming from the fight routines (bec. as melee we should move in fight)
waypoint.Type ~= WPT_TRAVEL and -- only stop if not waypoint type TRAVEL
os.difftime(os.time(), player.LastAggroTimout ) > 10 ) then -- dont stop 10sec after last aggro wait timeout
keyboardRelease( settings.hotkeys.MOVE_FORWARD.key );
keyboardRelease( settings.hotkeys.ROTATE_LEFT.key );
keyboardRelease( settings.hotkeys.ROTATE_RIGHT.key );
success = false;
failreason = WF_COMBAT;
break;
end;
-- stop moving if aggro, bot will stand and wait until to get the target from the client
-- only if not in the fight stuff coding (means self.Fighting == false )
if( self.Battling and -- we have aggro
self.Fighting == false and -- we are not coming from the fight routines (bec. as melee we should move in fight)
waypoint.Type ~= WPT_TRAVEL then -- only stop if not waypoint type TRAVEL
if self:findEnemy(true, nil, evalTargetDefault) then
success = false;
failreason = WF_COMBAT;
break;
end
end;
See if that behaves as expected. Then let me know and I'll commit it.
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
wizzyslo wrote:Works much better only add ")" before "then" in >>waypoint.Type ~= WPT_TRAVEL then<< toke me prity long time to find what is wrong
I noticed another section that waits 4 seconds for aggro. Do you notice it waiting 4 seconds for aggro when in parties or does it completely ignore party members aggro?
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.