Jump to content

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
https://wrobot.eu/forums/topic/8898-blacklist-options/
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
        myGuidBlacklist.Add(wManager.Wow.ObjectManager.ObjectManager.Me.Target);

 

Link to comment
https://wrobot.eu/forums/topic/8898-blacklist-options/#findComment-41223
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...