Jump to content

Blacklist options


Recommended Posts

Hi, how can I add npc to blacklist on a pull, combat or loot?

This code only gives ignore pull.

wManager.wManagerSetting.AddBlackListNpcEntry(111, true);

Like HB code

Blacklist.Add(Me.CurrentTarget, BlacklistFlags.Combat, TimeSpan.FromSeconds(120))
Blacklist.Add(Me.CurrentTarget, BlacklistFlags.Loot, TimeSpan.FromSeconds(120))


Link to comment
Share on other sites

Hello, you cannot blacklist for combat or loot only with default feature.

For blacklist current target for 120 sec for all tasks with default feature: 

wManager.wManagerSetting.AddBlackList(wManager.Wow.ObjectManager.ObjectManager.Me.Target, 1000 * 120, true);


You can create your own blacklist system (for combat only in this sample) like:

        System.Collections.Generic.List<object> myGuidBlacklist = new System.Collections.Generic.List<object>(); // (you can replace "object" by "Int128" or "ulong")
        wManager.Events.FightEvents.OnFightStart += (wManager.Wow.ObjectManager.WoWUnit unit, System.ComponentModel.CancelEventArgs cancelable) =>
            if (myGuidBlacklist.Contains(unit.Guid))
                cancelable.Cancel = true;

        // ..........

        // blacklist my target


Link to comment
Share on other sites

After loot nps is added to the blacklist, can this be set?

And there is one more question. Can I pause the activity of the bot (for example, quest profile) so that the plugin executes its code and turn it back on again.

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
  • Create New...