View Single Post
10-09-06, 02:56 AM   #2
ProfOak
A Cyclonian
Join Date: Oct 2005
Posts: 47
-- 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
  Reply With Quote