mIRC Homepage
Posted By: starpossen Onjoin if nick is guest then - 13/06/06 07:44 AM
Is it possible to make a script that will notice a user if he has the name Guest in his name?
This might be a simple thing, but I would really like some help.
Posted By: hixxy Re: Onjoin if nick is guest then - 13/06/06 09:35 AM
Code:
on !*:join:#:{
  if (Guest isin $nick) { ... }
}
Posted By: JiJi Re: Onjoin if nick is guest then - 13/06/06 02:40 PM
:tongue:
on !*:nick:#:{ if (Guest isin $nick) { ... }}
Posted By: landonsandor Re: Onjoin if nick is guest then - 13/06/06 04:18 PM
JIJI, the ON NICK event is not associated with a channel so placing a # in won't work. The same is true for ON QUIT events
Posted By: Riamus2 Re: Onjoin if nick is guest then - 13/06/06 09:32 PM
I would probably throw in an @ in your on join event (and on nick) so it only triggers if he's an op... I'm guessing he'll want to kick or ban the nick and if he's not an op, that will just give him error messages. smile
Posted By: hixxy Re: Onjoin if nick is guest then - 14/06/06 09:27 AM
He didn't say that though. No use assuming what he wants smile
Posted By: starpossen Re: Onjoin if nick is guest then - 14/06/06 07:35 PM
Thanks alot, its working, I got another one I would like to ask about:

on *:join:#:{
if (jack isin $nick) {/me slaps $nick }}

Im still a big n00b at this, but this aint working
and please dont laugh hehe, but I request help.
Posted By: MikeChat Re: Onjoin if nick is guest then - 14/06/06 07:43 PM
a couple of things

/ isnt needed and doesnt belong in a remote
the /me is only usable in the edit box
f (jack isin $nick) {/me slap $nick } <-- you need a space between the { and any commands
you have another "on join" already in that file and that will conflict subsequent on joins in the same file

add this to your existing on join
if (jack isin $nick) { describe $chan slaps $nick }
Posted By: starpossen Re: Onjoin if nick is guest then - 14/06/06 07:55 PM
Thanks, both are working, and also thanks for the very quick response..
/me goes reading help files
Posted By: MikeChat Re: Onjoin if nick is guest then - 14/06/06 08:17 PM
smile
no problem
© mIRC Discussion Forums