View Single Post
02-15-24, 06:07 PM   #6
DennytXVII
A Murloc Raider
Join Date: Feb 2024
Posts: 6
Originally Posted by Kanegasi View Post
You did not set an actual command to use. The slash system needs a string that is your command, and when used, then calls the matching SlashCmdList entry.

Lua Code:
  1. SLASH_NameOfEntry1="/command"
  2. SLASH_NameOfEntry2="/cmd"
  3. SLASH_NameOfEntry3="/alias"
  4. SlashCmdList["NameOfEntry"]=function(textAfterCmd) --[[stuff]] end

You can make any number of different commands that call the same function, as long as the text between SLASH_ and the number is exactly the same as the entry in SlashCmdList, case sensitive. You only need just the number 1 line if you only want one command.
Thanks for the point out, I did also point it out in my comment above this! I added it in
  Reply With Quote