mIRC Homepage

Nick changer

Posted By: Frenatic

Nick changer - 16/02/07 10:09 AM

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
Posted By: drc4

Re: Nick changer - 16/02/07 12:31 PM

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.
Posted By: Frenatic

Re: Nick changer - 16/02/07 07:44 PM

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
© 2021 mIRC Discussion Forums