Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Customization » nUI: Developer Chat » macro in Addon syntax


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off