|
Joined: May 2006
Posts: 87
Babel fish
|
OP
Babel fish
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?
|
|
|
|
Joined: Oct 2007
Posts: 36
Ameglian cow
|
Ameglian cow
Joined: Oct 2007
Posts: 36 |
Hi Sableye2, Copy & Paste This code in Remote, and after Type /ReIdentify.
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!
·´¯`·.¸¸“Jã¢k øf ãll ‡rãÐ꧅„…Mã§têR øf Nønꔸ¸.·´¯`·
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
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
|
|
|
|
Joined: Oct 2007
Posts: 36
Ameglian cow
|
Ameglian cow
Joined: Oct 2007
Posts: 36 |
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. Sableye2, Check alt+o, Connect > Options > Preserve Nicknames is Enable. I´ve tried to help you Sableye2 Nice day for all!
·´¯`·.¸¸“Jã¢k øf ãll ‡rãÐ꧅„…Mã§têR øf Nønꔸ¸.·´¯`·
|
|
|
|
Joined: May 2006
Posts: 87
Babel fish
|
OP
Babel fish
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.
|
|
|
|
Joined: Jan 2004
Posts: 509
Fjord artisan
|
Fjord artisan
Joined: Jan 2004
Posts: 509 |
Anyways.
Play around with /mnick, /anick, and /tnick in your scripts.
-Neal.
|
|
|
|
Joined: Jan 2004
Posts: 509
Fjord artisan
|
Fjord artisan
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.
|
|
|
|
Joined: Oct 2005
Posts: 1,741
Hoopy frood
|
Hoopy frood
Joined: Oct 2005
Posts: 1,741 |
Try this script:
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
|
|
|
|
Joined: Aug 2006
Posts: 19
Pikka bird
|
Pikka bird
Joined: Aug 2006
Posts: 19 |
this should help its easier to understand. 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
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
This bit: 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.
|
|
|
|
Joined: Oct 2005
Posts: 1,741
Hoopy frood
|
Hoopy frood
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
|
|
|
|
|