Hello, i would like small script which can send text without nick to chat. ( i have seen it in robocop under !talk command, but never as alone script)
here u go .. this is very simple .. maybe some1 may be kind enough or not have anything else to do and modifiy it to smth better .. untested and timed at 36secs ... [posting includ.]
--- simple say by Herodes
allowed = {
"Herodes" = 1,
--- add more names here ... dont forget the format .. : "nickname" = 1, (the comma is important too)
}
function DataArrival(user, data)
if allowed[user.sName] = 1 and strsub(data, 1,1) == "<" then
local s,e, cmd, what = strfind(data , "%b<>%s+(%S+)%s*(.*)|")
if cmd == "!say" and what then
SendToAll(what)
return 1
end
end
end