WoW:Creating a slash command
Jump to navigation
Jump to search
This is very simple. In your OnLoad function of your script, put in the following:
SLASH_MYSCRIPT1 = "/myscript"; SlashCmdList["MYSCRIPT"] = MyChatHandlerFunction;
Hope that helps.