mIRC Home    About    Download    Register    News    Help

Print Thread
#221456 19/05/10 10:12 AM
Joined: Feb 2008
Posts: 34
M
mbab Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Feb 2008
Posts: 34
Hmm was wondering how to set script/alias or w/e to change from secondary to primary nick on disconnect,being lazy lately to type it=P

Its gonna be helpful especially when i am afk

Joined: Apr 2010
Posts: 964
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 964
Code:
on *:DISCONNECT:{ if ($me != $mnick) { nick $v2 } }

Joined: Feb 2008
Posts: 34
M
mbab Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Feb 2008
Posts: 34
Where should i put that, in remotes or aliases?

Joined: Dec 2002
Posts: 1,995
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,995

Remotes.

Joined: Feb 2008
Posts: 34
M
mbab Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Feb 2008
Posts: 34
This doesnt work

Joined: Jul 2007
Posts: 1,124
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,124
The code provided may need a timer:
Code:
on *:disconnect:{
  if $me != $mnick { .timermnick 1 2 nick $v2 }
}

Joined: Dec 2002
Posts: 1,995
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,995


You could just add it to your perform list.

mnick nick1
anick nick2

V
Venus78
Venus78
V
on *:disconnect: {
server <add> port -i <Nick>
unset %test_ok $+ $nick
}

Z
ziv
ziv
Z
Put this in your remote:

Code:
on 1:disconnect:{ server $server }
on 1:connect:if $me != $mnick { nick $v2 }


ziv.


Link Copied to Clipboard