Thread: Slash Commands
View Single Post
06-25-09, 05:39 AM   #1
Elariah
Premium Member
 
Elariah's Avatar
Premium Member
Join Date: Jan 2006
Posts: 18
Slash Commands

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.
  Reply With Quote