Tchatting.com Forums
mIRC :: SCRIPTING & HELP mIRC Scripting help, General help, Tips and Tricks!

User Name
Password
Reply
 
Thread Tools Display Modes
  #1  
Old 18-12-2005, 03:58 PM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Kick On Idle

Code:
on *:text:!icheck &:#Leb:{ 
  if $nick isop # { 
    if $2 == on { 
      .timericheck 0 60 icheck 
      msg # IdleCheck enabled 
    } 
    elseif $2 == off { 
      .timericheck off 
      msg # IdleCheck disabled 
    } 
  } 
} 

alias icheck { 
  var %i = 1 
  while $nick(#Leb,%i) { 
    if (($v1 isreg #Leb) && ($nick(#Leb,%i).idle > 600)) { 
      ban -k #Leb $nick(#Leb,%i) 2 No Idling. Thank you. 
      inc %i 
    } 
    inc %i 
  } 
}
__________________

Last edited by Cult; 18-12-2005 at 04:00 PM.
Reply With Quote
  #2  
Old 29-12-2005, 01:26 PM
ZAcK's Avatar
ZAcK ZAcK est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Upper Saddle River, NJ USA
Posts: 54
ZAcK is on a distinguished road
Re: Kick On Idle

Don't you think you should get the code to check if you are an OP or not? I think the way you have it will attempt to kick even if you are not OPed
I would add two checks, one in the event and the other same line with the while loop (just before the mode/kick line), so the code wouldnt run the check if you are not opped and if an OP deoped you for some reason, the loop would halt.
I might be wrong, but I thought I should share my thoughts

Happy New Year everyone
__________________
:: i have been since the dawn of time. i will be until the dusk of eternity ::

Last edited by ZAcK; 03-01-2006 at 03:47 AM.
Reply With Quote
  #3  
Old 29-12-2005, 01:36 PM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Kick On Idle

sorry for undeleting your post bro well it was a pleasure to undelete it, coz it`s a forum in here and we shall discuss stuff, and if i have something wrong and someone was trying to fix it, that is good
i`ll try to fix it bro.
happy new year u too bro..
wish u all luck in the new year.
__________________
Reply With Quote
  #4  
Old 29-12-2005, 07:03 PM
anmlhckr's Avatar
anmlhckr anmlhckr est déconnecté
Scripting Mod
 
Join Date: Jan 2005
Location: LB
Posts: 163
anmlhckr will become famous soon enoughanmlhckr will become famous soon enough
Send a message via MSN to anmlhckr Send a message via Yahoo to anmlhckr
Re: Kick On Idle

I dont think theres need to add WHILE LOOPS , thx.
__________________
Me here, Me gone.
Reply With Quote
  #5  
Old 03-01-2006, 03:47 AM
ZAcK's Avatar
ZAcK ZAcK est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Upper Saddle River, NJ USA
Posts: 54
ZAcK is on a distinguished road
Re: Kick On Idle

No need for new while loops! actually it is so simple, a @ and && ($me isop #leb) would do the trick.

Code:
on @*:text:!icheck &:#Leb:{ 
  ; i just added the @ to the previous line
  if ($nick isop #) { 
    if ($2 == on) { 
      .timericheck 0 60 icheck 
      msg # IdleCheck enabled 
    } 
    elseif ($2 == off) { 
      .timericheck off 
      msg # IdleCheck disabled 
    } 
  } 
} 

alias icheck { 
  var %i = 1 
  while $nick(#Leb,%i) && ($me isop #leb) { 
    ; and && ($me isop $chan) to this line.
    if (($v1 isreg #Leb) && ($nick(#Leb,%i).idle > 600)) { 
      ban -k #Leb $nick(#Leb,%i) 2 No Idling. Thank you. 
      inc %i 
    } 
    inc %i 
  } 
}
I didnt test it, but i guess it should work fine.

Cult, next time please email or send me a messege before undeleting/editing my posts, I deleted it for a reason. No worries this time.

Have fun all
__________________
:: i have been since the dawn of time. i will be until the dusk of eternity ::

Last edited by ZAcK; 03-01-2006 at 04:17 AM.
Reply With Quote
  #6  
Old 03-01-2006, 07:24 AM
Cult's Avatar
Cult Cult est déconnecté
Registered User
 
Join Date: Jan 2005
Location: Lebanon
Posts: 2,124
Cult is a jewel in the roughCult is a jewel in the roughCult is a jewel in the rough
Send a message via MSN to Cult
Re: Kick On Idle

Quote:
Originally Posted by ZAcK
No need for new while loops! actually it is so simple, a @ and && ($me isop #leb) would do the trick.

Code:
on @*:text:!icheck &:#Leb:{ 
  ; i just added the @ to the previous line
  if ($nick isop #) { 
    if ($2 == on) { 
      .timericheck 0 60 icheck 
      msg # IdleCheck enabled 
    } 
    elseif ($2 == off) { 
      .timericheck off 
      msg # IdleCheck disabled 
    } 
  } 
} 

alias icheck { 
  var %i = 1 
  while $nick(#Leb,%i) && ($me isop #leb) { 
    ; and && ($me isop $chan) to this line.
    if (($v1 isreg #Leb) && ($nick(#Leb,%i).idle > 600)) { 
      ban -k #Leb $nick(#Leb,%i) 2 No Idling. Thank you. 
      inc %i 
    } 
    inc %i 
  } 
}
I didnt test it, but i guess it should work fine.

Cult, next time please email or send me a messege before undeleting/editing my posts, I deleted it for a reason. No worries this time.

Have fun all

thanx for the fixing bro
__________________
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Champions League final is long corner kick from Wyoming (AP) TheGodFather Sports -Warm up first! 0 22-05-2007 11:21 PM
Advertise kicker. anmlhckr mIRC :: SCRIPTING & HELP 22 03-01-2006 07:58 AM
kick counter shiah mIRC :: SCRIPTING & HELP 0 09-04-2005 11:15 AM
Fixed filter kick shiah mIRC :: SCRIPTING & HELP 1 31-03-2005 03:52 PM
mass kick prot Cult mIRC :: SCRIPTING & HELP 0 24-02-2005 04:34 PM

All times are GMT. The time now is 07:29 PM.
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
All data and information are copyright of DOTLeb Network