PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: uNiOn on 03 March, 2004, 09:25:09

Title: a Simple Message bot
Post by: uNiOn on 03 March, 2004, 09:25:09
Hey Would relly need a script that sends a message into the hub like every 15 minutes just a message like Ex. "Today its sunny and the skys are blue"
got a game goin on and for people to se what the wuestion is i need the question to be sent into the channel every now and then like 15 minutes...

Cheers Thx for ur time =)
Title:
Post by: NightLitch on 03 March, 2004, 11:03:37
try this one took me 1min

-- Simple Text view by NightLitch --

-- Put in your text
TextLine = "Your Text Line Will Go Here"

-- Time Definitions
Sec  = 1000
Min  = 60*Sec
Hour = 60*Min
Day  = 24*Hour

-- Set your time here
Time = 15*Min

-- Function Part
--------------------------------------
function Main()
SetTimer(Time)
StartTimer()
end
--------------------------------------
function OnTimer()
SendToAll(TextLine)
end
--------------------------------------
Title:
Post by: uNiOn on 03 March, 2004, 11:24:16
ok thx bro... will try this one i aint god at doin scripts so "lol" but hey when there is people knowing what to do and how to do why not ask well... thx again

Cheers
Title:
Post by: NoiZe on 03 March, 2004, 20:39:21
Nice one! Thnx.  :]