mIRC Home    About    Download    Register    News    Help

Print Thread
#193910 27/01/08 06:21 AM
S
Sableye2
Sableye2
S
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?

#193916 27/01/08 07:42 AM
A
asmodeo
asmodeo
A
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

#193921 27/01/08 11:18 AM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
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.

Riamus2 #193925 27/01/08 12:08 PM
A
asmodeo
asmodeo
A
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

Riamus2 #193938 27/01/08 03:13 PM
S
Sableye2
Sableye2
S
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.

#193958 27/01/08 05:54 PM
L
LostShadow
LostShadow
L
Anyways.

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

-Neal.

#193959 27/01/08 05:56 PM
L
LostShadow
LostShadow
L
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.

#193966 27/01/08 06:46 PM
Joined: Oct 2005
Posts: 1,671
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,671
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

R
Reaper
Reaper
R
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

#193981 27/01/08 08:33 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
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.

#193988 27/01/08 10:08 PM
Joined: Oct 2005
Posts: 1,671
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,671
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


Link Copied to Clipboard