mIRC Home    About    Download    Register    News    Help

Print Thread
Script for people that change names #209034 03/02/09 02:13 PM
Joined: May 2005
Posts: 74
D
Dracoz Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: May 2005
Posts: 74
Hi guys,

I got a dumb question.... I want to make a script that if someone changed his irc nickname in the channels where i am. It would open a new window and it tells me that blabla changed his nick...

How do i make this ?

Re: Script for people that change names [Re: Dracoz] #209037 03/02/09 02:24 PM
Joined: Jul 2006
Posts: 3,743
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,743
Code:
on !*:nick:{
if (!$window(@changenick)) window @changenick
aline @changenick $server : $nick ( $+ $wildsite $+ ) changed his nick for $newnick
}

Last edited by Wims; 03/02/09 02:24 PM.

Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: Script for people that change names [Re: Dracoz] #209039 03/02/09 02:31 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
on NICK

The on NICK event triggers when a user changes nickname while on the same channel as you.

Format: on <level>:NICK:<commands>

Example: on 1:NICK:/echo $newnick was previously known as $nick

Code:
on *:nick:{
if (!$window(@Nick)) { window -e @nick }
echo -t @nick $nick is now $newnick 
}


This event doesn't give the channel name but you can use $comchan($nick,1) or something if you want to show what channel you both are in.

Re: Script for people that change names [Re: Wims] #209043 03/02/09 03:04 PM
Joined: May 2005
Posts: 74
D
Dracoz Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: May 2005
Posts: 74
This 1 works super, awesome thank you.

So if i want to do it like if someone highlights what command do i need to use ?