PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: VERMiN on 28 December, 2003, 23:54:09

Title: Several Timers?
Post by: VERMiN on 28 December, 2003, 23:54:09
How do I create more than one timer in one single script?

I use the following commands in my script:

SetTimer()
StartTimer()
OnTimer()

I want to have an event every two hours and one that goes on once per day?
Title:
Post by: plop on 29 December, 2003, 00:08:42
on the event OnTimer you count from 1 to 24, if you reach 24 you send msg2.
you can check phatty's multitimer example on how 2 do it.
if you want 2 trigger something 1x a day and then around midnight you can use the change of date.

plop