Donkomon 0 Posted March 13, 2018 Share Posted March 13, 2018 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 More sharing options...
Droidz 2738 Posted March 13, 2018 Share Posted March 13, 2018 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 More sharing options...
Donkomon 0 Posted March 13, 2018 Author Share Posted March 13, 2018 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 https://wrobot.eu/forums/topic/8898-blacklist-options/#findComment-41225 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now