WoW:Creating a slash command: Difference between revisions

m
No edit summary
Line 7: Line 7:
  end
  end
   
   
In your OnLoad function of your script, put in the following:
In your OnLoad function of your script, or in the .lua anyplace after the function is defined, put in the following:


  SLASH_MYSCRIPT1 = "/myscript";
  SLASH_MYSCRIPT1 = "/myscript";
Anonymous user