mIRC Homepage
Posted By: MrDoom idle kicker - 08/07/05 10:47 PM
hey guys i am looking for a remote that will check for an idle time of 1hr for all chatters and all ops in my channel.i would like it to send them a notice 5 mins before they are kicked saying that they have 5mins to chat or be kicked.is this possible?i also have 3 bots in the channel which i do not want included in the idle kick is there a way to do that as well?not really sure how an idle kicker would work so if you need any more info i will be glad to give you want you need,thanks in advance...you guys are the best!thanks
Posted By: MikeChat Re: idle kicker - 09/07/05 12:17 AM
CLICK HERE

the search tool has that (among others)
Posted By: MrDoom Re: idle kicker - 09/07/05 01:04 AM
thanks i will try the link,i tryed the search feature and did not find what i was looking for,that is why i posted.thanks
Posted By: MrDoom Re: idle kicker - 09/07/05 04:34 AM
ok i have this now,but nothing seems to be working,is there some way to test it to see if it is actually doing something?i have it saved on a .txt file in my mirc directory,same as all my other remotes....but i have no idea if it is actually working......

on :*:join:#channel: {
set %scan.idle.time 900
$+(.,timerscan.idle.,$chan) 0 30 scanidle $chan
}
on :*:part:#channel: {
$+(.,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
}
}


and also is the 900 is the amout of idle time before it kicks?sorry i am completely lost with this one..please help..thanks confused
Posted By: RusselB Re: idle kicker - 09/07/05 09:42 AM
Code:
on !*:join:#channel: { 
$+(.timeridle.,$chan) 0 30 scanidle $chan 
} 
alias scanidle { 
var %x = 1 
while ( %x &lt;= $nick($1,0,v) ) { 
if ( $nick($1,%x,v).idle &gt;= 900) &amp;&amp; ( $nick($1,%x,v) != $me ) { 
kick $1 $nick($1,%x,v) Anti-idle-kick 
} 
inc %x 
} 
} 
  


You have an extra : in your on join & on part events. I removed them in the above code. The 900 is the amount of time the person has to be idle in the room before being kicked (equal to 15 minutes). No need to set a variable for that, since it can be hard coded just as easily. Since you want the timer to check idle times every 30 seconds (according to the code), you don't want to shut off the timer when someone parts the room. So I removed the ON PART event

I did notice that your code only checks the idle time of those that are voiced. In that regard, I altered the while line so that it only references those in the room that are voiced. Might not make any difference, but might speed things up if you have a lot in the room that are ops, hops, or regulars .
Posted By: ik000ike Re: idle kicker - 09/07/05 11:02 AM
set %scan.idle.time 900 = 900 minnits
that would make it 15 hours
Posted By: MrDoom Re: idle kicker - 09/07/05 01:00 PM
thanks russelb it works great now,thanks alot,and thanks for the explanation now i actually understand it too.
Posted By: RusselB Re: idle kicker - 09/07/05 01:30 PM
idle time, like all other timings in mIRC default to seconds, not minutes
Posted By: ik000ike Re: idle kicker - 09/07/05 03:22 PM
ahhhh didn't know that , now i know smile
© mIRC Discussion Forums