Thread: Slash Commands
View Single Post
06-25-09, 05:50 AM   #3
Selite
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 20
Don't you have to use caps in the line

Code:
SlashCmdList["BLAH"] = whatever()
You could try this block of code;

Code:
TOGGLE_HELM1 = "/togglehelm"
SlashCmdList["TOGGLE_HELM"] = function()
    ShowHelm(not ShowingHelm())
end
TOGGLE_CLOAK1 = "/togglecloak"
SlashCmdList["TOGGLE_CLOAK"] = function()
    ShowCloak(not ShowingCloak())
end
Not sure if they'll work, as I am super tired, and they are dry coded.

EDIT : See above post, it's more right.
  Reply With Quote