i'am out of ideas why slash commands don't work for me in Weak Auras...
let's take simple example:
PHP Code:
SLASH_ZTN1="/ztn"
SLASH_ZTN2="/ztnko"
SlashCmdList["ZTN"]=function(msg)
local id,text=msg:match("(%S+)%s+(.+)")
if id and text then
print(id.." "..text)
end
end
this code works if it's in standalone addon. it works even from macros
Code:
/run SLASH_ZTN1="/ztn" SLASH_ZTN2="/ztnko" SlashCmdList["ZTN"]=function(msg) id,text=msg:match("(%S+)%s+(.+)") if id and text then print(id.." "..text) end end
but i can't achieve any results from WA. it dont show any errors and it even register my function in SlashCmdList table because i receive valid results when /run print(SlashCmdList["ZTN"]) instead of nil.
Please, any ideas what i do wrong?