Mass Invite

By aussiedags on Sep 06, 2009

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
    }
  }
}

Comments

Sign in to comment.
dallan   -  Nov 04, 2009

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 :..

 Respond  
Atr   -  Sep 08, 2009

Yeah, no problem. I'm a forgetful sod, always mixing my commands round xD

 Respond  
aussiedags   -  Sep 08, 2009

Nice suggestion atr, Thanx.

 Respond  
PATX   -  Sep 07, 2009

i like it.

 Respond  
TheboyskinG   -  Sep 07, 2009

@aussiedags : irc.allnetwork.org the server and channel #TBK nick: boy_JOMLO or TheboyskinG

 Respond  
sunslayer   -  Sep 07, 2009

I know it's easy, I was suggesting that i write a tutorial for it :)
srry misread what u said :p

 Respond  
Atr   -  Sep 07, 2009

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 :)

 Respond  
aussiedags   -  Sep 07, 2009

What network, and channel are you on/in ?

 Respond  
TheboyskinG   -  Sep 07, 2009

hahahaha ...

earlier, sorry my english is very bad :D and may affect speech :)

aussiedags, I really want to learn the script and if you want to teach me about the script in mirc?

 Respond  
aussiedags   -  Sep 06, 2009

I know it's easy, I was suggesting that i write a tutorial for it :)

 Respond  
sunslayer   -  Sep 06, 2009

$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
 Respond  
aussiedags   -  Sep 06, 2009

Works perfectly, Would you like me to write an $addtok tutorial for you. And there is protection against flooding :)

Notes: Learn to script.

 Respond  
TheboyskinG   -  Sep 06, 2009
  • Invalid format: $addtok (line 11, script.ini) <--- the problem is { var %n $addtok(%n,$nick($1,%x),46))" you must change it to "$addtok (% n, $ nick ($ 1,% x), 46)) "There should be a space after the $addtok , What have you check before bro?

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

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.