mIRC Home    About    Download    Register    News    Help

Print Thread
#106558 01/01/05 12:43 AM
Joined: Dec 2004
Posts: 33
W
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Dec 2004
Posts: 33
this is what i have: and it doesnt work

on @*:join:#Judges4You: { timer $+ $nick 0 4 idle $nick $chan }

ALIAS idle {
if ($nick !ishop $chan) && ($nick !isvoice $chan) && ($nick !isop $chan) { halt }
else ($nick($2,$1).idle >= 300) { /kick $chan $nick Anti-idle kick.You have more than 5 minutes idle }
}


how would i set it up using hash tabels? because the SECOND $nick there dosent know what nick... so it suisides... all i want it to do is kick someone who is less then +v that has been idle for 5 minutes... also on my server there is halfops... which is hop. im a half-op. i do have the powers to kick

#106559 01/01/05 12:54 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Try this one timer version
Code:
on me:*:JOIN:#Judges4You:$+(.timerkidle,$cid,#) 0 60 kickidle # [color:red]5[/color]
on me:*:PART:#Judges4You:$+(.timerkidle,$cid,#) off
alias kickidle {
  if $nick($1,$me,@%) && $2 isnum 1- {
    var %i = 1,%a,%b = $2 * 60
    while $nick($1,%i,r) {
      %a = $v1
      if $nick($1,%a).idle >= %b { kick $1 %a Anti-idle kick. You have more than $2 minutes idle }
      inc %i
    }
  }
}

#106560 01/01/05 01:00 AM
Joined: Dec 2004
Posts: 33
W
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Dec 2004
Posts: 33
thanksyou.. the timer should show in status right? cause if it is then its not working.... i guess this is a diffucult script to do and noone has it... cause its in 3 different forums and none work so far... i still gotta wat a bit to see if this one kicks though. ill wait 5 minutes. all i did was copy/paste exactly.. anthing else i need to change? ill post again in a few with current status

#106561 01/01/05 01:15 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Nope the timer won't show because I used .timerkidle which halts the "* Timer blah activated|halted" display.
All you have to do is rejoin the channel and it will start.

#106562 04/01/05 03:38 PM
Joined: Jan 2005
Posts: 5
L
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
L
Joined: Jan 2005
Posts: 5
ok, i try the script you gave out and get this errors
-
KICKIDLE Unknown command
-

I'am using mIRC32 v1.16
The scripts which i'ved copied from this forum are as follows:

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

#106563 04/01/05 03:48 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Well, see you have the code all on one line, whereas my post has it on 12 lines. Fix it so that it looks exactly like in my post and then see how it works. wink



Quote:
I'am using mIRC32 v1.16
Err.. you mean "mIRC v6.16" I hope. There never was a mIRC32 v1.16 released.




(I thought the board was patched to fix that copy.paste issue)

#106564 04/01/05 04:39 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
I thought that too. Sometimes it works, and sometimes it doesn't. Both in the cases where code is between the code tags.


Gone.
#106565 06/01/05 12:38 AM
Joined: Jan 2005
Posts: 5
L
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
L
Joined: Jan 2005
Posts: 5
yes, guys, it works now smile
* Test (test@irc.dalnet.com) has joined #help
/*after some minutes of idling*/
* Test was kicked by L0nelyC0wboy (Anti-idle kick. You have more than 5 minutes idle)

its gr8, btw, it was my typing mistake about mirc v1.16 lol..
thnx guyz...

#106566 18/01/05 03:41 AM
Joined: Jan 2005
Posts: 17
S
Pikka bird
Offline
Pikka bird
S
Joined: Jan 2005
Posts: 17
interesting
Iori or someone, could you possibly modify that code so that instead of kicking the user, it voices them?
I am trying to achieve the opposite effect smile
thanks


Link Copied to Clipboard