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:
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_PVP_TALENT_UPDATE")
f:SetScript("OnEvent", function()
print("HelloWorld")
end)