Script that checks if I learned PvP Talent and display tooltip accordingly
Hey guys, I'm looking to see if its possible to create a script that can identify if I've chosen a specific PvP Talent and then display it on my bars. If I haven't chosen that specific PvP Talent, it would then display a different (baseline) ability. Does it sound doable? Thank you!
|
And if someone develops this there will definitely be a donation headed your way!
|
I remember this beeing not possible as it is not supported by the Blizzard API since they switched from the Legion design to the BfA / SL design.
|
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. |
All times are GMT -6. The time now is 10:48 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI