Thread Tools Display Modes
09-13-08, 06:16 AM   #1
lordgreg
An Aku'mai Servant
 
lordgreg's Avatar
Join Date: May 2007
Posts: 36
Macro help: Elemental Mastery (if not on CD), then Lightning Bolt

Hi there,..

as the title says, i would like to create Macro, that would, if i write PSEUDO CODE, do this:

Code:
#showtooltip Lightning Bolt
if (Elemental Mastery is NOT on Cooldown) THEN
  /cast Elemental Mastery
endif

/cast Lightning Bolt

Why not just cast EM and cast LB? Well, because its really going on my nerves when i hear my shammy saying "Spell isn't ready yet" (referring to EM being on CD).

Any way to bypass this with simple IF statement? Disabling SFX doesn't work since this is Char Voice, not Sound Effect.

Please help me here.. no idea how to bypass this problem.

Thank you!
__________________
It's not a bug, it's a feature!
  Reply With Quote
09-13-08, 07:55 AM   #2
Sekrin
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 150
You can't cast a spell based on whether or not it (or another) is on cooldown. However, you can disable error speech in the In-game options.
__________________
  Reply With Quote
09-13-08, 10:51 AM   #3
Rigorous
Noggenfogger Anonymous
 
Rigorous's Avatar
Join Date: Jul 2006
Posts: 420
turn off error speech and add:

/script UIErrorsFrame:Hide()

before /cast Elemental Mastery

and:

/script UIErrorsFrame:Clear(); UIErrorsFrame:Show()

after it. this will hide the "Spell is not ready yet" on your screen as well.

or use Error Monster to permanently remove error (or just selected error) messages. (or just add the "/script UIErrorsFrame:Hide()" to another one of your addons and that's the end of 'em all).
__________________
"I guess I kinda lost control, because in the middle of the play I ran up and lit the evil puppet villain on fire. No, I didn't. Just kidding. I just said that to help illustrate one of the human emotions, which is freaking out. Another emotion is greed, as when you kill someone for money, or something like that. Another emotion is generosity, as when you pay someone double what he paid for his stupid puppet." - Jack Handy
  Reply With Quote
09-13-08, 12:14 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Originally Posted by Rigorous View Post
turn off error speech and add:

/script UIErrorsFrame:Hide()

before /cast Elemental Mastery

and:

/script UIErrorsFrame:Clear(); UIErrorsFrame:Show()

after it. this will hide the "Spell is not ready yet" on your screen as well.
Hide() and Show() are not needed and are overkill. You only need Clear().
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
09-14-08, 03:33 AM   #5
Rigorous
Noggenfogger Anonymous
 
Rigorous's Avatar
Join Date: Jul 2006
Posts: 420
i don't know the code, i got that trick from another site's macros forum way back when 2.0 went live.

if i gave the appearance of knowing what i'm doing....i apologize!
  Reply With Quote
09-14-08, 07:46 AM   #6
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
pError can remove this message for you.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Macro help: Elemental Mastery (if not on CD), then Lightning Bolt


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