happiness7 3 Posted September 14, 2017 Share Posted September 14, 2017 Hello. In first I want to ask C# code for getting attackable and alive nearest mob by Entry. Some like this, but need only alive. wManager.Wow.ObjectManager.ObjectManager.GetNearestWoWUnit(wManager.Wow.ObjectManager.ObjectManager.GetWoWUnitByEntry()) And i'm interested in analog "AvoidMobs" from HB. I need fully blacklist one boss so as not touch him in combat and just ignore <QuestsSorted Action="RunCode" NameClass="wManager.wManagerSetting.AddBlackListNpcEntry(111)" /> not work for it and <QuestsSorted Action="RunCode" NameClass="wManager.Wow.Helpers.Conditions.ForceIgnoreIsAttacked = true;" /> not work for it when quest pulse Link to comment https://wrobot.eu/forums/topic/7086-alive-near-mobs-by-entry-c-avoidmobs-hb/ Share on other sites More sharing options...
iMod 99 Posted September 14, 2017 Share Posted September 14, 2017 (edited) WoWUnit unit = ObjectManager.GetObjectWoWUnit().OrderBy(u => u.GetDistance2D).FirstOrDefault(u => u.Entry == 1234 && u.IsAlive); replace 1234 with your id you are looking for. "Not working" means nothing happens or do you get errors? Edited September 14, 2017 by iMod happiness7 1 Link to comment https://wrobot.eu/forums/topic/7086-alive-near-mobs-by-entry-c-avoidmobs-hb/#findComment-32071 Share on other sites More sharing options...
happiness7 3 Posted September 14, 2017 Author Share Posted September 14, 2017 <QuestsSorted Action="RunCode" NameClass="wManager.wManagerSetting.AddBlackListNpcEntry(111)" /> nothing happens "wManager.Wow.Helpers.Conditions.ForceIgnoreIsAttacked = true" - its stop ignore fight when pulse "KillAndLoot" quest and killing all who attacks bot Link to comment https://wrobot.eu/forums/topic/7086-alive-near-mobs-by-entry-c-avoidmobs-hb/#findComment-32072 Share on other sites More sharing options...
happiness7 3 Posted September 16, 2017 Author Share Posted September 16, 2017 Wrobot does not have any analogues option for ignoring mobs like <AvoidMobs> in Honorbuddy? Maybe i can add some c# conditions for fight class? Link to comment https://wrobot.eu/forums/topic/7086-alive-near-mobs-by-entry-c-avoidmobs-hb/#findComment-32157 Share on other sites More sharing options...
happiness7 3 Posted September 18, 2017 Author Share Posted September 18, 2017 On 16.09.2017 at 3:57 PM, happiness7 said: Wrobot does not have any analogues option for ignoring mobs like <AvoidMobs> in Honorbuddy? Maybe i can add some c# conditions for fight class? bump Link to comment https://wrobot.eu/forums/topic/7086-alive-near-mobs-by-entry-c-avoidmobs-hb/#findComment-32276 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