mIRC Home    About    Download    Register    News    Help

Print Thread
#33980 04/07/03 04:41 AM
Joined: Jul 2003
Posts: 7
C
cbl Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jul 2003
Posts: 7
i have a server where new people are automatically logged on with a nick of guest**** ( the **** is a random number )
i want a script to be able to post a message into the chat room when a guest changes his nic to something other than guest****. any idea how i would do this?

#33981 04/07/03 05:01 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Cheers Collective. I misread post. mad
Code:
on !*:NICK: {
  set %nick $nick
  if (Guest isin %nick) { msg $active Your message }
}

Last edited by SladeKraven; 04/07/03 05:20 AM.
#33982 04/07/03 05:08 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
That isn't what he asked for, he wanted something that posted a message in the channel when a guest changed their nick to something else, not when someone changed their nick to guest****.

cbl: You didn't need to post this twice, it only annoys people.

#33983 04/07/03 05:14 AM
Joined: Jul 2003
Posts: 7
C
cbl Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jul 2003
Posts: 7
actually i want the reverse, someone comes in with a nick of guest**** then they change it to something else, say "looker" at thast point i want my script to post a welcome message into the channel something like " welcome to our channel "looker"

#33984 04/07/03 05:27 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on !*:JOIN:#:: {
if (Guest isin $nick) { msg $chan Welcome to our channel. }
}

on *:NICK: {
set %nick $nick
if (Guest isin %nick) { msg $active Welcome to our channel. }
}

#33985 04/07/03 05:35 AM
Joined: Jul 2003
Posts: 7
C
cbl Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jul 2003
Posts: 7
wait, wont that say it if they come IN as a guest, not when they change there nic FROM a nick of guest****

i need soemthing like this:

if guest**** becomes Looker" then say "welcoem to our channel"

rememebr the **** needs to be ignored cause its a random # and they can change theire nics to anything

#33986 04/07/03 05:37 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Yes, but it'd also trigger if they change their nickname on the channel. Why would you be welcoming them to the channel on NICk change when they are already in the channel anyways? Anyways that should work, does for me. grin

#33987 04/07/03 05:46 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Your script will always message the active channel, even if the person who changed nick isn't on that channel..

This will do it in one particular channel:
Code:
on !*:NICK: {
  if ( Guest* iswm $nick ) && ( $newnick ison [color:green]#yourchannel[/color] ) {
    msg [color:green]#yourchannel[/color] Welcome to our channel $newnick $+ .
  }
}

This will do it in all channels:
Code:
on !*:NICK: {
  if ( Guest* iswm $nick ) {
    var %i = 1
    while ( $comchan($newnick,%i) ) {
      msg $ifmatch Welcome to our channel $newnick $+ .
      inc %i
    }
  }
}

#33988 04/07/03 06:00 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I tried $chan but didn't have any luck. So I tried if $target(ischan) still didn't have any luck, so I did msg $active.

#33989 04/07/03 01:48 PM
Joined: Jul 2003
Posts: 7
C
cbl Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jul 2003
Posts: 7
on !*:NICK: { if ( Guest* iswm $nick ) && ( $newnick ison #yourchannel ) { msg #yourchannel Welcome to our channel $newnick $+ .

yay this script worked, thanks so much

#33990 04/07/03 06:08 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You should be thanking Collective. grin


Link Copied to Clipboard