WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Cast spell by macro/Lua (https://www.wowinterface.com/forums/showthread.php?t=59693)

Benalish 10-18-23 01:27 PM

Cast spell by macro/Lua
 
There's a way to cast a spell in a Lua Script macro? This code

Lua Code:
  1. /run if GetTotemInfo(2) then CastSpellByName("Fire Nova"); else CastSpellByName("Searing Totem"); CastSpellByName("Fire Nova"); end

returns the "A macro script has been blocked..." error

Dridzt 10-18-23 03:55 PM

Quote:

Originally Posted by Benalish (Post 342865)
There's a way to cast a spell in a Lua Script macro? This code

Lua Code:
  1. /run if GetTotemInfo(2) then CastSpellByName("Fire Nova"); else CastSpellByName("Searing Totem"); CastSpellByName("Fire Nova"); end

returns the "A macro script has been blocked..." error

https://www.wowinterface.com/forums/...ad.php?t=42367


All times are GMT -6. The time now is 07:56 PM.

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