mIRC Home    About    Download    Register    News    Help

Print Thread
#154639 30/07/06 07:00 PM
Joined: Apr 2004
Posts: 18
M
McFish Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Apr 2004
Posts: 18
need script ON CONNECT ... i want when my Script Connect To irc server to wait 3 minutes then do
/msg x@channels.undernet.org login username pass

#154640 30/07/06 07:16 PM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Try this
Code:
on *:CONNECT:{
  timer-login-on-connect 180 1 .msg x@channels.undernet.org login username pass
}


Copy and paste in your remotes window (ALT + R).
Good luck smile

#154641 30/07/06 07:28 PM
Joined: Apr 2004
Posts: 18
M
McFish Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Apr 2004
Posts: 18
is there another choice ? i mean not "timer-login-on-connect"
something like SET , INC , IF .... etc ??? or anything

#154642 30/07/06 07:37 PM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Well, yeah you can make it very complicated, but this is the basic version, that should do what you want.

You could add:
if ($network iswm Undernet) {
timer blah (like before)
}

etc, but the previous code does what you wanted...

#154643 30/07/06 08:03 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
That code would send the same command every second for 3 minutes, not wait 3 minutes then send the command once.

Corrected
Code:
 on *:connect:{ .timer 1 180 .msg x@channels.undernet.org login username pass } 

#154644 30/07/06 08:05 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The only way of guaranteeing a 3 minute delay after you connect before the message is sent, is by using a timer.

#154645 30/07/06 08:07 PM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
lol true.
oops.... :tongue:

#154646 30/07/06 08:08 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
You can also use /sleep.

#154647 30/07/06 08:59 PM
Joined: Feb 2006
Posts: 181
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 181
on 1:connect:{
if ($network == UnderNet) { .timer 1 60 /msg x@channels.undernet.org login username password | halt }
}

#154648 30/07/06 09:57 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I wasn't aware of that code, hixxy, I'll try to keep it in mind for future reference.

#154649 30/07/06 09:58 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
While that would ensure that it only worked for the Undernet network, it only does a one minute delay, and the original request was for a 3 minute delay. Also the halt is irrelevant


Link Copied to Clipboard