mIRC Home    About    Download    Register    News    Help

Print Thread
Personal Script - On NICK remote scripts... #43614 22/08/03 08:00 PM
Joined: Aug 2003
Posts: 3
K
Kijutsu Offline OP
Self-satisified door
OP Offline
Self-satisified door
K
Joined: Aug 2003
Posts: 3
Code:
alias ident-esper .msg nickserv identify <password-entered-here>
on me:NICK: if (($me == <nickname>) && ($network == EsperNet)) { ident-esper }



I'm making a script for my own personal use. However.. I have problems. smirk The on NICK remote doesn't work quite right.. and I'm thinking the problem arises out of the use of 'me' for a userlevel.. if anyone could offer any advice, it'd be greatly appreciated. laugh Thanks!


Re: Personal Script - On NICK remote scripts... #43615 22/08/03 08:37 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Not sure if this would help but try. something like
/auser Esper <Your Nick>
Code:
alias ident-esper { .msg nickserv identify &lt;password-entered-here&gt; }
on Esper:NICK: {
if ($nick == Your nick&gt;) &amp;&amp; ($network == EsperNet) { ident-esper }
}

Re: Personal Script - On NICK remote scripts... #43616 22/08/03 08:39 PM
Joined: Aug 2003
Posts: 3
K
Kijutsu Offline OP
Self-satisified door
OP Offline
Self-satisified door
K
Joined: Aug 2003
Posts: 3
I don't follow what /auser EsperNet Kijutsu would do. I know it adds my nick to the user list. But I'm not sure what it does for the script confused

I thank you for the reply tho. wink


Re: Personal Script - On NICK remote scripts... #43617 22/08/03 08:44 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
It adds a user yes, but that script would only trigger for is in the user list under the level "Esper" which would be you, and you're welcome.

Re: Personal Script - On NICK remote scripts... #43618 22/08/03 09:49 PM
Joined: May 2003
Posts: 215
lammkott Offline
Fjord artisan
Offline
Fjord artisan
Joined: May 2003
Posts: 215
You have the right idea prefixing the event with 'me', but you have forgotten to at the user level to the beginning of the event as well.

Code:
alias ident-esper .msg nickserv identify &lt;password-entered-here&gt;
on me:[color:blue]*:[/color]NICK: if ($me == &lt;nickname&gt;) &amp;&amp; ($network == EsperNet) { ident-esper }


Add the section in blue and it should work.


- Jason
Re: Personal Script - On NICK remote scripts... #43619 22/08/03 10:17 PM
Joined: Aug 2003
Posts: 3
K
Kijutsu Offline OP
Self-satisified door
OP Offline
Self-satisified door
K
Joined: Aug 2003
Posts: 3
D'oh!!! That makes perfect sense. Thanks a bunch for your help! grin

Confucious say: He who try to script while tired is stupid, and should find a bed. smirk