mIRC Homepage
Posted By: Sableye2 nick change - 27/01/08 06:21 AM
My nick gets changed a lot to my alternative nick due to disconnects. I would like a script that could change my alternative nick back to my original one and re-identify me. How would I go about doing this?
Posted By: asmodeo Re: nick change - 27/01/08 07:42 AM
Hi Sableye2,
Copy & Paste This code in Remote, and after Type /ReIdentify.

Code:
On *:CONNECT:{
   .timer 1 2 /nick $decode(%mjku,t,1)
   .timer 1 3 /identify $decode(%slek,t,1)
}
alias ReIdentify {
   var %nn = $$?="Enter your Original Nick"
   set %mjku $encode(%nn)
   var %pp = $$?="Enter your Pass"
   set %slek $encode(%pp)
}


Bye! smile
Posted By: Riamus2 Re: nick change - 27/01/08 11:18 AM
Using $decode isn't usually a good solution as most people have it disabled. And enabling it just for this isn't really the best idea, imo.

To the OP:
First of all, does your network(s) support ghosting? That would be the best option. Otherwise, you'll need to keep trying to change your nick until your previous nick pings out.
Posted By: asmodeo Re: nick change - 27/01/08 12:08 PM
Hi Riamus2,
There code, as far as possible, it´s good, although it´s not the best option. Both are partially right.
Enable decode option, in my opinion, is ok. whistle

Sableye2,
Check alt+o, Connect > Options > Preserve Nicknames is Enable.

I´ve tried to help you Sableye2 crazy shocked

Nice day for all! smile
Posted By: Sableye2 Re: nick change - 27/01/08 03:13 PM
Yes, the network supports ghosting and that's what I usually have to do along with changing the nick and re-identifying. However, when you ping out 2 or 3 times a day, it gets annoying having to go through the whole process of ghosting, changing, and identifying. That's why I was wondering if a script could do this for me.
Posted By: LostShadow Re: nick change - 27/01/08 05:54 PM
Anyways.

Play around with /mnick, /anick, and /tnick in your scripts.

-Neal.
Posted By: LostShadow Re: nick change - 27/01/08 05:56 PM
Oh yea.

You should actually be using $!decode($encode(<nick>,m),m), instead of $decode(), for the timer.

Else take off the ! if you're not using /timers and only the /nick.

-Neal.
Posted By: genius_at_work Re: nick change - 27/01/08 06:46 PM
Try this script:

Code:

alias -l _mnick return main_nickname
alias -l _anick return alt_nickname
alias -l _mpass return main_password
alias -l _mserv return irc.server.net 6667

alias -l _ghost msg nickserv ghost $_mnick $_mpass
alias -l _mident msg nickserv identify $_mpass

on *:START:{
  mnick $_mnick
  anick $_anick
  server $_mserv
}

on *:CONNECT:{
  if ($me != $_mnick) {
    .notify $_mnick
    set -u60 %_ghost 0
  }
  if ($me == $_mnick) .timermnick 1 5 _mident
}

on *:NICK:{
  if ($newnick == $_mnick) .timermnick 1 5 _mident
}

on ^*:NOTIFY:{
  if ($nick == $_mnick) {
    haltdef
    if (%_ghost < 3) {
      inc -u60 %_ghost
      _ghost
      .timerghost 1 10 notify
    }
    else echo 4 -at Unable to GHOST $_mnick
  }
}

on ^*:UNOTIFY:{
  if ($nick == $_mnick) { 
    haltdef
    .notify -r $_mnick
    nick $_mnick
    unset %_ghost
    .timerghost off
  }
}



When loading the script, click "NO" when asked to run initialization routines.


Change main_nickname for your main registered nickname.
Change alt_nickname to an unregistered alternate nickname.
Change main_password to the password for your main registered nickname.
Change irc.server.net to the actual server (and port) that you want to connect to when mIRC opens.

You have to restart mIRC after loading the script and setting the above variables.

-genius_at_work
Posted By: Reaper Re: nick change - 27/01/08 07:47 PM
this should help its easier to understand.

Code:
 on 1:load: /set %username username | /set %password password
on 1:connect: if ($me == mainnick) { msg nickserv identify %username %password | echo -a your nickname matches with your main nickname and you are now identified on this network }
else { msg mainnick could you please change your nick that is my usual nickname. }
alias /Identify { msg nickserv identify %username %password }

you have to change username to your username and password to your password and change main nickname to your main nickname but this script should make things easier
Posted By: hixxy Re: nick change - 27/01/08 08:33 PM
This bit:

Code:
on 1:connect: if ($me == mainnick) { msg nickserv identify %username %password | echo -a your nickname matches with your main nickname and you are now identified on this network }
else { msg mainnick could you please change your nick that is my usual nickname. }


Will not work because you haven't used { } with the on connect event. This means that your else { } clause isn't attached to any event or alias, so it will never be reached by the script.
Posted By: genius_at_work Re: nick change - 27/01/08 10:08 PM
That script is completely useless for what the OP wants. And, as pointed out above, it will not work.

Do you know what a GHOST (on IRC) is?

-genius_at_work
© mIRC Discussion Forums