mIRC Homepage
Posted By: WildCard Idle Kicking Script - 27/12/04 08:09 PM
in the channel #Judges4You i want to make a script that will kick someone who has no status if there idle for 5 minutes. (with a kick message. something like IDLE, please re-join if you were waiting..)
i have no clue how to even attempt it.. but i have 1 clue:
/kick
Posted By: DrStein Re: Idle Kicking Script - 27/12/04 11:04 PM
What kind of idle kick you want?

I mean you can check the idle of someone in your channel ,or the server idle

The first one is very easy to do it .
Code:
   
;Syntax /kickidle #channel minutes.r in $nick($1,%i,r) means that it will kick only regular users
alias kickidle {
  if ($1 ischan && $2 isnum) {
    var %i = 1
    while ($nick($1,%i,r)) {
      if ($nick($1,%i,r).idle >= $calc($2 * 60)) { kick $1 $nick($1,%i,r).idle 2 Anti-idle kick.You have more than $2 minutes idle }
      inc %i
    }
  }
}


If you want to check server idle ,the only way is to make a whois on everyone.raw 317 reply is the server idle.

I will write the code for server idle only if i am sure that this is what you want :tongue:.Also keep in mind that checking server idle in big channel will cause you lag.
Posted By: WildCard Re: Idle Kicking Script - 27/12/04 11:50 PM
its just a channel. all non +v or higher status should not idle there for more than 5 minutes without speaking. they join... and 5 minutes later if they say nothing.. or if they havent said anyting for 5 minutes, i need to kick them. will this script do that?
Posted By: WildCard Re: Idle Kicking Script - 28/12/04 01:30 AM
i set it up... but.... i dun know how it exactly works
Posted By: WildCard Re: Idle Kicking Script - 28/12/04 03:21 AM
i know your reading this.. can you help?
Posted By: DrStein Re: Idle Kicking Script - 28/12/04 05:56 AM
Actually i was sleeping.Yeah yeah i need some sleep too crazy

Anyway .From what i read i believe you just need the idle time for the channel not the server (you want to talk in your channel) so:

Note:When you join the channel the idle time is 0 for everyone.
Code:
 
on *:JOIN:#Judges4You:{ 
  if ($nick == $me) { .timerkickidle 0 300 kickidle  #Judges4You  300 }
}

on *:PART:#Judges4You: {
  if ($nick == $me) { .timerkickidle off }
}


alias kickidle {
  if (($me isop $1) && ($2 isnum)) {
    var %i = 1
    while ($nick($1,%i,r)) {
      if ($nick($1,%i,r).idle >= $calc($2 * 60)) { kick $1 $nick($1,%i,r).idle 2 Anti-idle kick.You have more than $2 minutes idle }
      inc %i
    }
  }
}


 


Note:A good idea is to set the channel invite only during idle kick because most of them will have "rejoin when kicked on"
Posted By: DrStein Re: Idle Kicking Script - 29/12/04 10:17 AM
on *:JOIN:#Judges4You:{ if ($nick == $me) { .timerkickidle 0 300 kickidle #Judges4You 300 } }

The last number is 5 not 300 blush
Code:
  
on *:JOIN:#Judges4You:{   
  if ($nick == $me) { .timerkickidle 0 300 kickidle  #Judges4You  5 } 
}


Posted By: WildCard Re: Idle Kicking Script - 01/01/05 12:47 AM
IDLE Unknown command
-
IDLE Unknown command
-
IDLE Unknown command
-
IDLE Unknown command
-
IDLE Unknown command
-
IDLE Unknown command
-
IDLE Unknown command
-
IDLE Unknown command
-
IDLE Unknown command
-

i got that in status window after i put it in
Posted By: DrStein Re: Idle Kicking Script - 01/01/05 04:37 AM
As you can see i do not have any IDLE alias anywhere.

You must have copy paste it wrong....
Posted By: Iori Re: Idle Kicking Script - 01/01/05 09:11 PM
The "Idle" command is from your own script in the other post you made on this subject
Posted By: T3X Re: Idle Kicking Script - 06/01/05 11:49 AM
Well i'v tryed the script using mIRC 6.16...
But i get "KICKIDLE Unkown command"

What's wrong ?
Posted By: sneak Re: Idle Kicking Script - 13/02/05 11:14 AM
hi,

i try to find idle server check for a little channel, can u help me pls?
Posted By: WildCard Re: Idle Kicking Script - 27/11/05 01:07 AM
well after it worked i never cam back here. well here was the finished result:

on *:JOIN:#Judges4You:$+(.timerkidle,$cid,#) 0 60 kickidle # 5
on *:PART:#Judges4You:$+(.timerkidle,$cid,#) off
alias kickidle {
if $nick($1,$me,@%) && $2 isnum 1- {
var %i = 1,%a,%b = $2 * 53
while $nick($1,%i,r) {
%a = $v1
if $nick($1,%a).idle >= %b { kick $1 %a Anti-idle kick. You have idled for more than $2 minutes - %k.count }
inc %i
}
}
}


should work. its been more than a year
© mIRC Discussion Forums