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