Okay I have a working hack that unlocks the protected lua functions in WoW (thanks to a contributor over at SkillHackers).
The only problem is when I run a macro I get this annoying error message if I am not in range of the target, or unable to cast the spell.
The first macro I tried was:
Code:
/script CastSpellByName("Sinister Strike");
I would get this error message:
A macro script has been blocked from an action only available to the Blizzard UI
I would not get that error as long as I was in range of the target and able to use the spell (having enough energy). The script did work though I just got an annoying message. Then it was suggested to me to use IsUsableSpell and IsSpellInRange checks so I made this macro:
Code:
/script useable=IsUsableSpell("Sinister Strike"); inrange=IsSpellInRange("Sinister Strike");if((usable)and(inrange)) then CastSpellByName("Sinister Strike"); end
I am still getting that error message though.
Any help?