mIRC Home    About    Download    Register    News    Help

Print Thread
Autonick changer #177786 31/05/07 09:30 AM
Joined: Oct 2006
Posts: 82
B
BritishGent Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 82
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


Never ASSUME!!!

As it often makes and ASS out of U and ME!!
Re: Autonick changer [Re: BritishGent] #177797 31/05/07 01:07 PM
Joined: Dec 2002
Posts: 503
B
Bekar Offline
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
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.

Re: Autonick changer [Re: Bekar] #177802 31/05/07 02:29 PM
Joined: Oct 2006
Posts: 82
B
BritishGent Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 82
Would this be 2 seperate code snippets or 1 code snippet ?

Thanks for your help smile


Never ASSUME!!!

As it often makes and ASS out of U and ME!!
Re: Autonick changer [Re: BritishGent] #177806 31/05/07 03:25 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
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.


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Re: Autonick changer [Re: Lpfix5] #178600 12/06/07 10:07 AM
Joined: Oct 2006
Posts: 82
B
BritishGent Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 82
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.


Never ASSUME!!!

As it often makes and ASS out of U and ME!!
Re: Autonick changer [Re: BritishGent] #178601 12/06/07 10:16 AM
Joined: Dec 2002
Posts: 503
B
Bekar Offline
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
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'.

Re: Autonick changer [Re: BritishGent] #189919 13/11/07 06:09 AM
Joined: Jan 2007
Posts: 16
C
chili_beta Offline
Pikka bird
Offline
Pikka bird
C
Joined: Jan 2007
Posts: 16
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.