mIRC Homepage
Posted By: WildCard Auto Nick Script.. im lost - 01/12/05 06:28 AM
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
Posted By: drc4 Re: Auto Nick Script.. im lost - 01/12/05 06:45 AM
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.
Posted By: RusselB Re: Auto Nick Script.. im lost - 01/12/05 07:02 AM
Another possibility is
Code:
on me:*:nick:{
;commands & actions to be completed here
}
  
Posted By: Kelder Re: Auto Nick Script.. im lost - 01/12/05 10:01 AM
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 !
}
© mIRC Discussion Forums