Jump to content

In BG avoid targeting opposing faction and chasing them


Recommended Posts

@Droidz

Is there any way I can prevent the bot (in my fightclass) to chase enemies in BGs? I'm a healer and want to do some healing. Target selection and all works in my fightclass, but the bot keeps targeting opposing faction players, chasing them and then not targeting/healing any of my teammates. It barely does what it should, unfortunately.

 

How can I fix this?

Link to comment
Share on other sites

I belive you need to write some beloved c# code. You could add a spell in the fightclass editor & set it as c#:

        if (wManager.Statistics.RunningTimeInSec() < 2)
        {
            robotManager.Helpful.Logging.Write("Register OnFightStart");
            wManager.Events.FightEvents.OnFightStart += delegate(WoWUnit unit, CancelEventArgs cancelable)
            {
                if ((int) unit.Reaction < 3)
                {
                    cancelable.Cancel = true;
                }
            };
            System.Threading.Thread.Sleep(2000);
        }

it will cancel all starting fights if unit is unfriendly or hostile. But i'm not sure how it will work in bg.

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...