mIRC Home    About    Download    Register    News    Help

Print Thread
nick change #193910 27/01/08 06:21 AM
Joined: May 2006
Posts: 87
S
Sableye2 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: May 2006
Posts: 87
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?

Re: nick change [Re: Sableye2] #193916 27/01/08 07:42 AM
Joined: Oct 2007
Posts: 36
A
asmodeo Offline
Ameglian cow
Offline
Ameglian cow
A
Joined: Oct 2007
Posts: 36
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


`.Jk f ll r꧅MtR f Nnꔸ.`
Re: nick change [Re: asmodeo] #193921 27/01/08 11:18 AM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
Re: nick change [Re: Riamus2] #193925 27/01/08 12:08 PM
Joined: Oct 2007
Posts: 36
A
asmodeo Offline
Ameglian cow
Offline
Ameglian cow
A
Joined: Oct 2007
Posts: 36
Hi Riamus2,
There code, as far as possible, its good, although its 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.

Ive tried to help you Sableye2 crazy shocked

Nice day for all! smile


`.Jk f ll r꧅MtR f Nnꔸ.`
Re: nick change [Re: Riamus2] #193938 27/01/08 03:13 PM
Joined: May 2006
Posts: 87
S
Sableye2 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: May 2006
Posts: 87
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.

Re: nick change [Re: Sableye2] #193958 27/01/08 05:54 PM
Joined: Jan 2004
Posts: 509
L
LostShadow Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Anyways.

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

-Neal.

Re: nick change [Re: LostShadow] #193959 27/01/08 05:56 PM
Joined: Jan 2004
Posts: 509
L
LostShadow Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
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.

Re: nick change [Re: Sableye2] #193966 27/01/08 06:46 PM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
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

Re: nick change [Re: genius_at_work] #193973 27/01/08 07:47 PM
Joined: Aug 2006
Posts: 19
R
Reaper Offline
Pikka bird
Offline
Pikka bird
R
Joined: Aug 2006
Posts: 19
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


ReaperIRC
Killgore Computers
Re: nick change [Re: Reaper] #193981 27/01/08 08:33 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
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.

Re: nick change [Re: Reaper] #193988 27/01/08 10:08 PM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
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