View Single Post
12-17-14, 07:13 PM   #1
Triksterism
A Wyrmkin Dreamwalker
 
Triksterism's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 54
Complicated macros

Hello everyone! Today I took some time to consolidate and update my repertoire of macros. However, I am having trouble with one of my macros.

I am deriving two of my macros from the following macro:

#showtooltip
/run local f,c="172106",IsInRaid()and "RAID" or IsInGroup(1)and "PARTY" or IsInGroup(2)and "INSTANCE_CHAT";if GetSpellCooldown(f)==0 and c then SendChatMessage("{rt1}" ..GetSpellLink(f).. " Active!{rt1}",c)end
/use !Aspect of the Fox

That macro works great. From it I've made two other macros:

#showtooltip Ancient Hysteria(Exotic Ability)
/castsequence reset=5 Call Pet 4
/run local f,c="90355",IsInRaid()and "RAID" or IsInGroup(1)and "PARTY" or IsInGroup(2)and "INSTANCE_CHAT";if GetSpellCooldown(f)==0 and c then SendChatMessage("{rt1}" ..GetSpellLink(f).. " Active!{rt1}",c)end
/use Ancient Hysteria(Exotic Ability)
/use Dismiss Pet

and

#showtooltip Gift of Chi-Ji(Exotic Ability)
/castsequence reset=5 Call Pet 5
/run local f,c="159931",IsInRaid()and "RAID" or IsInGroup(1)and "PARTY" or IsInGroup(2)and "INSTANCE_CHAT";if GetSpellCooldown(f)==0 and c then SendChatMessage("{rt8} Resurrecting %T {rt8}",c)end
/use [@mouseover,dead,help][dead,help]Gift of Chi-Ji(Exotic Ability)
/use Dismiss Pet

The reason for the /run script is to prevent me spamming chat when I am trying to use the aforementioned abilities. However, the Ancient Hysteria macro seems to work just fine, but my Gift of Chi-Ji macro doesn't seem to print target or anything.

Please help!
  Reply With Quote