Hi, i have a script that changes my spec each time i click the button and i was wondering how i can add to it so that it also shows/hides an addon. here is the script:
/script if (GetActiveTalentGroup() == 2) then SetActiveTalentGroup(1); DEFAULT_CHAT_FRAME:AddMessage("Main Spec"); else SetActiveTalentGroup(2) DEFAULT_CHAT_FRAME:AddMessage("Off Spec"); end
so basically i want to add /addonname show and /addonname hide so that it will hide/show whenever i change spec.