mIRC Home    About    Download    Register    News    Help

Print Thread
Quick timer question #27733 02/06/03 09:06 PM
Joined: Dec 2002
Posts: 83
A
acemiles_ed Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2002
Posts: 83
I'm not quite sure of the format, as the help files don't really talk about it much, but..

I want a /msg nick It's midnite! to go off every night at midnight. Would I do it like:
/timer -o 00:00 /msg nick etc..
or
/timer -o 00:00 1 1 /msg nick etc..

Re: Quick timer question #27734 02/06/03 09:36 PM
Joined: May 2003
Posts: 730
S
ScatMan Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
/timer 00:00 0 86400 /msg NICK MSG

Re: Quick timer question #27735 02/06/03 09:36 PM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
ok well first off u dont need the -o switch as if ur wanting to message someone its midnight ud have to be online ..... using the -o makes it an offline timerthis is the code i would use to create the timer your talking about

Code:
on start: {
  midnight 
}
alias midnight { 
timermidnight 00:00 1 0  { msg NICK hey its midnight | midnight }
}


or something along them llines ..... im sure others will have a better solution tho than me


D3m0nnet.com
Re: Quick timer question #27736 02/06/03 10:34 PM
Joined: Feb 2003
Posts: 2,662
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,662
the -o switch is handy as it prevents the timer from dying if you get disconnected. I'd simply perform an if ($server) { } check before sending a /msg.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: Quick timer question #27737 02/06/03 11:44 PM
Joined: May 2003
Posts: 730
S
ScatMan Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
don't need to, just specify an online timer(run this command when u are connected) and when u'll disconnect the timer will halted
otherwise u reconnect and want it to work too then do as Raccoon said