mIRC Home    About    Download    Register    News    Help

Print Thread
M
malis
malis
M
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

S
Scratch
Scratch
S
Use timers.

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

Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
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

M
malis
malis
M
tnx for the help


Link Copied to Clipboard