bot wings away when in fight with some monsters

For everything NOT server specific support. Do NOT ask for connectivity help here!.

Moderator: Moderators

Malboro
Noob
Noob
Posts: 12
Joined: 09 Jul 2012, 16:29
Noob?: No

bot wings away when in fight with some monsters

#1 Post by Malboro »

Hey Guys,

i have a problem.
I am botting on a map where many people lvling. I placed the minPlayDistance to 10 that even on mobbing players, my char doesnt walk to there monsters.
But i have one problem.

If i am fighting with 3monsters. and someone walks beside me and is standing 6cells away. when my character kills the monsters hes fighting with, he teleports away, instead killing the other two whos attacking me.

how can i tell my bot that he have to kill the other two first?

i set in the moncontrol.txt the monster to 2 0 1
and in control.txt autoAttack to 2


Greetings
Malboro
Malboro
Noob
Noob
Posts: 12
Joined: 09 Jul 2012, 16:29
Noob?: No

Re: bot wings away when in fight with some monsters

#2 Post by Malboro »

i tested now some thing with debuging.

the count misses are increasing with every missed attack from the monsters.
so i tought about "okay, if a monster attacks me and misses its mine. so if monster->{missedYou} > 0 the monster attacks me and its fine.

but this doesnt seems to be the problem.
i hope someone can help me q.q
-
atm i am try to modifie the method who decideds which monster to attack.

i think the problem here is that if the first monster dies, he checks again for the other monster if all is okay. and the minPlayerDistance then blocks the attack.

so i have to include the missYou value from the monsters.

like this
(minPlayerDistance || monster->{missYou} > 0)


if i succsess i will tell you.
Malboro
Noob
Noob
Posts: 12
Joined: 09 Jul 2012, 16:29
Noob?: No

Re: bot wings away when in fight with some monsters

#3 Post by Malboro »

still need help. the problem is nmot fixed yet.