mIRC Home    About    Download    Register    News    Help

Print Thread
#235497 21/12/11 07:16 PM
Joined: Nov 2011
Posts: 30
A
arc123 Offline OP
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Nov 2011
Posts: 30
want an warning echo for me that when someone repeat more than three it send me echo that ... this nick made repeat 3 times

arc123 #235498 21/12/11 08:57 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Have a look here , maybe you find something that you can use.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #235512 23/12/11 01:43 AM
Joined: Nov 2011
Posts: 30
A
arc123 Offline OP
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Nov 2011
Posts: 30
dont think its working ... why dont u got an easy one just

also easy to be read and edit

arc123 #235513 23/12/11 05:35 AM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Try this code.
Code:
on @*:text:*:#: {
  if ( %rep_time == $null ) { set %rep_time 60 }
  if ( %rep_ban == $null ) { set %rep_ban 120 }
  if ( %rep_amount == $null ) { set %rep_amount 3 }
  if ($nick == null) { return }
  var %rp.repeats = rp. $+ $nick $+ . $+ $chan
  var %rp.text = rp. $+ $nick $+ . $+ $chan $+ .text
  if ( % [ $+ [ %rp.repeats ] ] == $null ) {
    set -u [ $+ [ %rep_time ] ] % [ $+ [ %rp.repeats ] ] 1
    set -u [ $+ [ %rep_time ] ] % [ $+ [ %rp.text ] ] $1-
  }
  elseif ( % [ $+ [ %rp.text ] ] == $1- ) {
    inc % [ $+ [ %rp.repeats ] ]
  }
  elseif ( % [ $+ [ %rp.text ] ] != $1- ) {
    set -u [ $+ [ %rep_time ] ] % [ $+ [ %rp.text ] ] $1-
    set -u [ $+ [ %rep_time ] ] % [ $+ [ %rp.repeats ] ] 1
  }
  if ( % [ $+ [ %rp.repeats ] ] >= %rep_amount ) {

   ; Edit this line if you want to echo instead of kick
   ; If you dont use ban, just remove > Banned for $calc(%rep_ban / 60)) $+ minute(s)
    kick # $nick % [ $+ [ %rp.repeats ] ] repeats in %rep_time second(s) Banned for $calc(%rep_ban / 60)) $+ minute(s) $+ )

    ; If you dont want the ban function at all, just remove the line
    if (%ban_user == 1) { ban -u $+ %rep_ban # $nick 3 }
    unset %rp. $+ $nick $+ . $+ $chan
    unset %rp. $+ $nick $+ . $+ $chan $+ . $+ text
  }
}

Everything is set with /set %variable value

How long time to count the repeats: set %rep_time 60
How long time should the ban last : set %rep_ban 120
How many repears befor kick : set %rep_amount 3
Do you want to ban the users : set %ban_user 1 ( set %ban_user 0 <- to disable )

And this code goes in to your remote. ALT + R in your mirc.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #235515 23/12/11 12:24 PM
Joined: Mar 2010
Posts: 146
Vogon poet
Offline
Vogon poet
Joined: Mar 2010
Posts: 146
Code:
if ($nick == null) { return }

Nick is never null in an ON TEXT event. Also it's $null not null.

Also you're using a lot of useless evolution brackets, you can simply just use $+ or $+()


Nothing...
sparta #235520 23/12/11 04:38 PM
Joined: Nov 2011
Posts: 30
A
arc123 Offline OP
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Nov 2011
Posts: 30
okay but i wanted to get an echo that this guy is repeating not making a kick or ban if thats could be possible to set it maybe after 2 times repeat send me msg that $nick is repeating or something like that

Quote:
echo $2 7 $+ $timestamp [Repeat Detect] >> The Above Phase Has Been Repeated 3 Times In 30mins.


Link Copied to Clipboard