mIRC Home    About    Download    Register    News    Help

Topic Options
#175554 - 25/04/07 12:07 AM How to kick
khurram_ch Offline
Ameglian cow

Registered: 11/04/07
Posts: 21
Loc: Pakistan
hy, need some assistance.
1: if someone repeats a line three times so i want to my script to kick him/her out of the channel with this reason "Please do not repeat your question more than 3times(2min banned)
he/she must be banned for 2 minutes too, and after 2minutes my script unban him automatically.

2: I am Founder of a channel, if an AOp/SOp try to ban/kick me so my script ban/kick them before they do and also del them from AOp/SOp list, i use DALnet so /cs AOp #channel del nick to del AOp similarly just replace SOp to AOp. and if i am an SOp in a channel and an AOp try this so he/she kicked out before that.

please reply the questions and also tell where to put the commands which you'll tell, in aliases/remote etc.
thanks


Edited by khurram_ch (25/04/07 12:16 AM)
_________________________
WornBean

Top
#175558 - 25/04/07 01:28 AM Re: How to kick [Re: khurram_ch]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
Please take a look in the Snippets section on Hawkee and check for one or more of the following
Repeat kick
Repeat ban
protection

Any scripts/snippets that you get would be loaded into the Remotes section.

Top
#175607 - 25/04/07 11:05 PM Re: How to kick [Re: RusselB]
khurram_ch Offline
Ameglian cow

Registered: 11/04/07
Posts: 21
Loc: Pakistan
The URL you gave me cannot be opend, if you understnad my question then please answer them.
Sorry for my english i am not an English
thanks
_________________________
WornBean

Top
#175612 - 25/04/07 11:26 PM Re: How to kick [Re: khurram_ch]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
That link works fine for me and we don't usually write full scripts for people, especially when there are full scripts already done that we can refer them to, which is what I did.

Top
#175616 - 25/04/07 11:39 PM Re: How to kick [Re: RusselB]
RoCk Offline
Hoopy frood

Registered: 16/12/02
Posts: 2009
It didn't work for me either but this one did.

Top
#175621 - 26/04/07 12:40 AM Re: How to kick [Re: RoCk]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
sigh...for the lack of a / character at the end

Top
#176426 - 09/05/07 09:39 PM Re: How to kick [Re: khurram_ch]
khurram_ch Offline
Ameglian cow

Registered: 11/04/07
Posts: 21
Loc: Pakistan
thanks guys, it is realy helping to me, got many useful things.
but my first question is still there, didnt get answer on that web too. if someone repeats a line......
Read the first question please and help me.
thanks
_________________________
WornBean

Top
#176429 - 09/05/07 10:06 PM Re: How to kick [Re: khurram_ch]
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
You can try this, untested tho:
Code:
on @*:text:*:#: {
  if ( %rept == $null ) { set %rept 60 }
  if ( %rep_ban == $null ) { set %repb 120 }
  if ( %rep_antal == $null ) { set %repa 3 }
  if ($nick == null) { return }
  var %rp.repeats = rp. $+ $nick $+ . $+ $chan
  var %rp.text = rp. $+ $nick $+ . $+ $chan $+ .text
  if ( % [ $+ [ %rp.repeats ] ] == $null ) {
    set -u [ $+ [ %rept ] ] % [ $+ [ %rp.repeats ] ] 1
    set -u [ $+ [ %rept ] ] % [ $+ [ %rp.text ] ] $1-
  }
  elseif ( % [ $+ [ %rp.text ] ] == $1- ) {
    inc % [ $+ [ %rp.repeats ] ]
  }
  elseif ( % [ $+ [ %rp.text ] ] != $1- ) {
    set -u [ $+ [ %rept ] ] % [ $+ [ %rp.text ] ] $1-
    set -u [ $+ [ %rept ] ] % [ $+ [ %rp.repeats ] ] 1
  }
  if ( % [ $+ [ %rp.repeats ] ] >= %repa ) { 
    kick # $nick % [ $+ [ %rp.repeats ] ] repeats in %rept second(s) Banned for $calc(%repb / 60) $+ minute(s)
    ban -u $+ %repb # $nick 3
    unset %rp. $+ $nick $+ . $+ $chan
    unset %rp. $+ $nick $+ . $+ $chan $+ . $+ text
  }
}

This will kick a user if he/she repeats something 3 times during the time 60 seconds, it will also ban that person for 2 minutes. To change the amount of time for the repeats, type: "/set %rept 60" or what ever you want it to be, to change the time the ban should last, use: "/set %repb 120" or what you want it to be, and last for how many repeats during the time type: "/set %repa 3" or how many you think it should be. To add this in your mirc, press "ALT + R" and paste it in a empty file there, and remember to remove the " " befor you try set anything: /set %rept 60 <- as an example.
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#176435 - 09/05/07 10:28 PM Re: How to kick [Re: sparta]
khurram_ch Offline
Ameglian cow

Registered: 11/04/07
Posts: 21
Loc: Pakistan
it works but it should ban first then kick, actualy when it kicks a person he suddenly join(if he's setteled his mirc to join when kicked) he get banned but after his joining.
Isnt there anyway that he bans first then kick someone.
Secondly:
Is there anyway that i put timer to every kick, whether i kick someone for repeating, advertisement, etc.
I got one in Hawkee.com but it doenst work, actually i am unable to understand that, so could you please tell me some easy way?
_________________________
WornBean

Top
#176452 - 10/05/07 03:04 AM Re: How to kick [Re: khurram_ch]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
1) To ban, then kick, swap the ban & kick lines.
2) Kicks aren't timed, if you're looking for something that will kick a person and then keep them off for a specified period of time, you'll have to use /ban -u<time> <channel> <nick>

Top
#191074 - 01/12/07 10:21 PM Re: How to kick [Re: RusselB]
khurram_ch Offline
Ameglian cow

Registered: 11/04/07
Posts: 21
Loc: Pakistan
The code you gave me to ban/kick for repeating for a specific time works fine when i swapped ban/kick lines. Now if i want the same thing for flood protection, suppose if someone floods in channel then he should be banned for 3 minutes and after that unbanned automatically.......
Thanks for the first code, it resolved many aproblems.
_________________________
WornBean

Top
#191075 - 01/12/07 10:25 PM Re: How to kick [Re: khurram_ch]
khurram_ch Offline
Ameglian cow

Registered: 11/04/07
Posts: 21
Loc: Pakistan
and also in both cases kicks for repeating/flooding it should count which kick is this.... at the end of the kick msg it should say somthing like 10th kick... then in next 11th kick.. similarly it should goes on.
_________________________
WornBean

Top
#191087 - 02/12/07 07:29 AM Re: How to kick [Re: khurram_ch]
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
use

inc %kick.counter

then %kick.counter will store the amount of kicks.

/help /inc
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top
#191110 - 02/12/07 07:10 PM Re: How to kick [Re: sparta]
khurram_ch Offline
Ameglian cow

Registered: 11/04/07
Posts: 21
Loc: Pakistan
Thank you, but this question is still there ==>
The code you gave me to ban/kick for repeating for a specific time works fine when i swapped ban/kick lines. Now if i want the same thing for flood protection, suppose if someone floods in channel then he should be banned for 3 minutes and after that unbanned automatically.......
Thanks for the first code, it resolved many aproblems.
_________________________
WornBean

Top
#191123 - 03/12/07 03:29 AM Re: How to kick [Re: khurram_ch]
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
What type of flood? ctcp, notice, text, join, part?
_________________________
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Top