From time to time, I noticed one of my atls that have both gathering professions stop finding one or the others. I checked weak aura for something but I could only find something for classic which does not work for war within.
Is there a function that I can use to let me know if the alt has mining/ herbing but one or the other is not checked to find. I think (hope) that is all I need to create my own weak aura…
This is how I might do it in code so you should be able to get from it what you need:
local function CheckTracking()
local find = { [2383]="Herbs", [2580]="Minerals", }
local found = { [2383]=true, [2580]=true, }
for i=1, C_Minimap.GetNumTrackingTypes() do
local info = C_Minimap.GetTrackingInfo(i)
if find[info.spellID] and info.active then
found[info.spellID]=nil
end
end
for k, v in pairs(found) do
print(format("Not active: Find %s", find[k]))
end
end
local ticker = C_Timer.NewTicker(3, CheckTracking)
Edit: After a quick check you could probably use the MINIMAP_UPDATE_TRACKING
event rather than a timer/OnUpdate.
Weak Aura did not like let… I’ve never created a weak aura before. I might be doing something wrong.
I do know a little programming just not WoW code. I’m able to read what you are trying to do. I’ll do some more research based on what you have… should be a good starting point.