View Single Post
10-16-20, 11:39 AM   #4
Cretch21
A Murloc Raider
Join Date: Oct 2020
Posts: 6
On Reddit, user "Draakex" was able to show me a script he/she uses that is almost what I'm looking for.

local frame = CreateFrame("FRAME", "PvPTalentMacros");
frame:RegisterEvent("PLAYER_PVP_TALENT_UPDATE");
frame:RegisterEvent("ADDON_LOADED");
frame:RegisterEvent("PLAYER_ENTERING_WORLD");
local function eventHandler(self, event, ...)
for mi = 1, _G.MAX_ACCOUNT_MACROS + _G.MAX_CHARACTER_MACROS do
local name, icon, body = GetMacroInfo(mi)
local currentSpec = GetSpecialization()
local playerClass, englishClass = UnitClass("player")
if englishClass == "PRIEST" and currentSpec == 1 then
print(englishClass,currentSpec,name)
if string.find(body,"Archangel") then
local G=GetSpellInfo SetMacroSpell(name, G"Archangel(PvP Talent)" or G"Dark Archangel(PvP Talent)")
break
end
end
end
end
frame:SetScript("OnEvent", eventHandler);

The only difference is that it displays two different PvP Talents. I would like a script that either displays the PvP Talent if its talented, or displays a baseline ability if its not.
  Reply With Quote