View Single Post
10-16-20, 08:28 PM   #2
DahkCeles
A Cliff Giant
 
DahkCeles's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2020
Posts: 73
I'm sure there's a much more elegant solution, but I came up with this quickly:

Code:
/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