WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Need help with conditional mage macro (https://www.wowinterface.com/forums/showthread.php?t=17350)

Alcinoe 07-25-08 09:13 AM

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

Alcinoe 07-25-08 09:25 AM

Nevermind, just had my questioned answered by another player here at work. Yay for working with other WoW nerds ....
:p

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


All times are GMT -6. The time now is 01:58 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI