mIRC Homepage
Posted By: bodo0815 anti-idle kick script - 10/04/05 09:26 PM
hi
i have this...

Code:
on me:*:join:#chan: { 
  set %scan.idle.time 900 
  $+(.,timerscan.idle.,$chan) 0 30 scanidle $chan 
} 
on me:*:part:#chan: { 
  $+(.,timerscan.idle.,$chan) off 
} 
alias scanidle { 
  var %x = 1 
  while ( %x <= $nick($1,0) ) { 
    if ( $nick($1,%x,v).idle >= %scan.idle.time ) && ( $nick($1,%x,v) != $me ) { 
      kick $1 $nick($1,%x,v) Anti-Idle-Kick 
    } 
    inc %x 
  } 
} 


...but @op´s and %halfop´s have been kicked... plz help

thx bodo
Posted By: Ratzor Re: anti-idle kick script - 10/04/05 09:31 PM
on me:*:join:#chan: {
set %scan.idle.time 900
$+(.,timerscan.idle.,$chan) 0 30 scanidle $chan
}
on me:*:part:#chan: {
$+(.,timerscan.idle.,$chan) off
}
alias scanidle {
var %x = 1
while ( %x <= $nick($1,0) ) {
if ( $nick($1,%x,v).idle >= %scan.idle.time ) && ( $nick($1,%x,v) != $me ) && ($nick($1,%x,v) !isop $chan) && ($nick($1,%x,v) !ishop $chan) {
kick $1 $nick($1,%x,v) Anti-Idle-Kick
}
inc %x
}
}


i think this should work...
Posted By: bodo0815 Re: anti-idle kick script - 11/04/05 03:27 AM
do not work :-(
same effect on the first script... no errors but op´s and halfops kicked
Posted By: SladeKraven Re: anti-idle kick script - 11/04/05 07:02 AM
I've slightly modified the code but it is untested. You was checking if they had operator and half operator status.

Code:
on me:*:join:#chan: { 
  set %scan.idle.time 900 
  $+(.,timerscan.idle.,$chan) 0 30 scanidle $chan 
} 
on me:*:part:#chan: { 
  $+(.,timerscan.idle.,$chan) off 
} 
alias scanidle { 
  var %x = 1 
  while ( %x &lt;= $nick($1,0) ) { 
    if ( $nick($1,%x,v).idle &gt;= %scan.idle.time ) [color:red]&amp;&amp;[/color] ( $nick($1,%x,v) != $me ) [color:red]||[/color] ($nick($1,%x,v) !isop $chan) [color:red]||[/color] ($nick($1,%x,v) !ishop $chan) { 
      kick $1 $nick($1,%x,v) Anti-Idle-Kick 
    } 
    inc %x 
  } 
} 
Posted By: bodo0815 Re: anti-idle kick script - 11/04/05 07:15 AM
it works :-)
but... my bot have autovoice
service-bot give +o on join, after 10sec my bot give +v
and user have been kicked :-(
Posted By: SladeKraven Re: anti-idle kick script - 11/04/05 07:29 AM
Word for the wise, don't auto op just anyone. wink
Posted By: bodo0815 Re: anti-idle kick script - 11/04/05 07:55 AM
last question :-)
in status windows: Anti-Idle-Kick No such nick/channel
why?
if i delete Anti-Idle-Kick... instatus windows: KICK Not enough parameters
Posted By: fish01 Re: anti-idle kick script - 11/04/05 01:58 PM
Quote:
on me:*:join:#chan: {

it is on *:join:#chan:{ }
no *
Posted By: CtrlAltDel Re: anti-idle kick script - 11/04/05 02:25 PM
Quote:
on me:*:join:#chan: {

this works only when YOU join the channel smile

Quote:
on *:join:#chan: {


this works when anyone joins the channel smile
© mIRC Discussion Forums