View Single Post
07-03-09, 09:13 AM   #1
Rhamses
A Theradrim Guardian
Join Date: Jun 2009
Posts: 61
macro in Addon syntax

I have nearly completed the revisions I like. But, I am still perplexed by

summonButton:SetAttribute('macrotext', '/cast '..(Locale.Spells.FastCast or "").."\n/cast "..summon)

This will try to cast "fast cast" (Fel Domination)
Then it summons the pet.

But, if FD is on CD, then it gives error sound and error text, but it still completes the pet summon. I would like to remove the error. In a macro, I use


/console Sound_EnableSFX 0

/cast
/cast

/script UIErrorsFrame:Clear()
/console Sound_EnableSFX 1

Could someone help me combine the two?


Rhamses