Quantcast
WoWInterface - View Single Post - Create Slash Commands
View Single Post
08-05-17, 08:20 AM   #2
Mortimerlol
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Jul 2017
Posts: 71
Lua Code:
  1. --Try it.
  2. SLASH_PHRASE = "/ph";
  3. SLASH_SPHRASE = "/sph";
  4.  
  5. local function PHRASEfunc(msg)
  6.     SendChatMessage("Go to RBG!", "GUILD")
  7. end
  8.  
  9. local function SPHRASEfunc(msg)
  10.     SendChatMessage("Do you want come with us to RBG?", "SAY")
  11. end
  12.  
  13. SlashCmdList["PHRASE"] = PHRASEfunc;
  14. SlashCmdList["SPHRASE"] = SPHRASEfunc;
  Reply With Quote