![]() |
Script that can execute a macro upon changing (PvP) talents
I have a macro that I would like to run every time I change a PvP Talent. Is that possible to do? Thanks guys!
|
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:
|
That's awesome! Do you think its possible to have that script activate a macro that's on my bars?
If it helps, this is the macro I'm running: #showtooltip /run local G=GetSpellInfo SetMacroSpell(GetRunningMacro(), G"Thoughtsteal" or G"Shadowfiend") I'm using it just for displaying the tooltip (to try and never see that blank "?" on my bars). |
https://wow.gamepedia.com/API_EditMacro
Before installing this script, create a macro called "myFavouriteMacro" and drag it to an action bar. You can turn the script into an addon using https://addon.bool.no/ Lua Code:
|
You are the motherf**king MVP thank you!!!
|
All times are GMT -6. The time now is 06:52 AM. |
vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI