Pattern:^!(.+)$
Code:
- Code: Select all
-- USAGE:
-- !commnad
--
-- EXAMPLE:
-- !echo("Hello from Lua")
local f,e = loadstring("return "..matches[2])
if not f then
f,e = assert(loadstring(matches[2]))
end
local r = f()
if r then display(r) end
-- USAGE:
-- !commnad
--
-- EXAMPLE:
-- !echo("Hello from Lua")
local f,e = loadstring("return "..matches[2])
if not f then
f,e = assert(loadstring(matches[2]))
end
local r = f()
if r then display(r) end
Return to Mudlet - unlimited possibilities
Users browsing this forum: No registered users and 6 guests