PtokaX forum

Archive => Archived 4.0 boards => Finished Lua 4 scripts => Topic started by: SomeShine on 25 March, 2004, 21:48:07

Title: TiM?TrAV?lleRs.timed.mass.msg
Post by: SomeShine on 25 March, 2004, 21:48:07
Here is a script that i got some help to make from a friend.. so ive named the script after him, cause he did almost everything.
This Scripts sends a mass message to all users every 30 mins (can be changed to whatever you like) and the botname can also bechanged
__________________________________________________________________________________________
BotName = "TH-Girl"

sek = 1000
min = sek*60
hour = min*60
days = hour*24

time = 30*min

function Main()
   SetTimer(time)
   StartTimer()
end


function OnTimer()
   local sec = clock()
   local days = floor(sec/86400)
   local hrs = floor((sec-(days*86400))/3600)
   local min = floor((sec-(days*86400)-(hrs*3600))/60)
   sec = floor(sec-(days*86400)-(hrs*3600)-(min*60))
        SendPmToAll(".")
   SendPmToAll("?================================================================?")
   SendPmToAll("To Register At This Hub PM SomeShine With Username And Password")        
   SendPmToAll("?================================================================?")  
        SendPmToAll(".")
end
Title:
Post by: oblivion on 25 March, 2004, 23:19:47
:D i will check it
Title:
Post by: plop on 25 March, 2004, 23:21:59
you can remove this part as it's not used.
local sec = clock()
local days = floor(sec/86400)
local hrs = floor((sec-(days*86400))/3600)
local min = floor((sec-(days*86400)-(hrs*3600))/60)
sec = floor(sec-(days*86400)-(hrs*3600)-(min*60))
plop
Title:
Post by: TiMeTrAVelleR on 25 March, 2004, 23:34:11
Btw  i just changed the script   to needs  from somshine

oke  plop  will do that  thanks
Title:
Post by: plop on 26 March, 2004, 00:05:55
QuoteOriginally posted by T?M??r?V?ll?R
Btw  i just changed the script   to needs  from somshine

oke  plop  will do that  thanks
i know. lol

plop