I'm trying to make a mode, simple to give me some more slash commands. I've created the .toc and a .lua file as per what I've seen in other mods.
The .lua file just contains the following
Code:
SLASH_TOGGLEHELM = "/toggleHelm"
SLASH_TOGGLECLOAK = "/toggleCloak"
SlashCmdList["toggleHelm"] = toggleHelm()
SlashCmdList["toggleCloak"] = toggleCloak()
function toggleHelm()
ShowHelm(not ShowingHelm())
end
function toggleCloak()
ShowCloak(not ShowingCloak())
end
But for some reason WoW doesn't recognise these commands. What am I doing wrong? From what I've seen at wowwiki.com this should just work.