mIRC Homepage
Posted By: Joshy Join Notify - 11/04/09 12:35 AM
Hi. I've been looking for a code so that everytime the user Tom joins a room that im in, it will somehow notify me.. please help..

__________________________________________
@tom has just joined #example_room
______________________________
As sooon as tom joins a get a little message box, or maybe a beep. please help
Posted By: RoCk Re: Join Notify - 11/04/09 12:53 AM

Code:

on !*:JOIN:#: {
  if (($nick != Tom) || (# $network == $active $network)) return
  echo -aect info * $nick has joined # on $network
}


Posted By: RusselB Re: Join Notify - 11/04/09 12:54 AM
Code:
on !*:join:#:{
  if $nick == Tom {
    echo -a $nick just joined $chan on $network
  }
}

Posted By: Horstl Re: Join Notify - 11/04/09 07:46 AM
...and this version will create a little tooltip "popup" window to notify you, and beep 3 times. If you double-click the popup, the respective channel will become the active window.
Code:
on !*:join:#:{
  if ($nick == Tom) {
    noop $tip(jnotify, Join Notify:, $nick just joined $chan, 20, $mircexe, 22, window -ra $safe2($chan))
    beep 3 300
  }
}
alias -l safe2 { bset -t &a 1 $1 | return $!regsubex(safe, $bvar(&a,1-) ,/(\d+)(?: |$)/g,$chr(\1)) }

(untested)
Posted By: Joshy Re: Join Notify - 11/04/09 01:53 PM
thanks it works great, and how could i add more nick names without having to have two of the scripts.?
Posted By: RoCk Re: Join Notify - 11/04/09 03:06 PM

Using his script you could do this...
Code:

on !*:JOIN:#:{
  ; Add nicks to the next line.
  var %nicks = Tom RusselB Horstl RoCk
  if ($istok(%nicks,$nick,32)) {
    noop $tip(jnotify, Join Notify:, $nick just joined $chan, 20, $mircexe, 22, window -ra $safe2($chan))
    beep 3 300
  }
}
alias -l safe2 { bset -t &a 1 $1 | return $!regsubex(safe, $bvar(&a,1-) ,/(\d+)(?: |$)/g,$chr(\1)) }



Just add each nick to the end of the string separated by spaces.

~ Edit ~
Remove our nicks of course. smile
Posted By: Joshy Re: Join Notify - 11/04/09 04:17 PM
doesn't seem to work...... and yes, i did remove ur names..
Posted By: Tomao Re: Join Notify - 11/04/09 04:27 PM
It does work. Make sure you have added every nickname correctly letter by letter with a space between them.
© mIRC Discussion Forums