Originally Posted by
mikeyd234
I'm having a brain freeze how do i run a macro in PQR again, is it RunMacroText?
Edit: Nvm it was that, here's a little Remove hand of protection and taunt ability i did:
PHP Code:
if UnitBuffID("player",1022) then
RunMacroText("/cancelaura Hand of Protection")
RunMacroText("/cast Provoke")
end
I try to stay away from RunMacroText, unless I really need it.
Code:
if UnitBuff("player", "Hand of Protection") then
CancelUnitBuff("player", "Hand of Protection")
CastSpellByName("Provoke", "target")
end
Also try to stick to one convention, either using spell ids or spell names, not both.