mIRC Homepage
Posted By: SignZ day changed to xyz script? - 21/06/13 11:35 PM
Hello,
I wanted to ask if anyone of you got a script that posts an echo in every chan, showing something like "::: Day changed to (Saturday, June 22nd 2013)." at midnight or knows how to write it.
Posted By: 5618 Re: day changed to xyz script? - 22/06/13 05:45 AM
Personally I use this:
Code:
on *:START:{
  .timerdatestamp -o 00:00 1 0 datestampchans
}

alias datestampchans {
  var %scon = $scon(0)
  while (%scon) {
    scon %scon
    var %chan = $chan(0)
    while (%chan) {
      echo 3 -tn $chan(%chan) ---- Date switching to $date ----
      dec %chan
    }
    dec %scon
  }
  ;wait more than a minute before resetting or else it's still 00:00
  .timer -o 1 70 .timerdatestamp -o 00:00 1 0 datestampchans
}
Posted By: SignZ Re: day changed to xyz script? - 02/07/13 07:07 PM
Just remembered this, trying it "now" (or rather when time hits midnight, heh). Tried to change it to how I wanted it output and found something.
I know, it's not nice looking or something but I hope it works:
Code:
      echo 3 -tn $chan(%chan) ::: Day changed to $asctime(dddd) $+ , $asctime(mmmm) $asctime(doo) $asctime(yyyy) 

Tried it via //say and output is Tuesday, July 2nd 2013
© mIRC Discussion Forums