Hello guys and sorry for posting here, I'm not sure where to ask questions.
I'm using https://www.ownedcore.com/forums/wor...-unlocker.html (Lium - A Universal Lua Unlocker)
Which works well on my WoW Client.
For example, if type /run test("CastSpellByName('Legacy of the White Tiger', player)") in the chat, it will do just fine.
BUT, if I run from my addon test("CastSpellByName('Legacy of the White Tiger', player)")
I get a Lua error :
Message: attempt to call local 'test' (a string value)
Locals: test = "test"
cycle = true
stickyValue = "0"
spell = "Legacy of the Emperor"
target = "player"
spellIndex = 33
spellBook = "spell"
spellID = 115921
name = "Legacy of the Emperor"
icon = "Interface\Icons\ability_monk_legacyoftheemperor"
(*temporary) = "test"
(*temporary) = "CastSpellByName('Legacy of the White Tiger', player)"
(*temporary) = "attempt to call local 'test' (a string value)"
GetSpellInfo = <function> defined =[C]:-1
How do I correct this? I want the Lua interpreter to execute test("CastSpellByName()") together, and not separate the two etc.
Thanks