mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2005
Posts: 19
M
malis Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jan 2005
Posts: 19
I am a beginer scripter and im currently working on autojoin. And i have everything done execept i need the remote for to be able to set time limit before auto joining a channel i.e. time gap between each channel

Joined: Jan 2005
Posts: 37
S
Ameglian cow
Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 37
Use timers.

How about posting what you have so we can better help you?

Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Try something like:

Usage: /timedjoin <N> <#chan1,#chan2 key,#chan3,...>

Code:
alias timedjoin {

  if $1 !isnum 0-      { echo -ac info /timedjoin: Must specify interval in millisecs. }
  elseif #?* !iswm $2- { echo -ac info /timedjoin: Must specify channels to join.      }
  
  else {
    var %a = $1, %b = 0
    tokenize 44 $2-
    scon -r .timer -m 1 % $+ b join $* $(| inc %b %a,)
  }
}


Example:

/timedjoin 1650 #chan1,#chan2,#chan3 chankey,#chan4

Now a channel will be joined every 1650 milliseconds, in other words ever 1.65 seconds.

Specify 0 if you want to join the channels without interval.

Greets


Gone.
Joined: Jan 2005
Posts: 19
M
malis Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Jan 2005
Posts: 19
tnx for the help


Link Copied to Clipboard