mIRC Home    About    Download    Register    News    Help

Print Thread
Auto Nick Script.. im lost #136666 01/12/05 06:28 AM
Joined: Dec 2004
Posts: 33
W
WildCard Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Dec 2004
Posts: 33
ive been looking through commands after commands. and cannot seem to find exactly how to script this. ive even looked around.
on me changing my nick i want to do 1 action or more. thats all. its soo simple. i just cant find how to do it (im still learning) thankyou for your time

Re: Auto Nick Script.. im lost #136667 01/12/05 06:45 AM
Joined: Nov 2005
Posts: 105
D
drc4 Offline
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 105
I'm nor sure that I understand you completely.. so if this is off, my apologies.
Code:
on *:NICK:{ if ($newnick == $me) { action's here }
}

where as $nick is the old nick, and $newnick is the new nick. If this is incorrect, try explaing more in depthy what you're trying to accomplish.

Re: Auto Nick Script.. im lost #136668 01/12/05 07:02 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Another possibility is
Code:
on me:*:nick:{
;commands & actions to be completed here
}
  

Re: Auto Nick Script.. im lost #136669 01/12/05 10:01 AM
Joined: Apr 2003
Posts: 701
K
Kelder Offline
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
Close, but usually mIRC updates its internal identifiers only after the event, so $me is still $nick and not yet $newnick...

on *:NICK:{ if ($nick == $me) { action's here } }

But better is (as said already)

on me:*:NICK:{
echo -s I changed nick from $nick == $me to $newnick !
}