Forum:Help with Macro for Spells with Cooldowns

Hi,

I have a paladin DPS and i have been trying to make a macro for a while. I play french servers so forgive me if i make mistakes in the names of the spells.

My macro consist of pressing one key to cast either Exorcism or Flash of Light when the talent Art of War kicks in.

The problem is, Exorcism has a cooldown period and everytime i press on the macro i would get an error such as "the spell is not ready" so i wanted to find out if there was any way to have a macro that would do go like this:

If Cooldown for Exorcism=0 Then /cast Exorcism(rank 9) else /cast Flash of Light(rank 9) End

I know this has nothing to do with the way it should be done but i want to give a rough idea of what i'm trying to accomplish. i found GetSpellCooldown(spellName | spellID, "bookType") on the website but i have no idea on how to apply it or how to declare it as a variable.

My aim is to take advantage of the talent during PvP as much as possible so that i can always either heal myself or inflict damage (in priority) when the talent "art of war" is active.

I am currently using "/castsequence exorcism (rank 9), flash of light(rank 9), flash of light(rank 9)" as my macro as the talent kicks in often and i always have the time to cast flash of light at least twice but this is not truly what i want to do.

Your help would be very much appreciated.

Nettiger.

--Nettiger (talk) 04:40, September 30, 2010 (UTC)