WoW:Creating a slash command

From AddOn Studio
Revision as of 23:11, 31 March 2005 by WoWWiki>Saati
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.