Small script :)

Small script :)

Postby Philoum » Sun Nov 22, 2015 8:28 am

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
..::(^;^):::.
User avatar
Philoum
 
Posts: 1
Joined: Mon Nov 09, 2015 9:40 am

Return to Lua

Who is online

Users browsing this forum: No registered users and 2 guests

cron