Page 1 of 1

Bot does not use any spells

Posted: Sat Jul 07, 2012 4:09 am
by romaniac
I have a weird problem with a goblin mine script. The bot runs its course and attacks the mobs, but it does not use any spells in combat. The script is called by loadpaths() from another script that navigates to the goblin mine.

- if I run the script with a mage char, it works
- if I call the script directly, it works
- on the console there are many warnings "target dist > MAX_TARGET_DIST with battling from other mob"

Settings in OnLoad are
changeProfileOption("COMBAT_DISTANCE", 50 )
changeProfileOption("DEBUG_TARGET",true)
changeProfileOption("COMBAT_RANGED_PULL",true)
changeProfileOption("MAX_TARGET_DIST",200)

What does this message mean?

Re: Bot does not use any spells

Posted: Sat Jul 07, 2012 5:03 am
by rock5
You say that if you start the script directly, it works. Is it possible a previous script disables your skills such as the AT script? I fixed that but maybe you are using an older script? Or maybe you changed character without reloading the profile and the profile it's using doesn't have skills for the current class?

Re: Bot does not use any spells

Posted: Sat Jul 07, 2012 5:46 am
by romaniac
I checked that, the previous script does not meddle with skills in any way. There was no reloggin/char change.

What does the debug message "target dist > MAX_TARGET_DIST with battling from other mob" mean?

Re: Bot does not use any spells

Posted: Sat Jul 07, 2012 6:15 am
by rock5
With COMBAT_DISTANCE set to 50 and MAX_TARGET_DIST set to 200, any mob between those distances wil be detected. "with battling from other mob" just means you found a target but you have already aggroed a different mob.

You say that it attacks the mobs but doesn't use skills. What does it say in MM? Does it say that the bot is trying to use the skills at least? Copying the MM window here, might be useful.

Re: Bot does not use any spells

Posted: Sat Jul 07, 2012 6:21 am
by romaniac
No, the bot is not trying to cast anything.

It must be connected to the debug message somehow - i do not see the "battling from other mob" if I run the script directly and the casts are working.

Re: Bot does not use any spells

Posted: Sat Jul 07, 2012 6:28 am
by rock5
Yes, but what does it say? Does it say "Target Aquired"? Does it say "Moving in range"? Or does it only attack after aggroing a mob? Even then, does it say "waiting for aggro"? Does it say "Not targeting mob because type is travel"?

Are you saying that when you use debug it doesn't work but when you don't use debug it does?

Re: Bot does not use any spells

Posted: Sat Jul 07, 2012 6:58 am
by romaniac
The screenshot will take until tommorw as the goblin mine is a daily.

The problem occurs with and without debug mode, I just activated debug hoping to see more.