-- YourLuaFile.lua --
function something_OnLoad()
SLASH_YOURCOMMAND = "/raresist"; -- you can add multiple comands
SLASH_YOURCOMMAND2 = "/raresist2"; -- you can add multiple comands
SlashCmdList["CMDLIST"] = CmdFunction;
end;
function CmdFunction(cmd)
if (cmd == "Something") then
DoSomething; -- can be a function or a simple action like emote
end;
end;
-- Finish --
Hope it helps :P
Cheers
|