View Single Post
06-16-11, 10:30 AM   #3
TLH
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 8
Close! Is there a way to also include an argument as part of the alias?
What I'm getting at is this:

If I wanted to make it so /fs does the same thing as /yell Frostshooock! , I could do this:

SLASH_FS1 = "/fs";
SlashCmdList["FS"] = function()
SendChatMessage("Frostshooock!", "YELL");
end

That works, but is avoiding the issue by doing it via script, which has no (unprotected) function to mimic /use with an argument.

I'm trying to get /hg to mimic /use Have Group, Will Travel; /gb to mimic /use Mobile Banking; etc.
  Reply With Quote