mIRC Home    About    Download    Register    News    Help

Print Thread
change nick #235156
25/11/11 03:46 PM
25/11/11 03:46 PM
Joined: Sep 2011
Posts: 37
C
Chinshy Offline OP
Ameglian cow
Chinshy  Offline OP
Ameglian cow
C

Joined: Sep 2011
Posts: 37
is there a way on mirc to make it when my nick already taken and then he is on Alternative nick .. go to the main nick when its drop

Re: change nick [Re: Chinshy] #235158
25/11/11 05:52 PM
25/11/11 05:52 PM
Joined: Mar 2010
Posts: 142
London, UK
Masoud Offline
Vogon poet
Masoud  Offline
Vogon poet

Joined: Mar 2010
Posts: 142
London, UK
Well, you can use ON UNOTIFY event to achieve this. First you need to add your main nickname to your notify list and then copy this to your script editor (Remotes section):

Code:
on *:Unotify:{
  if ($nick == $mnick) { .timer.cn 1 1 nick $nick }
}


This can be network specified or may have other conditions as you want, i just wrote this example to give the clue where to begin. However, in simple cases this would work without any problems.


Nothing...
Re: change nick [Re: Masoud] #235159
25/11/11 06:21 PM
25/11/11 06:21 PM
Joined: Sep 2011
Posts: 37
C
Chinshy Offline OP
Ameglian cow
Chinshy  Offline OP
Ameglian cow
C

Joined: Sep 2011
Posts: 37
well hope if u can show me with examples

for example if my main nick is Chinshy

and the alternative nick is Chinshy[a]

Re: change nick [Re: Chinshy] #235166
25/11/11 10:23 PM
25/11/11 10:23 PM
Joined: Mar 2010
Posts: 142
London, UK
Masoud Offline
Vogon poet
Masoud  Offline
Vogon poet

Joined: Mar 2010
Posts: 142
London, UK
I already did. In the code above, $nick points to the nickname that goes offline, and $mnick points to your main nickname. Since you have added your main nickname in your notify list, when it gone offline you will change your nickname to your main nickname automatically.


Nothing...
Re: change nick [Re: Masoud] #235189
27/11/11 04:12 PM
27/11/11 04:12 PM
Joined: Sep 2011
Posts: 37
C
Chinshy Offline OP
Ameglian cow
Chinshy  Offline OP
Ameglian cow
C

Joined: Sep 2011
Posts: 37
it worked thanks smile

Last edited by Chinshy; 27/11/11 04:18 PM.
Re: change nick [Re: Chinshy] #235190
27/11/11 05:23 PM
27/11/11 05:23 PM
Joined: Oct 2003
Posts: 3,918
Montreal, QC, Canada
A
argv0 Offline
Hoopy frood
argv0  Offline
Hoopy frood
A

Joined: Oct 2003
Posts: 3,918
Montreal, QC, Canada
Note that this script has one drawback in that you can't intentionally change your nickname with /nick anymore, because each attempt will trigger ON UNOTIFY and return you to your main nick. If you want to be able to use /nick manually, you have to replace the script with the following minor modification:

Code:
on *:UNOTIFY:if (!%ignoreunotify && $nick == $mnick) nick $nick | unset %ignoreunotify
on *:NICK:if ($me == $nick && $nick == $mnick) { %ignoreunotify = $true }


This will watch for the ON NICK event (for your nick changing off of $mnick) and if seen, will ignore the next UNOTIFY event.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: change nick [Re: argv0] #235195
28/11/11 07:47 PM
28/11/11 07:47 PM
Joined: Sep 2011
Posts: 37
C
Chinshy Offline OP
Ameglian cow
Chinshy  Offline OP
Ameglian cow
C

Joined: Sep 2011
Posts: 37
yea was going to mention that issue smile