Hunter tracking by name

A few changes to the API made this a fun little excercise…

/run for i=1,C_Minimap.GetNumTrackingTypes() do local info=C_Minimap.GetTrackingInfo(i);if (info.name=="Track Humanoids") then local status = not info.active; C_Minimap.SetTracking(i, status); end end

Change “Track Humanoids” to “Track Beasts” or Dragonkin or Demons or Undead or … etc. as necessary.

::Updated macro to print a message in the chat box.

/run for l=1,C_Minimap.GetNumTrackingTypes() do i=C_Minimap.GetTrackingInfo(l); if(i.name=="Track Humanoids")then t=not i.active; C_Minimap.SetTracking(l, t); m="OFF"; if(t)then m="ON"; end print("Track Humanoids "..m); end end

You have to change the “Track Humanoids” to whatever else in 2 places now.

3 Likes