mIRC Homepage

About /timer

Posted By: Debug

About /timer - 19/01/05 11:34 PM

Hi,

What do you think about to add something like /timerALL off or /timer -a off to turn off all timers? Tthis could be very useful.
Posted By: Iori

Re: About /timer - 19/01/05 11:38 PM

Try /timers off laugh
Posted By: SladeKraven

Re: About /timer - 19/01/05 11:50 PM

/timerALL off would turn the timer which was allocated the name ALL off.

There is Iori's way and also /timer* off.

And actually, your way also lol. wink

Code:
alias timerall {
  .timer* off 
   echo $color(info) -a * All timers halted
}
Posted By: DaveC

Re: About /timer - 20/01/05 01:17 AM

There is also this insanely silly way....

Code:
on *:START:{
  .timerALL 0 86400 $!null
  .timerALLwatch 0 1 ALLwatch
}
alias ALLwatch {
  if (!$timer(ALL)) {
    timer* off
    .timerALL 0 86400 $!null
    .timerALLwatch 0 1 ALLwatch
  }
}
Posted By: tidy_trax

Re: About /timer - 20/01/05 01:21 AM

You might want to make it work like a normal time, eg:

Code:
alias timerall {
  if ($1 != off) { timerall $1- }
  else {
    if ($timer(all)) { timerall off }
    else { timers off }
  }
}
Posted By: SladeKraven

Re: About /timer - 20/01/05 01:30 AM

Yep. Indeed. laugh
© 2020 mIRC Discussion Forums