August 1, 20187 yr 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
August 2, 20187 yr Author 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
August 5, 20187 yr Author 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
August 7, 20187 yr Author 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
Create an account or sign in to comment