Hi,
I was just wondering if the GetSpellCooldown API in macros returns 0 when the spell is ready but the rune required is on cooldown. I'm very bad at chat API functions and can't make it print out the results to save my life.
Hi,
I was just wondering if the GetSpellCooldown API in macros returns 0 when the spell is ready but the rune required is on cooldown. I'm very bad at chat API functions and can't make it print out the results to save my life.
Anyways, nope, GetSpellCooldown always takes into account rune "cooldowns" (at least it did last I checked).Code:/dump GetSpellCooldown("Spell")
That actually works to my benefit. I'm trying to make my Blood Tap macro smarter. I know there are smart macros out there but I want the satisfaction from doing it myself. <-- is being selfish.
Hm, how exactly do you want to make it smarter? Can't use /run to perform spell casts.
Indeed the only thing I've seen GetSpellCooldown used successfully with is announcing abilities in chat,
(in which case I highly recommend RSA - Raeli's Spell Announcer).
Gershuun @ Borean Tundra US - Interface & Macros Moderator
Hi, guys!
I need make macro like:
if GetSpellCooldown(47014)==0 then s0=47014;
if GetSpellCooldown(50330)==0 then s0=50330;
CastSpellByID(s0);
how i must write. i did one, but WoW says: Only Blizzard interface you can use.
That's because CastSpellByID is protected to prevent the exact thing you're trying to do. Macros cannot decide based on spells' cooldowns.