Quantcast
WoWInterface - View Single Post - Slash command functions help
View Single Post
06-18-21, 04:17 PM   #3
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 615
Lua Code:
  1. SLASH_YOURUNIQUENAMEHERE1="/command" -- SLASH_ and 1 are required
  2. SLASH_YOURUNIQUENAMEHERE2="/comm" -- increase the number for aliases
  3. SlashCmdList["YOURUNIQUENAMEHERE"]=function(arg) -- the name you used without SLASH_ or a number
  4.     -- arg is a string with everything typed after the command, including spaces
  5. end
  Reply With Quote