mIRC Home    About    Download    Register    News    Help

Print Thread
#27733 02/06/03 09:06 PM
Joined: Dec 2002
Posts: 83
A
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..

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

#27735 02/06/03 09:36 PM
Joined: Dec 2002
Posts: 1,527
_
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
#27736 02/06/03 10:34 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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!
#27737 02/06/03 11:44 PM
Joined: May 2003
Posts: 730
S
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


Link Copied to Clipboard