This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.5
PTR
10.2.6
GCD check macro?
Post Reply
Return to board index
Post by
1031273
This post was from a user who has deleted their account.
Post by
RealUnimportant
No such capability exists within macros. An addon would be able to access the necessary functions to determine remaining cooldowns, perhaps you could hook a chat function into one of those that already exists.
Post by
Mike
No such capability exists within macros. An addon would be able to access the necessary functions to determine remaining cooldowns, perhaps you could hook a chat function into one of those that already exists.
I can tell you it does exist, but no longer have it (actually recently deleted it from my saved macros :( )
I used it back in wrath to check the global cooldown when using any ability casted using the macro. mainly for Rejuvenation with the lower GCD talents.
Post by
pelf
Here's what I've found.
start, duration, enable =
GetSpellCooldown
(index, "bookType") or
GetSpellCooldown
("name") or
GetSpellCooldown
(id)
You can use that like this...
/cast Rejuvenation
/run print(format("Cooldown: %g",select(2,GetSpellCooldown("Rejuvenation"))))
I'm sure someone here could write that more cleanly, but it works. With no gear on, the output is...
Cooldown: 1.5
...with my gear on, the output is...
Cooldown: 1.4
...with half my gear on, the output is...
Cooldown: 1.453
Post by
RealUnimportant
Ah, I was interpreting the request as a macro command, rather than a script fragment. My bad :)
Post by
pelf
Ah, I was interpreting the request as a macro command, rather than a script fragment. My bad :)
Well, I'll allow that I was completely wrong in my interpretation as well
~_<
. Let's hope one of us got it!
Post by
Headspace
If you want to have a PowerShift macro for cat form and don't want to end up in caster form when the Global Cooldown (GCD) is active then you could use the following macro.
Im definitely not a macro expert and never created one, but somehow this works. If it looks stupid but works, it ain't stupid ;-)
/script local gcd=GetSpellCooldown("Cat Form"); if gcd=0 then CancelPlayerBuff("Cat Form") end;
/stopmacro
/cast Cat Form(Shapeshift)
/cast !Cat Form
/startattack
Post by
Darkwoid
Thank you very much! I was looking for this macro 2 days before I have seen this post. It works exactly I wanted! Thanks!
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.