mIRC Home    About    Download    Register    News    Help

Print Thread
#239424 26/10/12 08:56 AM
Joined: Oct 2012
Posts: 7
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Oct 2012
Posts: 7
Hi
I need something that forces logon scrip pause between commands as the followed command needs to wait for previous command be fully handled by the server. If I use /msg nickserv IDENTIFY following by command to invite me to private channel, it fails with error I need to register first.

So the sequence
/msg nickserv IDENTIFY
/msg ChannelBot password <---- here it already requires that I'm identified


doesnot work. Anyy hint?

Anakunda #239425 26/10/12 09:07 AM
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
mIRC uses timers. See /help /timer
E.g. /.timer 1 5 msg ChannelBot etc.

That said, instead of just sending the commands like that, I would recommend identifying to NickServ upon receiving the NOTICE from NickServ asking you to identify (see /help on notice) and sending your msg to the bot after NickServ sends you the notice that you have successfully identified.

5618 #239426 26/10/12 09:11 AM
Joined: Oct 2012
Posts: 7
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Oct 2012
Posts: 7
Thanks, and additional question how do I recognize more mirc instances minimized to tray by the balloon instead of bare mIRC, in case I want to restore client for a specific network.

Anakunda #239427 26/10/12 09:18 AM
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
I'm not sure I understand what you mean.

You are running multiple instances of mIRC? (Is there a specific reason for this? You know you can connect to multiple networks at the same time in one instance of mIRC, right?)
And you want to do what?

5618 #239428 26/10/12 09:25 AM
Joined: Oct 2012
Posts: 7
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Oct 2012
Posts: 7
I didnot know that I can connect to multiple networks. If I connect to another network, my client always disconnects from the current, so I had opened one client for each network. How do I tell mIrc to use more networks in same instance?

//edit - ah I find it already, I need to open a new windows, resolved.

Yet to 1st question:
Code:
/ajinvite off
/msg nickserv IDENTIFY abcde
on !1:NOTICE:*Password accepted - you are now recognized*:#:/msg ChannelBot invite 123456


gives this error: ON Unknown command

What did I wrong?


Last edited by Anakunda; 26/10/12 09:32 AM.
Anakunda #239429 26/10/12 09:42 AM
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Yes, you open a new window via the menu or if you use the /server command to connect then you use server -m (see /help /server).

As for the other command... You are probably using Perform here, right?
An on NOTICE script needs to go in Remote script, found via Alt+R or under Tools > Scripts Editor...
You probably need to change the code you have to:

on !1:NOTICE:*Password accepted - you are now recognized*:*: if ($network == NETWORK) .msg ChannelBot invite 123456

I changed # to * since it's probably not a channel notice and I included a check to only send the command on a specific network, since you won't want to do it on all networks where NickServ asks you to identify. You'll need to replace NETWORK with whatever the value for $network is on that specific network. Type //echo -a $network to see the correct value for your network.

5618 #239430 26/10/12 10:02 AM
Joined: Oct 2012
Posts: 7
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Oct 2012
Posts: 7
Bingo, got it working.
TY cool


Link Copied to Clipboard