mIRC Homepage
Posted By: Sleepyfreak Idle Check - 10/08/05 08:26 AM
its most proberlly been asked before

but could someone make a script where once someones been idled for 30 minutes i kick them but at 25 minutes i notice them saying talk now or be kicked
Posted By: tidy_trax Re: Idle Check - 10/08/05 08:51 AM
Code:
on @*:text:*:#:{ 
  .timer $+ $cid $+ $chan $+ $nick $+ warn 1 1500 msg $nick Talk on $chan now or be kicked.
  .timer $+ $cid $+ $chan $+ $nick $+ kick 1 1800 kick $chan $nick Idled too long.
}
on @*:join:#:{
  .timer $+ $cid $+ $chan $+ $nick $+ warn 1 1500 msg $nick Talk on $chan now or be kicked.
  .timer $+ $cid $+ $chan $+ $nick $+ kick 1 1800 kick $chan $nick Idled too long.
}
on *:kick:#:{
  if ($timer($+($cid,$chan,$nick,warn))) { .timer $+ $cid $+ $chan $+ $nick $+ warn off }
  if ($timer($+($cid,$chan,$nick,kick))) { .timer $+ $cid $+ $chan $+ $nick $+ kick off }
}
on *:part:#:{
  if ($timer($+($cid,$chan,$nick,warn))) { .timer $+ $cid $+ $chan $+ $nick $+ warn off }
  if ($timer($+($cid,$chan,$nick,kick))) { .timer $+ $cid $+ $chan $+ $nick $+ kick off }
}
Posted By: Sleepyfreak Re: Idle Check - 10/08/05 08:53 AM
ok its good BUT could ya make it work only on a server i.e. irc.snm.co.nz or webtastix.no-ip.org
Posted By: tidy_trax Re: Idle Check - 10/08/05 08:55 AM
Code:
on @*:text:*:#:{ 
  if ($istok(irc.snm.co.nz webtastix.no-ip.org,$server,32)) {
    .timer $+ $cid $+ $chan $+ $nick $+ warn 1 1500 msg $nick Talk on $chan now or be kicked.
    .timer $+ $cid $+ $chan $+ $nick $+ kick 1 1800 kick $chan $nick Idled too long.
  }
}
on @*:join:#:{
  if ($istok(irc.snm.co.nz webtastix.no-ip.org,$server,32)) {
    .timer $+ $cid $+ $chan $+ $nick $+ warn 1 1500 msg $nick Talk on $chan now or be kicked.
    .timer $+ $cid $+ $chan $+ $nick $+ kick 1 1800 kick $chan $nick Idled too long.
  }
}
on *:kick:#:{
  if ($istok(irc.snm.co.nz webtastix.no-ip.org,$server,32)) {
    if ($timer($+($cid,$chan,$nick,warn))) { .timer $+ $cid $+ $chan $+ $nick $+ warn off }
    if ($timer($+($cid,$chan,$nick,kick))) { .timer $+ $cid $+ $chan $+ $nick $+ kick off }
  }
}
on *:part:#:{
  if ($istok(irc.snm.co.nz webtastix.no-ip.org,$server,32)) {
    if ($timer($+($cid,$chan,$nick,warn))) { .timer $+ $cid $+ $chan $+ $nick $+ warn off }
    if ($timer($+($cid,$chan,$nick,kick))) { .timer $+ $cid $+ $chan $+ $nick $+ kick off }
  }
}
Posted By: Sleepyfreak Re: Idle Check - 10/08/05 09:13 AM
thnxs for that

and btw if anyone goes on that server the main channel is #Lobby

the owners are Shane & Nigel

so don't muck with them

so just enjoy yourself on there
© mIRC Discussion Forums