mIRC Home    About    Download    Register    News    Help

Print Thread
#137769 18/12/05 09:53 PM
Joined: Sep 2005
Posts: 53
C
Babel fish
OP Offline
Babel fish
C
Joined: Sep 2005
Posts: 53
Code:
on *:notice:*:*:{
  if ($nick == Blah) {
    .msg $Nick Blah Blah
  }
}

I need a timer in this script. Will something like this work: ?
Code:
on *:notice:*:*:{
  if ($nick == [NC]AnimeII) {
   $timer 1 20 { msg $Nick xdcc send #167 }
  }
}

#137770 18/12/05 10:04 PM
Joined: Nov 2005
Posts: 42
A
Ameglian cow
Offline
Ameglian cow
A
Joined: Nov 2005
Posts: 42
Depends what you mean work, so it depends on what you want it to do. That will reply to a notice from the nick [NC]AnimeII 20 seconds later by initiating some form of dcc send. Is that what you want it to do.

To make it work as described above you need to remove the leading $ from $timer though.

Last edited by Aenei; 18/12/05 10:05 PM.
#137771 18/12/05 11:51 PM
Joined: Sep 2005
Posts: 53
C
Babel fish
OP Offline
Babel fish
C
Joined: Sep 2005
Posts: 53
When animeII Notices me, im supposed to send a message 20 seconds later....

#137772 18/12/05 11:56 PM
Joined: Nov 2005
Posts: 42
A
Ameglian cow
Offline
Ameglian cow
A
Joined: Nov 2005
Posts: 42
Have you not used xdcc for some particular reason? I'm assuming you want to reply with some kind of file transfer from that code.

#137773 18/12/05 11:59 PM
Joined: Sep 2005
Posts: 53
C
Babel fish
OP Offline
Babel fish
C
Joined: Sep 2005
Posts: 53
err
forget about xdcc....
Code:
on *:notice:*:*:{
  if ($nick == Blah {
    $timer 1 20 /msg $Nick Blah Blah  
  }
}

If Blah Notices me, then im supposed to send a msg "Blah Blah" after 20 seconds after Blah notices me...

#137774 19/12/05 12:02 AM
Joined: Nov 2005
Posts: 42
A
Ameglian cow
Offline
Ameglian cow
A
Joined: Nov 2005
Posts: 42
Well that'll reply to them after 20 seconds yes. You might want to consider using
Code:
ON *:NOTICE:<nick>:?: {

to reply only to a certain nick, and only to personal notices rather than channel notices

#137775 19/12/05 12:06 AM
Joined: Sep 2005
Posts: 53
C
Babel fish
OP Offline
Babel fish
C
Joined: Sep 2005
Posts: 53
nevermind, i used /timer 1 1200 /msg $nick blah , and its working....

#137776 19/12/05 12:14 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
With a timer of 1200, that should be sending the message after 20 minutes, not 20 seconds.


Link Copied to Clipboard