mIRC Home    About    Download    Register    News    Help

Print Thread
#229256 27/01/11 05:27 PM
Joined: Dec 2010
Posts: 26
L
LMN Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Dec 2010
Posts: 26
I want a automatic watch, so I have this script:
Code:
if ($time(nn) == 00) /msg $chan 4Het is nu: 12 $time([HH:nn dd/mm/yyyy])
}

How can I make it work automatically, because now I don't have something like: ON *:ACTION:

LMN #229258 27/01/11 06:04 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
If you want it to happen at certain times rather than have it as a timestamp on messages, then you can use a timer.


Invision Support
#Invision on irc.irchighway.net
LMN #229262 27/01/11 07:50 PM
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Is this for one specific channel on one specific network? If so, you can use this code:
Code:
on *:CONNECT: if ($network == ABCD) startwatch
alias startwatch {
  var %nextHH = $calc($time(HH) +1)
  if (%nextHH == 24) var %nextHH = 0
  .timertimewatch %nextHH $+ :00 1 0 echotime
}
alias echotime { msg #chan 4Het is nu: 12 $time([HH:nn dd/mm/yyyy]) | startwatch }

Of course replace ABCD with your network name (//echo -a $network)

Last edited by 5618; 27/01/11 07:56 PM.

Link Copied to Clipboard