Jump to content

morris79

Members
  • Posts

    39
  • Joined

  • Last visited

Posts posted by morris79

  1. 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
  2. This is not my code but from BetterSister, wolk Resto druid AIO. 

    I want to chance getTanks, toget it just from my focus target.

    I have zero program skilles, plz help.

    Thanks for your time and support.

           #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)
                {
                    foreach (var unit in u)
                    {
                        //Logging.WriteDebug("Unit name: " + unit.Name.ToString().Trim());
                        if (IsTank(unit.Name.ToString()))
                        {
                            WoWPlayer p = new WoWPlayer(unit.GetBaseAddress);
                            ret.Add(p);
                        }
                    }
                }
                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;
            }

    Druid healing in 3.3.5a ported from 6.x by ME.cs

×
×
  • Create New...