thirdchance57 0 Report post Posted March 13, 2017 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 0 Share this post Link to post Share on other sites
thirdchance57 0 Report post Posted March 13, 2017 ({GetSpellCooldown(GetSpellID("Stealth"),"spell")}) is the correct syntax 0 Share this post Link to post Share on other sites
WobLight 5 Report post Posted March 13, 2017 (edited) 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 March 13, 2017 by WobLight 0 Share this post Link to post Share on other sites
thirdchance57 0 Report post Posted March 14, 2017 (edited) 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 March 14, 2017 by thirdchance57 0 Share this post Link to post Share on other sites
thirdchance57 0 Report post Posted March 14, 2017 (edited) 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 March 14, 2017 by thirdchance57 0 Share this post Link to post Share on other sites
WobLight 5 Report post Posted March 14, 2017 (edited) 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 March 14, 2017 by WobLight 0 Share this post Link to post Share on other sites
thirdchance57 0 Report post Posted March 14, 2017 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 0 Share this post Link to post Share on other sites
Leviatha 0 Report post Posted May 19, 2017 post moved to different topic sorry! 0 Share this post Link to post Share on other sites
gamer4eg 24 Report post Posted May 25, 2017 В 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 0 Share this post Link to post Share on other sites