WoW:Creating a slash command

Revision as of 23:11, 31 March 2005 by WoWWiki>Saati
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is very simple. In your OnLoad function of your script, put in the following:

SLASH_MYSCRIPT1 = "/myscript";
SlashCmdList["MYSCRIPT"] = MyChatHandlerFunction;

Hope that helps.