This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Classic Theme
Thottbot Theme
Druid Macro Help (Innervate)
Post Reply
Return to board index
Post by
190992
This post was from a user who has deleted their account.
Post by
HighFive
#showtooltip
/run if GetSpellCooldown("Innervate")==0
and UnitExists"target"
then SendChatMessage("---> Innervate on %T <---","party") end
/cast Innervate
edit: actually, before someone tops me, I'll top myself.#showtooltip
/run if GetSpellCooldown("Innervate")==0
and UnitExists"target" and UnitIsFriendly("player", "target")
then SendChatMessage("---> Innervate on %T <---","party") end
/cast Innervate
Post by
pelf
Forgot the part where: ", but instead say my name in place if I am not targeting anyone?".
Oh and while you're at it, how about it says what your cooldown is if it's not up and prints in raid you're in a raid and party if you're in a party and not at all if you're alone.
:)
Post by
190992
This post was from a user who has deleted their account.
Post by
190992
This post was from a user who has deleted their account.
Post by
RedwoodElf
/run if GetSpellCooldown("Innervate")==0 and UnitExists("target") and UnitIsFriendly("player", "target") then SendChatMessage("---> Innervate on %T <---","party") endI know that lua allows you to ignore () in function calls, but it's still not good programming practice.
Post by
HighFive
That wasn't the problem, though. I shouldn't have posted the script without checking if I have the api functions right first.
Proper:#showtooltip
/run if GetSpellCooldown("Innervate")==0
and UnitExists"target" and UnitIsFriend("player", "target")
then SendChatMessage("---> Innervate on %T <---","party") end
/cast Innervate
edit:Oh and while you're at it, how about it says what your cooldown is if it's not up and prints in raid you're in a raid and party if you're in a party and not at all if you're alone.
:)What I could come up with is slightly above the char limit, unfortunately.
Post by
Wanderingfox
wouldn't UnitIsFriend("player", "target") be sufficient to check for target status? Pretty sure that returns nil if there isn't a target so it will only return true if you have a friendly target :P
Post by
HighFive
Sure but then there's the cooldown thing and raid check. It might actually be squeezable without the showtooltip line or a shorter message.
Post by
pelf
Silly macro size limit.
Post by
213828
This post was from a user who has deleted their account.
Post by
Wildhorn
I know that lua allows you to ignore () in function calls, but it's still not good programming practice.
Really? I didnt know that :O
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.