Macro Find Minerals / Herbs Cataclysm

Evening.

I have recently come back to Cataclysm and found out that one of my macros is not working anymore.

I used to have this macro to switch between Find Herbs and Find Minerals, but I found out on a US forum post that they changed the API.

hunter-and-druid-tracking-only-usable-with-api-commands-2024-10-29-cataclysm-classic-update

I came up with a new version of the macro that works, but I know it is not optimal; sometimes it just clears all tracking from my minimap.

/cancelaura find minerals
/run C_Minimap.SetTracking(3, true)
/cancelaura find herbs
/run C_Minimap.SetTracking(4, true)

Do you think it can be improved? I do not want to use 2 slots of my active bar to switch between Find Herbs / Find Minerals.
I

1 Like

Try this

/run for i=3,4 do trackingInfo = C_Minimap.GetTrackingInfo(i) if trackingInfo.active then C_Minimap.SetTracking(i, false) else C_Minimap.SetTracking(i, true) end end

Checks if tracking index 3 then 4 are active, if they are disables them otherwise enables them.

2 Likes

It woooorks!!! Thank you very much. This is exactly like my old macro.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.