Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » Developer Discussions » Lua/XML Help » Slash Commands


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off