Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Take my Focus target as Tank

Featured Replies

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

  • 1 month later...
      #region get tanks
        List<WoWPlayer> getTanks()
        {
          // Focus set?
          if(ObjectManager.Me.FocusObj != null)
          {
          	// Return list with the focus object
          	return new List<WoWPlayer>(){ObjectManager.Me.FocusObj};
          }
          
          // Return empty list
          return new List<WoWPlayer>();
        }

This is just a quick and dirty solution.

Edited by iMod

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.