mIRC Home    About    Download    Register    News    Help

Print Thread
About /timer #108493 19/01/05 11:34 PM
Joined: Jul 2004
Posts: 150
D
Debug Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Jul 2004
Posts: 150
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.

Re: About /timer #108494 19/01/05 11:38 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Try /timers off laugh

Re: About /timer #108495 19/01/05 11:50 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
/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
}

Last edited by SladeKraven; 19/01/05 11:57 PM.
Re: About /timer #108496 20/01/05 01:17 AM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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
  }
}

Re: About /timer #108497 20/01/05 01:21 AM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
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 }
  }
}


New username: hixxy
Re: About /timer #108498 20/01/05 01:30 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Yep. Indeed. laugh