Edit 4:
Solved
Finished product:
#showtooltip
/cast Fireblood(Racial)
/script if select(2, GetSpellCooldown(‘Fireblood(Racial)’)) == 0 then SendChatMessage(“I would like to RAGE!”, ‘yell’); end
Full credit goes to the user Motig on this thread https://www.wowinterface.com/forums/showthread.php?t=34496
So here’s what I’m trying to do:
I wanna make a macro which would yell “I would like to RAGE!” whenever I use the DI dwarf ability Fireblood. But I would also like to not have it be spammable. I would like to make it so that it only yells that when it’s not on cooldown.
Here’s the problem, I used to have a macro like this on my paladin (similar, but different) but I have no idea how I wrote it. Reasonably sure I asked for help from a buddy who actually knows how to write these things.
Any help would be greatly appreciated.
#showtooltip
/cast Fireblood(Racial)
is what I have so far. IIRC, the other macro in question had an if statement, something like
/run if GetSpellCooldown(“ABILITY”) == 0 and IsXKeyDown() then
Edit: I combined the two. I removed the “and isxkeydown(” bit. This is what I got:
#showtooltip
/run if GetSpellCooldown(“Fireblood(Racial)”) == 0) then
/yell I would like to RAGE!"
/cast Fireblood(Racial)
which produced a LUA error, and doesn’t restrict it based on cooldown (PS I’m testing this by myself inside the stockades dungeon, so I’m not bugging people)
Edit2:
I removed some of the quotes and looked at some other posts on this subject.
The result is as follows:
#showtooltip
/run if GetSpellCooldown(Fireblood(Racial)) == 0) then SendChatMessage(“I would like to RAGE!”,“yell”)end
/cast Fireblood(Racial)
Specifically:
-I removed the quotes inside the parenthesis on ‘GetSpellCooldown’
-I removed the /yell and exchanged that ‘then SendChatMessage(“I would like to RAGE!”,“yell”)end’
-it now no longer yells “I would like to RAGE” when Fireblood is on cooldown. BUT it still produces a LUA error.
Edit 3:
secondary testing indicates that the new macro only activates the ability, and does not yell anything.