Invite Script

By Zaff on Mar 07, 2009

You ever seen on some channels when You have the bots called

Bot
[1]Bot
[2]Bot
[3]Bot
[4]Bot

And you invite 'Bot' And it makes one of the random bots join your channel? Well this is what that script does, its not much and pretty simple and basic, And could use ALOT of work.

Make sure to set %botname to your MAIN bots name
Make sure to set %bots to the number of bots you have connected, NOT INCLUDING THE MAIN ONE

on *:invite:#:{
  var %x $rand(1,%bots)
  set %tempnick $nick
  if ($me == %botname) {
    notice $nick Searching for bots....
    timer 1 3 msg [ $+ %x $+ ] $+ %botname ^Go $chan
    writeini channels.ini channels $chan yes
    close -m
  }
}

on *:text:^go *:?:{
  if ($nick == %botname) {
    join $2
    timer 1 2 msg $2 Your Message to the Channel.
    close -m
  }
}

Comments

Sign in to comment.
Tamaki   -  May 01, 2009

that doesn't even make any sense...when you say it'll send the nick to other mirc, do you mean another server?

 Respond  
Khurram   -  Apr 25, 2009

can any one help me in getting the code that we have two mirc open, one present in the channel, when any nick joins the channel the first mirc will send nick to other mirc and other mirc will send pm to the nick..

 Respond  
Zaff   -  Mar 08, 2009

Yea, You could. But like I said I never planned on releasing this and I had no need for the load and unload. So you guys can add that yourself :)

 Respond  
Tamaki   -  Mar 07, 2009

well...if thats the case...you could also get rid of the variables with an on *:UNLOAD: ?

 Respond  
Zaff   -  Mar 07, 2009

Yea, I could do that But I wasnt planning on releasing this. I dont like having alot of variables floating around.

 Respond  
Tamaki   -  Mar 07, 2009

you have 1 too many close braces in your On Invite
ok script if you have bots with that nick...easy way to get them to a channel

You could add something like this to it:

on *:LOAD { set %bot.greet $?="Please enter your message to the channel." )

and then change your On Text:

on *:text:^go *:?:{
  if ($nick == %botname) {
    join $2
    timer 1 2 msg $2 %bot.greet $+ .
    close -m
  }
}
 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.