mIRC Homepage
Posted By: CraZyHanD Timer help - 18/12/05 09:53 PM
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 }
  }
}
Posted By: Aenei Re: Timer help - 18/12/05 10:04 PM
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.
Posted By: CraZyHanD Re: Timer help - 18/12/05 11:51 PM
When animeII Notices me, im supposed to send a message 20 seconds later....
Posted By: Aenei Re: Timer help - 18/12/05 11:56 PM
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.
Posted By: CraZyHanD Re: Timer help - 18/12/05 11:59 PM
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...
Posted By: Aenei Re: Timer help - 19/12/05 12:02 AM
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
Posted By: CraZyHanD Re: Timer help - 19/12/05 12:06 AM
nevermind, i used /timer 1 1200 /msg $nick blah , and its working....
Posted By: RusselB Re: Timer help - 19/12/05 12:14 AM
With a timer of 1200, that should be sending the message after 20 minutes, not 20 seconds.
© mIRC Discussion Forums