Jump to content

Need help with Flightclass Focus target


Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...