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.

Timer

Old posts that have not been replied to for several years.
Locked
J
Jag
Halfop
Posts: 90
Joined: Fri Sep 19, 2003 10:06 am

Timer

Post by Jag »

if i want to do a timer that every 30 mins the eggdrop will do something, how can i do that?
User avatar
duofruo
Halfop
Posts: 94
Joined: Thu Oct 23, 2003 3:17 pm
Location: Ploiesti@.ro
Contact:

Post by duofruo »

timer 30 procname
proc procname {bla bla what u need} {
puthelp "PRIVMSG ........"
timer 30 procname
}
Embrace The Inevitable
User avatar
BarkerJr
Op
Posts: 104
Joined: Sun Mar 30, 2003 1:25 am
Contact:

Post by BarkerJr »

And don't rehash! :P
M
Meltdown

Post by Meltdown »

bind time - "30 * * * *" yourproc
bind time - "00 * * * *" yourproc

proc yourproc {min hour day moth year} { blabla }

executes yourproc at XX:00 and XX:30
J
Jag
Halfop
Posts: 90
Joined: Fri Sep 19, 2003 10:06 am

Post by Jag »

10x :)
There is a way to do a timer on every five mins in "bind time"?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

bind time - "?5 * * * *" yourproc 
bind time - "00 * * * *" yourproc 
Once the game is over, the king and the pawn go back in the same box.
J
Jag
Halfop
Posts: 90
Joined: Fri Sep 19, 2003 10:06 am

Post by Jag »

10x :P
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

caesar wrote:

Code: Select all

bind time - "00 * * * *" yourproc
Or rather "?0 *". :wink:
Have you ever read "The Manual"?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

huh? for every 5 min how will "?0 *" work? :)
Once the game is over, the king and the pawn go back in the same box.
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

caesar wrote:huh? for every 5 min how will "?0 *" work? :)
You still need the "?5 *" mask too, but "00 *" doesn't match anything but the whole hour, so your two binds would trigger the proc at 00 05 15 25 35 45 and 55. (not exactly every 5 minutes :P)

Btw: why do you insist on matching all the spaces?

Code: Select all

bind time - ?0* proc
bind time - ?5* proc
There's no need to match those spaces at the end. They're always there, so you don't need to verify it by including them in your mask.
Have you ever read "The Manual"?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Well, it's "minute hour day month year" so yes, the "bind time - "00 * * * *" yourproc" should be correct. Anyway, if it's working then don't repair it. :)
Once the game is over, the king and the pawn go back in the same box.
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

caesar wrote:Well, it's "minute hour day month year" so yes, the "bind time - "00 * * * *" yourproc" should be correct. Anyway, if it's working then don't repair it. :)
If you want the proc triggered once every hour, sure :P The request was for every 5 minutes. The only reason to keep the extra chars in the masks would be if you want to waste cpu matching those spaces that are always there.
bloated == broken imo.
Have you ever read "The Manual"?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Oh, thanks for the tip. :o :P
Once the game is over, the king and the pawn go back in the same box.
Locked