Thread Tools Display Modes
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
10-18-23, 03:55 PM   #2
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Originally Posted by Benalish View Post
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
  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