mIRC Home    About    Download    Register    News    Help

Print Thread
#203398 14/08/08 02:52 AM
Joined: Mar 2008
Posts: 47
N
nok Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Mar 2008
Posts: 47
As I can activate a timer every Thursday at 00 hours

nok #203411 14/08/08 10:03 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Try this
Code:
on *:start:{
  .timer 00:00 0 86400 $iif($day == Thursday,commands)
}


nok #203412 14/08/08 10:52 AM
Joined: Jun 2008
Posts: 48
T
Ameglian cow
Offline
Ameglian cow
T
Joined: Jun 2008
Posts: 48
RussellB must have been in a hurry because he accidently forgot to include the ! inside the $iif to make it $!iif so the timer wouldn't process it until it is triggered. Also, he made it trigger at just past midnight but then told it to delay another 24 hours wih the 86400 second part so i edited that as well. I say he must have been in a hurry because I happen to know that he does know better. Anyhow they're simple mistakes we all make, especially the ! part which bites me in the a$$ a lot. smile
The edited code is:
Code:
on *:start:{
  .timer 00:00 $!iif($day == Thursday,commands)
}

To make sure you understand what I mean.
The code he supplied would set this timer if it was thursday:
Code:
Timer 1 00:00 86400s delay commands

Or if it wasn't thursday:
Code:
Timer 1 00:00 86400s delay 

And the edited code would set this timer.
Code:
Timer 1 00:00 0 1s delay $iif($day == Thursday,commands)

Good luck.

Last edited by Typos; 14/08/08 10:55 AM.

I've gone to look for myself. If I should return before I get back, please keep me here.

Link Copied to Clipboard