Jump to content
Sign in to follow this  
thirdchance57

cooldown macro

Recommended Posts

hi i'm trying to check for spell cooldown with 

GetSpellCooldown(49)

but it always come back with the nil

i try GetSpellInfo(49)  but i get the same..

did they disable this or something? i see many other people using this macro outside of elysium 

Share this post


Link to post
Share on other sites
31 minutes ago, thirdchance57 said:

({GetSpellCooldown(GetSpellID("Stealth"),"spell")}) is the correct syntax

Is this a quote from a post of mine? GetSpellID is likely a custom function of mine, you will need to define it to get it working.

Try to replace SpellName with you actual spell name in following macro, it will show a number in your chat frame if on cd, 0 otherwise.

/run local i,a,sn sn="SpellName" i=0 while a~=sn do i=i+1 a=GetSpellName(i,"spell")end DEFAULT_CHAT_FRAME:AddMessage(GetSpellCooldown(i,"spell") or "nil")

or you can use this to find the correct spell id

/run local i,a,sn sn="SpellName" i=0 while a~=sn do i=i+1 a=GetSpellName(i,"spell")end DEFAULT_CHAT_FRAME:AddMessage(i)

 

Edited by WobLight

Share this post


Link to post
Share on other sites

yes thank you very much.. i wish this form had a search function i'd found your post a lot easier

any idea of the syntax for UnitCastingInfo("target") and UnitChannelInfo("target")  ?

thanks

Edited by thirdchance57

Share this post


Link to post
Share on other sites

Here i had to change "spell" to "pet" because its the spell of my Felhunter

/run local i,a,sn sn="Spell Lock" i=0 while a~=sn do i=i+1 a=GetSpellName(i,"pet")end DEFAULT_CHAT_FRAME:AddMessage(GetSpellCooldown(i,"pet") or "nil")
 

making progress 

Edited by thirdchance57

Share this post


Link to post
Share on other sites
30 minutes ago, thirdchance57 said:

Here i had to change "spell" to "pet" because its the spell of my Felhunter

/run local i,a,sn sn="Spell Lock" i=0 while a~=sn do i=i+1 a=GetSpellName(i,"pet")end DEFAULT_CHAT_FRAME:AddMessage(GetSpellCooldown(i,"pet") or "nil")
 

making progress 

What do you need exactly?

EDIT:

By the way, GetSpellInfo doesn't exist in vanilla.

Edited by WobLight

Share this post


Link to post
Share on other sites

a macro for spell lock to put in my spam hammer all button. dont think its possible because UnitCastingInfo() and UnitChannelingInfo() doesnt seem to be in the 1.12 API 

Share this post


Link to post
Share on other sites
В 13.03.2017 в 22:21, thirdchance57 сказал:

hi i'm trying to check for spell cooldown with 

GetSpellCooldown(49)

but it always come back with the nil

i try GetSpellInfo(49)  but i get the same..

did they disable this or something? i see many other people using this macro outside of elysium 

Use LazyScript addon for macros.
The textbook is built into the addon.
It allows you to make macros for any number of actions.

For use lazyscropt profile use macro: /lazyscript profilename

https://github.com/laytya/LazyScript

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×