Advertisement
Dramiel

RIFT print command

Oct 8th, 2011
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. --[[
  2.     /print command
  3. ]]
  4. do
  5.     local function PrintCommand(command)
  6.         local func, err = loadstring("return " .. command .. ";");
  7.        
  8.         if (func == nil) then
  9.             error(err);
  10.         else
  11.             print(func());
  12.         end
  13.     end
  14.  
  15.     tinsert(_G.Command.Slash.Register("print"), { PrintCommand, "Rowdy", "print command" });
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement