View Single Post
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