WoWInterface - View Single Post - Script that can execute a macro upon changing (PvP) talents
View Single Post
10-16-20, 08:28 PM   #2
An Aku'mai Servant
DahkCeles's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2020
Posts: 34
I'm sure there's a much more elegant solution, but I came up with this quickly:

/run local f = CreateFrame("Frame") f:RegisterEvent("PLAYER_PVP_TALENT_UPDATE") f:SetScript("OnEvent", function() print("HelloWorld") end)

Or if you want to put it in an addon...

Lua Code:
  1. local f = CreateFrame("Frame")
  2. f:RegisterEvent("PLAYER_PVP_TALENT_UPDATE")
  3. f:SetScript("OnEvent", function()
  4.     print("HelloWorld")
  5. end)
  Reply With Quote