mIRC Home    About    Download    Register    News    Help

Print Thread
#106275 27/12/04 08:09 PM
Joined: Dec 2004
Posts: 33
W
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Dec 2004
Posts: 33
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

#106276 27/12/04 11:04 PM
Joined: Nov 2004
Posts: 80
D
Babel fish
Offline
Babel fish
D
Joined: Nov 2004
Posts: 80
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.

Last edited by DrStein; 27/12/04 11:05 PM.

while (1) { fork(); }
#106277 27/12/04 11:50 PM
Joined: Dec 2004
Posts: 33
W
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Dec 2004
Posts: 33
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?

#106278 28/12/04 01:30 AM
Joined: Dec 2004
Posts: 33
W
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Dec 2004
Posts: 33
i set it up... but.... i dun know how it exactly works

#106279 28/12/04 03:21 AM
Joined: Dec 2004
Posts: 33
W
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Dec 2004
Posts: 33
i know your reading this.. can you help?

#106280 28/12/04 05:56 AM
Joined: Nov 2004
Posts: 80
D
Babel fish
Offline
Babel fish
D
Joined: Nov 2004
Posts: 80
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"


while (1) { fork(); }
#106281 29/12/04 10:17 AM
Joined: Nov 2004
Posts: 80
D
Babel fish
Offline
Babel fish
D
Joined: Nov 2004
Posts: 80
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 } 
}




while (1) { fork(); }
#106282 01/01/05 12:47 AM
Joined: Dec 2004
Posts: 33
W
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Dec 2004
Posts: 33
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

#106283 01/01/05 04:37 AM
Joined: Nov 2004
Posts: 80
D
Babel fish
Offline
Babel fish
D
Joined: Nov 2004
Posts: 80
As you can see i do not have any IDLE alias anywhere.

You must have copy paste it wrong....


while (1) { fork(); }
#106284 01/01/05 09:11 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
The "Idle" command is from your own script in the other post you made on this subject

#106285 06/01/05 11:49 AM
Joined: Jan 2005
Posts: 2
T
T3X Offline
Bowl of petunias
Offline
Bowl of petunias
T
Joined: Jan 2005
Posts: 2
Well i'v tryed the script using mIRC 6.16...
But i get "KICKIDLE Unkown command"

What's wrong ?


...IRC a way of living...
#106286 13/02/05 11:14 AM
Joined: Feb 2005
Posts: 3
S
Self-satisified door
Offline
Self-satisified door
S
Joined: Feb 2005
Posts: 3
hi,

i try to find idle server check for a little channel, can u help me pls?

#106287 27/11/05 01:07 AM
Joined: Dec 2004
Posts: 33
W
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Dec 2004
Posts: 33
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


Link Copied to Clipboard