Thread: Slash commands
View Single Post
04-04-09, 05:56 PM   #12
Spellshaper
A Murloc Raider
 
Spellshaper's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 8
You might also like to take a look at how to set up slash commands:

Code:
SlashCmdList["ParaUISlashCOMMAND"] = function(msg)
    if not msg or msg == "" or msg == "help" or msg == "about" then
       print("some general information on what this addon does and how to use it")
    else
        -- some more slash command processing.. string.find() inside
        -- an ipairs(listOfArguments) loop comes to mind.
    end
end
SLASH_ParaUISlashCOMMAND1 = "/paraui" -- it's not case sensitive, as far as I know.
__________________
"We shaman don't command the magic we wield. As mages and warlocks strain and sweat to produce a tiny flame, I ask for the elements to lend me their strength."

Last edited by Spellshaper : 04-04-09 at 06:46 PM. Reason: I'm stupid and it's late
  Reply With Quote