Looking over the snippet section i didn't find a decent mass invite script. I've been out of scripting for quite some time, so here is my take on it.
Usage: /minvite #from #to
alias minvite {
if (!$1) || (!$2) {
echo -a * /minvite Insufficient Parameters, Correct Syntax: /minvite #from #to
}
elseif ($me !ison $1) || ($me !ison $2) {
echo -a * /minvite ERROR You need to be in the specified channels
}
else {
var %x 1 | while (%x <= $nick($1,0)) { var %n $addtok(%n,$nick($1,%x),46)) | inc %x
}
echo -a * /minvite Mass inviting commencing
part $1
var %z 1 | while (%z <= $numtok(%n,46)) {
.timer $+ %z 1 %z invite $nick($1,%z) $2 | inc %z
}
}
}
hmm, why not add a timer with 5seconds or something?
and how to stop it ?
because NOW the script get target change to fast, after hmm 15-20 invites, and then there is one more problem,
you cant stop the script can you?
and yea i see the .timer in the script, but it stil invites one/second, so..
it would be nice if someone could add this timer with like 5 seconds, im a quite noob at this irc scripts, so dont get the timer to work :..
Just a little idea, as I'm likely to forget and many others will too, and they might not what to peer in at the script or look at this page all the time..
Where
echo -a * /minvite Insufficient Parameters
Change to:
echo -a * /minvite Insufficient Parameters, Correct Syntax: /minvite #from #to
Or something similar anyway :)
$addtok is really quite easy aussiedags
$addtok(hi,there,32) = hi there
the first parameter is the text that will be added onto, the second is the text to add to the first parameter and the third parameter is the token to seperate the first and second parameters
a few examples
$addtok(this is,a test,32) = this is a test
$addtok(3,14,46) = 3.14
$addtok(hello,world,44) = hello,world
when I activate the command / minvite # from # to the channel
and this fact could lead to flooding in a bro maybe user should channel a lot because he was sent at once invite and then we will dc: P
notes: create a new script and mass invite had a lot :D