This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

continuous timer under 60 secs

Old posts that have not been replied to for several years.
Locked
N
NewzUK
Master
Posts: 200
Joined: Mon Nov 18, 2002 3:10 am
Location: Auckland, New Zealand
Contact:

continuous timer under 60 secs

Post by NewzUK »

Hi again

I've done an extensive search of the forum, but I'm struggling to find how to make a proc run every 30 seconds...

I've tried:
utimer 30 procname

but that just runs it once and stops. is there an adjustment to be made to make it run non-stop every 30 secs?

Thanks, and sorry if it's been covered before.
#Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

Add utimer 30 procname at the end of that procname.
Que?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Yeah, you need a timer outside of the procedure
and inside of the procedure.

Basically something like this:

Code: Select all

if {![string match *timer_name* [timers]]} {timer 30 my:procedure}

proc my:procedure {} {
 global botnick
 ............................
 ............................
 if {![string match *timer_name* [timers]]} {timer 30 my:procedure}
 return 0
}
Or you can remove the if statements and simply
put 'timer 30 my:procedure' if you don't want to check
if the timers exist or not.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked