mIRC Homepage
Posted By: Saori Need help with an on join script -_- - 04/04/07 02:41 AM
Yeah this seems pretty simple but im totally stuck. I want to send a message to the channel when my friend joins and when i check the help file i see

Code:
on 1:JOIN:#:/msg $chan Welcome $nick


i've tried changing the 1 to both the nick and ident@host but that still hasn't worked, it either doesn't work or it works on everyone who joins the channel -_-

Any help appreciated <3


Posted By: RusselB Re: Need help with an on join script -_- - 04/04/07 03:18 AM
Code:
on *:join:#:{
  if $nick == <your friend's nick> {
    .msg $chan Welcome $nick
  }
}

Replace <your friend's nick> with the nick. If you want it for more than one nick, this can be done in various ways, mainly dependent on the number of nicks that you want it for.
Posted By: DJ_Sol Re: Need help with an on join script -_- - 04/04/07 06:35 AM
on nickname*:join:#:/msg $chan hi $nick $+ ! Ive been expecting you!
Posted By: DuXxXieJ Re: Need help with an on join script -_- - 04/04/07 01:34 PM
Code:
ON *:JOIN:#channel:{
msg $chan Hello $nick $+ !
}
Posted By: RusselB Re: Need help with an on join script -_- - 04/04/07 05:12 PM
The OP requested that this be for a single nick. Your code would do it for all nicks..the same as the one included in the help file.
Posted By: DuXxXieJ Re: Need help with an on join script -_- - 04/04/07 06:05 PM
Didn't saw it was for 1 guy, sorry.
© mIRC Discussion Forums