View Single Post
02-15-24, 05:17 PM   #4
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
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.
  Reply With Quote