mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 3 1 2 3
#49269 14/09/03 03:41 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
umm ok for some reason i just decided to make a script to mass kick bots out of a channel beacuse we constantly get hit with them but the prob is it only kicks 1 bot and thats it O-o idk
Code:
alias mass_kick {
  .set %masskick.count 0
  .set %masskick.total $nick(#,0)
  .set %masskick.me $nick(#, $me) 
  :loop
  if (%masskick.count >= %masskick.total) { goto end }
  k $snick(#,$snick(#,%masskick.count)) Mass Kick
  inc %masskick.count 1
  goto loop
  :end
}
menu nicklist {
  mass kick: { mass_kick }
}


Need amazing web design for low price: http://www.matrixn3t.net
#49270 14/09/03 07:15 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
We do not help with channel take-over scripts. Your code intends to kick everyone out, not just the bots. You can stop a botflood with a simple join-flood code that sets a mode +i on a channel.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#49271 14/09/03 02:43 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
Posts: 242
Code:
alias mass_kick {
  var %i = 1
  while ($nick(#,%i) != $null) {
    if (($nick(#,%i) == $me) || ($nick(#,%i) == %lastnick)) inc %i
    else {
      [color:green]ban -u10 # $+($nick(#,%i),!*@*)[/color]
      kick # $nick(#,%i) Mass Kick
      var %lastnick = $nick(#,%i)
    }
  }
}
menu nicklist,channel {
  Mass Kick:mass_kick
}


Edit: Ok I'll add this ...
ATMA, please don't use this for taking over channels.

Last edited by r0ck0; 14/09/03 03:35 PM.
#49272 14/09/03 03:13 PM
Joined: Apr 2003
Posts: 300
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
locutusofborg said:

We do not help with channel take-over scripts. Your code intends to kick everyone out, not just the bots. You can stop a botflood with a simple join-flood code that sets a mode +i on a channel.


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#49273 14/09/03 03:15 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
Posts: 242
only thing I have to say about that is ...
locutusofborg shouldn't use the word we in a denial of help statement.

Last edited by r0ck0; 14/09/03 03:16 PM.
#49274 14/09/03 03:17 PM
Joined: Apr 2003
Posts: 300
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
well who would want to help a channel take over script?
i know i wouldnt


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#49275 14/09/03 03:18 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
Posts: 242
well I just did [/high & mightiness]

#49276 14/09/03 03:19 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
1 problem:
a mass kick can be used as a channel takeover, doesnt mean it is going to be for that....


new username: tidy_trax
#49277 14/09/03 03:21 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
Posts: 242
tyvm pheonix .. exactly
go add a comment here too will ya? thx smile

#49278 14/09/03 03:21 PM
Joined: Apr 2003
Posts: 300
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
well im sure that alot of people agree with me about mass kick scripts
EDIT*
even what apears to be a harmless enough mass voice script can be turned into a mass deop

Last edited by andymps; 14/09/03 03:30 PM.

Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#49279 14/09/03 03:30 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
maybe he wants the mass kick simply because he doesnt want his room any more, maybe he wants it for the reason he said, maybe he wants it for channel takeovers, whatever the reason, you cant control him nor know what he needs it for..


new username: tidy_trax
#49280 14/09/03 03:31 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
To take it a step further, here you go...

Code:
; mode changes

; Usage: /massmode <chan> <mode>
; Example: /massmode #mychannel +o
/massmode {
  var %chan = $$1, %nick = 1, %nicks
  while ($nick(%chan, %nick)) {
    var %nicks = $addtok(%nicks, $ifmatch, 32)
    if ($numtok(%nicks, 32) == $modespl) || (%nick == $nick(%chan, 0)) {
      /mode %chan $+($left($$2, 1),$str($right($$2, 1),$modespl)) %nicks
      /unset %nicks
    }
    /inc %nick
  }
}


Personally, if you dont like the idea of a take over (in all the seriousness you bing to it), try setting chanserv protections. ChanServ can limit modes like +b, where noone can eb banned. Also, you have user levels, use them. Set those who regular ur channel to protected. If your netowrk doesnt have services, write a script..

Code:
on !@*:BAN:#: {
  /inc -u3 % [ $+ [ $chan ] $+ ] . [ $+ [ $nick ] ]
  if (% [ $+ [ $chan ] $+ ] . [ $+ [ $nick ] ] > 4) /kick $chan $nick Takeover Detected
}

on !@*:KICK:#: {
  /inc -u3 % [ $+ [ $chan ] $+ ] . [ $+ [ $nick ] ]
  if (% [ $+ [ $chan ] $+ ] . [ $+ [ $nick ] ] > 4) /kick $chan $nick Takeover Detected
}


There, that allows only 4 mode changes per three seconds (including kicks). If they do more, they get the golden boot award... It simple people


-KingTomato
#49281 14/09/03 03:32 PM
Joined: Apr 2003
Posts: 300
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
well thats why u dont help mass anything scripts


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#49282 14/09/03 03:32 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
Posts: 242
smile

#49283 14/09/03 03:32 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i can help with whatever i want..
if you dont help him he's only going to get it elsewhere, so ya might as well save him the trouble;\


new username: tidy_trax
#49284 14/09/03 03:34 PM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
its not a channel take over script -_- my server gets smashed by bots and stuff so me and my friend were trying to find a way to remove them quickly


Need amazing web design for low price: http://www.matrixn3t.net
#49285 14/09/03 04:11 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
All discussion about a war script aside for a sec...

Keep in mind that you can only kick a certain number of bots or people before you, yourself, get killed for flooding the server. Since bot attacks are unwelcome on just about every network maybe this is something you should discuss with an oper. Unless you are able to provide this bot of yours with an o:line (provides immunity against being flooded off) then it simply will not go the distance against a big attack, regardless of whether you use mIRC, an eggdrop or whatever.

#49286 14/09/03 05:17 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
I wouldn't have to if people would stop helping with lame take-over scripts. IRC is a place to have fun, not a place to annoy the hell out of someone and forcibly take what is not yours. I for one keep that in mind when I help people. I do not provide them with answers to code that can be used or mostly will be used in harmful ways, either to themselves, other users or a IRC network. I was hoping the serious IRC lovers would agree with me there. Guess some people just enjoy harassing others and helping people to harass others.

That said: mass commands generally serve no other purpose than to wreak havoc in a channel (just like "revenge" scripts, which 95% of the IRC population apparantly mistakes for "protection" scripts). His problem was with floodbots. That problem does NOT require you to kick all the users from the channel. Just the bots. You can simply set a +i on the channel to stop the flood.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#49287 14/09/03 05:26 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
maybe he doesnt want +i on :tongue:, if you meant only set +i when the bots flood-join, then maybe they dont flood-join and only join every so often, until there are loads and then the flooding starts.


new username: tidy_trax
#49288 14/09/03 05:36 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
Posts: 242
I don't care to question why .. he needed help and I helped .. end of story.

Page 1 of 3 1 2 3

Link Copied to Clipboard