mIRC Homepage
Posted By: Dracoz Script for people that change names - 03/02/09 02:13 PM
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 ?
Posted By: Wims Re: Script for people that change names - 03/02/09 02:24 PM
Code:
on !*:nick:{
if (!$window(@changenick)) window @changenick
aline @changenick $server : $nick ( $+ $wildsite $+ ) changed his nick for $newnick
}
Posted By: DJ_Sol Re: Script for people that change names - 03/02/09 02:31 PM
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.
Posted By: Dracoz Re: Script for people that change names - 03/02/09 03:04 PM
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 ?
© mIRC Discussion Forums