hi. this script is working very well but is something that i don`t like .
the mass look like this
23:30:00] <•Trivia•>
Pentru a semnala o intrebare gresita folositi comanda !report eg: !report nr intrebarii raspunsul corect eg. !report 4355 Mihai Eminescu
and i want to look like this
23:30:00] <•Trivia•> Pentru a semnala o intrebare gresita folositi comanda !report eg: !report nr intrebarii raspunsul corect eg. !report 4355 Mihai Eminescu
so i want to modify this script to work how i want or you can make another one
help me plss i hope you understant what i say.
--Lua 5 By Dessamator(added message To Profile)
-- timed mass message from text by ?~”?o•Hawk•o?”~?
-- create a massmessage.txt file in the scripts directory
-- containing your message
CanDo = {
[0] = 1, -- Master
[1] = 1, -- Operator
[2] = 1, -- VIP
[3] = 1, -- Reg
[4] = 1, -- Moderator
[5] = 1, -- Netfounder
[-1] =1, -- User
}
SendEvery = 1 ---- time in Mins
textfile = "massmessage.txt"
bot = "•Trivia•"
hrs = 1000 * 60 * SendEvery
function Main()
SetTimer(hrs)
StartTimer()
end
function OnTimer()
local handle = io.open(textfile, "r")
if (handle ~= nil) then Temptimerfile = "\r\n"
for line in io.lines(textfile) do Temptimerfile = Temptimerfile.."\r\n"..line io.read()
end
for prf,sw in CanDo do
if sw == 1 then for pos,user in frmHub:GetOnlineUsers(prf) do
user:SendData(bot,Temptimerfile)
end
end
end
end
io.close()
end