1 corresponds to the first type of tracking in your tracking menu on your minimap, 2 is the second type. You may need to change it if Mining and Herbs are not your first two slots.


Code:
#showtooltip Find Herbs
/run _,_,active = GetTrackingInfo(1); if active == 1 then SetTracking(2); else SetTracking(1); end;