Jump to content

Make the bot run away from attacking target


Recommended Posts

9 hours ago, Droidz said:

Great stuff, but is it possible to only enable this for specific mobs? As in, if an elite is attacking you, ignore and keep running, but if normal mob is attacking, fight back.

Link to comment
Share on other sites

You can try code like:

        wManager.Events.FightEvents.OnFightStart += (target, cancelable) =>
        {
            if (target.Entry == 1233)
            {
                //wManager.wManagerSetting.AddBlackList(target.Guid, 1000 * 60 * 5, true);
                cancelable.Cancel = true;
            }
        };

(run this code only one time)

Link to comment
Share on other sites

 

3 hours ago, Droidz said:

You can try code like:

        wManager.Events.FightEvents.OnFightStart += (target, cancelable) =>
        {
            if (target.Entry == 1233)
            {
                //wManager.wManagerSetting.AddBlackList(target.Guid, 1000 * 60 * 5, true);
                cancelable.Cancel = true;
            }
        };

(run this code only one time)

 

This does stop fighting back, but the bot does not try to run away, instead just stands there, taking it. I'd like it to continue on its path even if it gets dismounted by an elite.

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...