|
|
Joined: Jul 2003
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
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?
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Cheers Collective. I misread post. 
on !*:NICK: {
set %nick $nick
if (Guest isin %nick) { msg $active Your message }
}
Last edited by SladeKraven; 04/07/03 05:20 AM.
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Jul 2003
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
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"
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
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. }
}
|
|
|
|
Joined: Jul 2003
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
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
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
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: 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: on !*:NICK: {
if ( Guest* iswm $nick ) {
var %i = 1
while ( $comchan($newnick,%i) ) {
msg $ifmatch Welcome to our channel $newnick $+ .
inc %i
}
}
}
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: Jul 2003
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
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
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
You should be thanking Collective.
|
|
|
|
|
|