Page 1 of 1

Small script :)

PostPosted: Sun Nov 22, 2015 8:28 am
by Philoum
function ChatArrival(curUser, sData) -- message from mainchat
-- print(sData)

local s, e, user, cmd = string.find(sData, "<(%S+)> (%S+)|");

cmd = string.lower(cmd);

if cmd == "hy" then
SendToNick(curUser.sNick, "Hello World, from Lua!|")
return 1
end
end

print("loade