mIRC Home    About    Download    Register    News    Help

Print Thread
#122585 13/06/05 07:01 AM
Joined: May 2005
Posts: 106
S
Vogon poet
OP Offline
Vogon poet
S
Joined: May 2005
Posts: 106
could someone make a script where it shows when someone has idled ova 25 minutes it kicks them BUT when it goes 20 minutes it notice's them saying talk now or be kicked


and thats the way the scout leader burns
#122586 13/06/05 07:45 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
on me:*:join:#:{
  .timer 0 300 idler
}
alias idler {
  if $chan {
    var %a = 1
    while %a <= $nick($chan,0,a,o) {
      if ($nick($chan,%a,a,o).idle >= 1200) && (%warn $+ $nick(%td.chan,%a,a,o)) {
        set %warn $+ $nick($chan,%a,a,o) Yes
        .msg $nick($chan,%a,a,o) You have been idle for $duration($nick($chan,%a,a,o).idle)
        .msg $nick($chan,%a,a,o) You have $duration($calc(1500 - $nick($chan,%a,a,o))) before being kicked from $chan for excessive idleing
      }
      elseif ($nick($chan,%a,a,o).idle >= 1500) {
        .ban -ku120 $chan $nick($chan,%a,a,o) Excessive Idleing
        unset %warn $+ $bnick
      }
      inc %a
    }
  }
}
 


This is a slight modification of the idle kick that my bot uses

#122587 13/06/05 08:02 AM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Code:
alias idlecheck {
  if ( $me isop $1 ) {
    var %ic = 1
    while $nick($1,%ic) {
      if ( $v1 !isop $1 ) && ( $v1 != $me ) {
        if ( $nick($1,%ic).idle >= 1500 ) kick $1 $nick($1,%ic) Do not idle!
        elseif ( $nick($1,%ic).idle >= 1200 ) msg $1 $+($nick($1,%ic),:) Talk now or be kicked
      }
      inc %ic
    }
  }
} 


Here is the timer to be used that will check every 5 mins.
Code:
 /timeridlecheck 0 300 idlecheck #CHANNEL 


You could manually scan/check the channel by typing : /idlecheck <#channel>

** Change #CHANNEL+


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#122588 13/06/05 08:39 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
$chan has no value inside a timer, you could pass the channel as $1 then refrence $1 instead of the channel, also correct this one you missed smile $nick(%td.chan,%a,a,o) oops!

#122589 13/06/05 10:51 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
hey...I said it was a modification of a code that I already use...didn't say it was perfect


Link Copied to Clipboard