mIRC Homepage
Posted By: Panic Join > Wait script - 24/11/07 03:06 PM
Hello, Just asking does anyone know how to do this when i join my bot on QuakeNet it has a message script that when you join a channel it says the message but doing this is disconnects the bot because of Excess Flood. I do not want to remove the script how can i have it so that it joins all the channels i want it to join with a 10 second wait in between each channel joining

Thanks
Panic
Posted By: nomer2007 Re: Join > Wait script - 24/11/07 03:11 PM
Code:
on !*:join:#: 
Posted By: Panic Re: Join > Wait script - 24/11/07 03:47 PM
Originally Posted By: nomer2007
Code:
on !*:join:#: 


Sorry this would help but what about the 10 seconds in between joining channels this would just join anyway
Posted By: nomer2007 Re: Join > Wait script - 24/11/07 04:28 PM
How can it be disconnected if it doesn't do anything but join?

Code:
on *:connect: {
  var %chan = #chan1,#chan2,#chan3 , %a = 1
  while $gettok(%chan,%a,44) {
    .timer 1 10 join $v1
    inc %a
  }
}

Posted By: RoCk Re: Join > Wait script - 24/11/07 04:42 PM

You were almost there...

Code:

on *:CONNECT: {
  var %a = 1,%chan = #chan1 #chan2 #chan3
  while ($gettok(%chan,%a,32)) {
    .timer 1 $calc(%a * 10) join $v1
    inc %a
  }
}



~ Edit ~
Sorry, I said -almost- because the code you had would have the bot joining all channels at exactly the same time, 10 seconds after connection, but I believe the op wants the bot to join the channels not all at once, but with a 10 second delay between each join.

~ Edit ~
Changed %a = 0 to %a = 1 ... thanks nomer2007.

Posted By: nomer2007 Re: Join > Wait script - 24/11/07 04:52 PM
thanks still learning
Posted By: RoCk Re: Join > Wait script - 24/11/07 04:54 PM

Me too. smile
Posted By: nomer2007 Re: Join > Wait script - 24/11/07 05:41 PM
Code:
on *:connect: {
  var %chan = #chan1,#chan2,#chan3 , %a = 1
  while $gettok(%chan,%a,44) {
    inc %timer 10
    timer 1 %timer join $v1
    inc %a
  }
}


Quote:
var %a = 0,%chan = #chan1 #chan2 #chan3
while ($gettok(%chan,%a,32)) {
.timer 1 $calc(%a * 10) join $v1


don't mean anything but there is something wrong with this coz on start the N = 0 and will return 3 so it'll do a command like
//join 3
Posted By: RoCk Re: Join > Wait script - 24/11/07 08:57 PM

Good catch, I changed it.
Posted By: Bekar Re: Join > Wait script - 24/11/07 09:12 PM
Originally Posted By: nomer2007
How can it be disconnected if it doesn't do anything but join?

To answer this question, I'll give an example.

ON CONNECT I join a whole pile of channels. ON JOIN I do channel-based /who and /mode commands to update my IAL/IBL.

One network I join has approximately 8,000 users total in the channels I join. Every time I joined that network, and auto-joined those channels, I'd excess-flood myself off.

I had to use a similar method to delay the joining of my channels to spread the /who load over time.
Posted By: Smalls92 Re: Join > Wait script - 30/11/07 04:01 AM
can you please eleberate more on this i tried the script above but it's not working properly for me i have 25 channels that i join on one network and it still got excessive flood i even tried increasing the timer to 20 and still the same results it's really anoying
Posted By: Panic Re: Join > Wait script - 18/12/07 07:00 AM
Hello all,

Thanks for your help but i just found a quicker way in preform type insted of /join #channel type /timer 1 [delay] /join #channel and it will join that channel on the delay you set

Easy as pie

Thanks
Posted By: Lpfix5 Re: Join > Wait script - 18/12/07 09:17 PM
sick

word up smile
© mIRC Discussion Forums