Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-25-08, 09:13 AM   #1
Alcinoe
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 4
Need help with conditional mage macro

Hey all, I'm wanting to write a macro for my wife (a mage) that will let her cast Arcane Blast, unless Clearcasting has proc'd, in which case it will cast Arcane Missiles.

I'm at work right now and can't log in to check if this will work or not, and I seem to remember reading somewhere that this sort of "if x then do y" scripting doesn't work anymore.

Here's what I have. What do you all think?

/script local q; local t;for i=0,15,1 do t=GetPlayerBuffTexture(i); if (t and string.find(t, "ManaBurn")) then q=1; break; end; end; if(q ~= nil) then CastSpellByName("Arcane Blast()") else CastSpellByName("Arcane Missiles()"); end
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Need help with conditional mage macro


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