Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-18-23, 01:27 PM   #1
Benalish
A Flamescale Wyrmkin
 
Benalish's Avatar
Join Date: Dec 2012
Posts: 123
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

Last edited by Benalish : 10-18-23 at 01:30 PM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Cast spell by macro/Lua


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