Batman 9 Posted July 19, 2016 Share Posted July 19, 2016 How do I cast Mark of the Wild, Fortitude or any other buff on a nearby, friendly player that isn't in my party? Is there a spell condition that I do not see? I re-read the entire list twice. I see "Hostile Unit Near" and "Hostile Unit Near Target" but I desire OPPOSITE. Link to comment https://wrobot.eu/forums/topic/3424-cast-buff-on-nearby-friendly-players-not-in-party/ Share on other sites More sharing options...
Batman 9 Posted July 21, 2016 Author Share Posted July 21, 2016 Is something like this possible using the Fight Class creator GUI? Link to comment https://wrobot.eu/forums/topic/3424-cast-buff-on-nearby-friendly-players-not-in-party/#findComment-15853 Share on other sites More sharing options...
BetterSister 367 Posted July 22, 2016 Share Posted July 22, 2016 i doubt it's possible with xml Link to comment https://wrobot.eu/forums/topic/3424-cast-buff-on-nearby-friendly-players-not-in-party/#findComment-15924 Share on other sites More sharing options...
Droidz 2738 Posted July 24, 2016 Share Posted July 24, 2016 Hello, It is hard with xml fightclass, but you can try if you have knowbase with custom c#/lua condition and with "Not Spell is Lua/C# script". Link to comment https://wrobot.eu/forums/topic/3424-cast-buff-on-nearby-friendly-players-not-in-party/#findComment-16092 Share on other sites More sharing options...
Batman 9 Posted April 10, 2018 Author Share Posted April 10, 2018 Is this still not possible? Has it by any odd random chance been integrated? Perhaps with macro or option that I overlooked? Link to comment https://wrobot.eu/forums/topic/3424-cast-buff-on-nearby-friendly-players-not-in-party/#findComment-42313 Share on other sites More sharing options...
Marsbar 228 Posted April 11, 2018 Share Posted April 11, 2018 Untested but, c# condition: ObjectManager.GetObjectWoWPlayer().Where(x => x.PlayerFaction == ObjectManager.Me.PlayerFaction && !x.HaveBuff("Mark of the Wild") && x.GetDistance2D < 40).Count() > 0 Not Spell is C# Code - True in spell settings: Interact.InteractGameObject(ObjectManager.GetObjectWoWPlayer().Where(x => x.PlayerFaction == ObjectManager.Me.PlayerFaction && !x.HaveBuff("Mark of the Wild") && x.GetDistance2D < 40).FirstOrDefault().GetBaseAddress); SpellManager.CastSpellByNameLUA("Mark of the Wild"); Again.. completely untested. Might work for you. Also you'd want to add another condition to make sure you only do this out of combat. Edit: As a side note, I saw that in the fightclass editor there is a Optional General Setting called Additional C# code we could add a function in there which can be used in the conditions/spells and make it more clean. We could add: public List<WoWPlayer> GetUnbuffedFriendlies(string buffname) { return ObjectManager.GetObjectWoWPlayer().Where(x => x.PlayerFaction == ObjectManager.Me.PlayerFaction && !x.HaveBuff(buffname) && x.GetDistance2D < 40).ToList(); } Then in the condition and spell we can do things like - Condition: GetUnbuffedFriendlies("Mark of the Wild").Count() > 0 and spell: Interact.InteractGameObject(GetUnbuffedFriendlies("Mark of the Wild").FirstOrDefault().GetBaseAddress); SpellManager.CastSpellByNameLUA("Mark of the Wild"); Once again though... its all sudo code and is untested... Link to comment https://wrobot.eu/forums/topic/3424-cast-buff-on-nearby-friendly-players-not-in-party/#findComment-42323 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