mIRC Home    About    Download    Register    News    Help

Print Thread
Nick changer #170901 16/02/07 10:09 AM
Joined: Oct 2006
Posts: 23
F
Frenatic Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Oct 2006
Posts: 23
I have been trying to make a script that changes the users nick as fast as possible after that nick is available. the two nicks I'm going to use wont be in the same channel which makes it a bit to hard for me :p

all I get is script that keeps spamming "/nick nick1" until it is available frown

can someone help me with that?
and multiple network support wont be needed

so what I want is:

nick1 and nick2 are connected to the same network
nick1 disconnects or changes nick
nick2 renames to nick1

Re: Nick changer [Re: Frenatic] #170914 16/02/07 12:31 PM
Joined: Nov 2005
Posts: 105
D
drc4 Offline
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 105
I believe the best way to go about this is to use the /notify function. Add the nick you're wanting take possesion of, as soon as it goes offline to your notify list. Then take a look at /help on unotify.

Re: Nick changer [Re: drc4] #170941 16/02/07 07:44 PM
Joined: Oct 2006
Posts: 23
F
Frenatic Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Oct 2006
Posts: 23
this is what I got so far, I haven't had time to test it properly yet, but I think it will do smile

Code:
on *:load: {

  echo 15-
  echo 15 nickfetcher activated
  echo 15 currently set to fetch '<nick>'
  echo 15-

}

on *:start: {

  set %getnick <nick>
  notify %getnick

}

;alias fetchnick { 
;
;  if ($1) { set %getnick $1 | notify $1 } 
;
;  }

on *:UNOTIFY: {
  if ($nick == %getnick) {
    nick $nick
  }
}



EDIT: typo

Last edited by Frenatic; 16/02/07 08:09 PM.