|
Joined: Dec 2002
Posts: 397
Fjord artisan
|
OP
Fjord artisan
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
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 }
}
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
Joined: Jun 2003
Posts: 242 |
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.
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
Fjord artisan
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
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
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.
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
Fjord artisan
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
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
Joined: Jun 2003
Posts: 242 |
well I just did [/high & mightiness]
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
Joined: Jun 2003
Posts: 242 |
tyvm pheonix .. exactly go add a comment here too will ya? thx
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
Fjord artisan
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
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
To take it a step further, here you go...
; 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..
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
|
|
|
|
Joined: Apr 2003
Posts: 300
Fjord artisan
|
Fjord artisan
Joined: Apr 2003
Posts: 300 |
well thats why u dont help mass anything scripts
Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
Joined: Jun 2003
Posts: 242 |
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Dec 2002
Posts: 397
Fjord artisan
|
OP
Fjord artisan
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
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
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.
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Jun 2003
Posts: 242
Fjord artisan
|
Fjord artisan
Joined: Jun 2003
Posts: 242 |
I don't care to question why .. he needed help and I helped .. end of story.
|
|
|
|
|