mIRC Homepage

Autonick changer

Posted By: BritishGent

Autonick changer - 31/05/07 09:30 AM

Hi there all..... smile

I have a slight problem i need help with....

On occaision my Bot server is ping'ing out which in it'self isn't a problem, but when it happens my Bot is changing it's nick from ^Merlin to Corner_Lurker.
Upon some research i found this snippet which i thought would autochange my nick in this event...
Code:
on 1:CONNECT: {
  if ($me != NICKHERE) {
    nick NICKHERE
    msg nickserv IDENTIFY PASSHERE
   }
  else { 
    msg nickserv IDENTIFY PASSHERE
   }
}

my problem is it doesn't seem to work.....

Could anyone assist me in this matter please.

Eternally greatfull.....

Thanks in advance. smile
Posted By: Bekar

Re: Autonick changer - 31/05/07 01:07 PM

The reason would be that if you can't get your 'NICKHERE' up connection (I'm assuming it's mIRC default nick), it's because it's already taken.

This means you need to use a nick-name retrieval routine (like this one) first, before doing your nickserv registration.
Posted By: BritishGent

Re: Autonick changer - 31/05/07 02:29 PM

Would this be 2 seperate code snippets or 1 code snippet ?

Thanks for your help smile
Posted By: Lpfix5

Re: Autonick changer - 31/05/07 03:25 PM

Originally Posted By: BritishGent
Hi there all..... smile

I have a slight problem i need help with....

On occaision my Bot server is ping'ing out which in it'self isn't a problem, but when it happens my Bot is changing it's nick from ^Merlin to Corner_Lurker.
Upon some research i found this snippet which i thought would autochange my nick in this event...

on 1:CONNECT: {
if ($me != NICKHERE) {
msg nickserv ghost NICKHERE PASSHERE
nick NICKHERE
msg nickserv IDENTIFY PASSHERE
}
else {
msg nickserv IDENTIFY PASSHERE
}
}

my problem is it doesn't seem to work.....

Could anyone assist me in this matter please.

Eternally greatfull.....

Thanks in advance. smile


Edited in red.
Posted By: BritishGent

Re: Autonick changer - 12/06/07 10:07 AM

Hi

This is what I have compiled so far and it does not seem to work......

Does any one have any ideas they could throw my way....

Code:
ON *:CONNECT: {
  GetNick
}
ALIAS -l GetNick {
  if ($me == $anick) {
    .timerGetNick. $+ $cid 1 10 ISON $anick $mnick
  }
}
RAW 303:*: {
  if ($me == $anick) {
    if (!$istok($2-, $anick, 32) || $istok($2-, $mnick, 32)) {
      GetNick
      } | else {
      .nick $mnick
    }
    halt
  }
}

on 1:CONNECT: {
  if ($me != Corner_Lurker) {
    msg nickserv ghost Corner_Lurker password
    nick ^Merlin
    msg nickserv identify password
   }
  else { 
    msg nickserv identify password
   }
}


The above does not seem to be working...

What I am trying to achieve is this:

Scenario:

^Merlin connection aborted blahblah
connected as Corner_Lurker (which is 2nd choice nick)


**but at this point I would like the script to change the nick back to ^Merlin

Thanks in advance.
Posted By: Bekar

Re: Autonick changer - 12/06/07 10:16 AM

Code:
ALIAS -l GetNick {
  if ($me == $anick) {
    .timerGetNick. $+ $cid 1 10 ISON $anick $mnick
  }
}
RAW 303:*: {
  if ($me == $anick) {
    if (!$istok($2-, $anick, 32) || $istok($2-, $mnick, 32)) {
      GetNick
      } | else {
      .nick $mnick
      msg nickserv identify password
    }
    halt
  }
}
ON *:CONNECT: {
  GetNick
  if ($me != $mnick) {
    msg nickserv ghost $mnick password
   }
  else { 
    msg nickserv identify password
   }
}

Good to see my code going to good use :P

But that should about do it.

Makes the assumption that your primary nick in mIRC is '^Merlin', and your alternate nick is 'Corner_Lurker'.
Posted By: chili_beta

Re: Autonick changer - 13/11/07 06:09 AM

Sorry to bump an old thread but this is nearly want I'm trying to look for.

I use two nicks: one when I'm active and another one when I'm away. Since my connection isn't that great, I get disconnected 3 to 4 times a day. By default, I ghost the normal nick in the auto perform, but when it's the away nick that I'm using at the time, it causes to reconnect to the other nick (main), so it kinda beats the purpose of using an away nick.

Do you think your code can be adapted to this?

I'll appreciate any help.
© 2022 mIRC Discussion Forums