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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...