morris79 3 Posted August 1, 2018 Share Posted August 1, 2018 Hi gues, I am trying to make my LifeBloom be cast on my focus taget at all times. Need a string that sets Tank as my current focus target. The code I got so fare is. Cant get it to work. Plz help me #region get tanks List<WoWPlayer> getTanks() { List<WoWPlayer> ret = new List<WoWPlayer>(); public bool CastSpell(string name, wManager.Wow.ObjectManager.WoWObject obj) { if (!string.IsNullOrWhiteSpace(name) && obj != null) { var tmp = wManager.Wow.ObjectManager.ObjectManager.Me.FocusGuid; wManager.Wow.ObjectManager.ObjectManager.Me.FocusGuid = obj.Guid; new wManager.Wow.Class.Spell(name).Launch(false, false, false, "focus"); wManager.Wow.ObjectManager.ObjectManager.Me.FocusGuid = tmp; WoWPlayer p = new WoWPlayer(unit.GetBaseAddress); ret.Add(); } return false; } } #endregion Link to comment https://wrobot.eu/forums/topic/9883-need-help-with-flightclass-focus-target/ Share on other sites More sharing options...
Droidz 2738 Posted August 2, 2018 Share Posted August 2, 2018 Hello, he miss part of code, where do you have found it? Link to comment https://wrobot.eu/forums/topic/9883-need-help-with-flightclass-focus-target/#findComment-46296 Share on other sites More sharing options...
morris79 3 Posted August 2, 2018 Author Share Posted August 2, 2018 its a combination of serveral things. But mainly from forums and aio from Bettersister See attach file. So fare every thing is working, only setting Tank as focus target and NaturesSwiftness heals. There is sayes objeck not found. Will share the end result if working. Druid healing in 3.3.5a ported from 6.x by ME.cs Link to comment https://wrobot.eu/forums/topic/9883-need-help-with-flightclass-focus-target/#findComment-46310 Share on other sites More sharing options...
morris79 3 Posted August 2, 2018 Author Share Posted August 2, 2018 Thanks for your time and help ?appreciate it. Link to comment https://wrobot.eu/forums/topic/9883-need-help-with-flightclass-focus-target/#findComment-46311 Share on other sites More sharing options...
morris79 3 Posted August 5, 2018 Author Share Posted August 5, 2018 new update. Visual studio almost accept my code. #region get tanks List<WoWPlayer> getTanks() { List<WoWPlayer> ret = new List<WoWPlayer>(); var u = Party.GetPartyHomeAndInstance().Where(p => p.GetDistance < 80 && p.IsValid && !TraceLine.TraceLineGo(p.Position)); if (u.Count() > 0) { var p = ObjectManager.Me.FocusGuid; ObjectManager.Me.FocusGuid = unit; Lua.RunMacroText("/target focus"); ObjectManager.Me.FocusGuid = p; WoWPlayer p = new WoWPlayer(unit.GetBaseAddress); } if (ret.Count() == 0) { Logging.WriteError("CANNOT HEAL TANK IS TOO FAR OR NOT SET!!"); WoWPlayer v = new WoWPlayer(ObjectManager.Me.GetBaseAddress); ret.Add(v); } return ret; } #endregion still cant get the Unit to work. Marks it as red! Please help guys. will be the best restro druid flightclass if it just works. Druid healing in 3.3.5a ported from 6.x by ME.cs Link to comment https://wrobot.eu/forums/topic/9883-need-help-with-flightclass-focus-target/#findComment-46413 Share on other sites More sharing options...
Droidz 2738 Posted August 6, 2018 Share Posted August 6, 2018 You never assign variable "unit" iMod 1 Link to comment https://wrobot.eu/forums/topic/9883-need-help-with-flightclass-focus-target/#findComment-46429 Share on other sites More sharing options...
morris79 3 Posted August 7, 2018 Author Share Posted August 7, 2018 I am total new to this, I just know that if I set unit to u, it fails.Cant you help a noob out ? thanks Droidz Link to comment https://wrobot.eu/forums/topic/9883-need-help-with-flightclass-focus-target/#findComment-46460 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