You just click Holiday countdown, and it counts down the days left til Christmas and New Years. You can add your own if you want. Yes, it looks like a mess but when you paste it into remotes it wont come up like this.
;Basically what it does is it countdowns the weeks,days,hours,minutes, and seconds til Christmas and New Years.
;Made by Ace
menu channel,menubar {
Holiday Countdown: {
if ($gettok($date,2,47) <= 11) { set %hcdate Dec 25 00:00:00 $time(yyyy) | msg $chan There is $duration($calc($ctime(%hcdate) - $ctime)) Until Christmas | unset %hcdate | halt }
if ($gettok($date,2,47) == 12) && ($gettok($date,1,47) >= 25) { msg $chan There is $calc(31 - $gettok($date,1,47)) Days $calc(23 - $gettok($asctime(HH:nn:ss),1,58)) Hours $calc(59 - $gettok($asctime(HH:nn:ss),2,58)) Minutes $calc(60 - $gettok($asctime(HH:nn:ss),3,58)) Seconds Till New Years | halt }
else { amsg There is $calc(24 - $gettok($date,1,47)) Days $calc(23 - $gettok($asctime(HH:nn:ss),1,58)) Hours $calc(59 - $gettok($asctime(HH:nn:ss),2,58)) Mins $calc(60 - $gettok($asctime(HH:nn:ss),3,58)) Seconds Until Christmas | halt }
}
}
It's my own bot i made, plus use older version mirc seem to like it better 6.21. Has lots of scripts i have made, and a few that have used from here .. sure it's just something effecting it ..cause know it should work. Not really worried about it seems i'm the only alive person in my room tonight, everyone else is just parked and gone. So don't need it anyway. LoL :)
[13:07] 22hrs 57mins 6secs left until New Years.
[13:09] Joins: breanna (female@Chat-431DD59D.twcny.res.rr.com)
[13:09] sugar^cookie Hello [Y]ou breanna Are The [ 3529 Visitor ] To Join #Auction_Block.
[13:09] * Parts: breanna (female@Chat-431DD59D.twcny.res.rr.com)
[13:12] 22hrs 57mins 6secs left until New Years.
it's repeating same thing...
using this code
alias countdown {
noop $$?=?="How many minutes apart would you like me to announce the countdown?"
var %c amsg $duration($calc($ctime(Jan 01 2011 12:00) - $ctime))
$+(.timercd,$cid,$network) 0 $calc($! * 60) %c left until New Years Eastern Time.
}
changed the snippet a little bit now it doesn't work ...lol
alias countdown {
noop $$?=?="How many minutes apart would you like me to announce the countdown?"
var %c amsg $duration($calc($ctime(Jan 01 2010 12:00) - $ctime))
$+(.timercd,$cid,$network) 0 $calc($! * 60) %c left until New Years.
}
[11:23] -31447196secs left until New Years.
cupcake, here is the simple countdown snippet modified as per your question:
alias countdown {
noop $$?="How many minutes apart would you like me to announce the countdown?"
var %c amsg $duration($calc($ctime(Dec 24 2010 11:59) - $ctime))
$+(.timercd,$cid,$network) 0 $calc($! * 60) %c left until Christmas.
}
Put this in your mirc remote and enter the number in minutes. For instance, 1 equals one minute and so on and so forth. Once the minute is set, the snippet will announce the countdown in the minute you've specified.
The command is:
/countdown
This is a rough mock-up of snippet. There is no check for the Christmas when it's due. So on Christmas, you may need to remove this snippet and restart your mirc.