Thread Tools Display Modes
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
07-25-08, 09:25 AM   #2
Alcinoe
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 4
Nevermind, just had my questioned answered by another player here at work. Yay for working with other WoW nerds ....


(it cannot be done, it creates an action protected by the blizzardui)
  Reply With Quote

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

Thread Tools
Display Modes

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