March 13, 20188 yr 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))
March 13, 20188 yr 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);
March 13, 20188 yr Author 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.
Create an account or sign in to comment