Holiday Countdown

By Ace99 on Aug 22, 2005

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 }
  }
}

Comments

Sign in to comment.
cupcake   -  Jan 01, 2011

Happy New Years to Everyone !!!!!!! Happy New Years to you Jethro_, thank you again for your help :)

 Respond  
Jethro   -  Jan 01, 2011

Happy new year 2011 to you, cupcake, and may your new year's resolutions come true...if you have one. :P

 Respond  
cupcake   -  Dec 31, 2010

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 :)

 Respond  
Jethro   -  Dec 31, 2010

This is exactly why I don't use pre-made scripts. I've heard lots of people who use nnscript and have problem processing certain codes.

Then again, I don't know what kind of a script you're running. As far as the provided code is concerned, it works for me.

 Respond  
cupcake   -  Dec 31, 2010

just not gonna work, think it might be something else in my bot effecting it..only thing i can think of...thank you Jethro_ for your help.

 Respond  
Jethro   -  Dec 31, 2010

That's odd. It's working just fine for me. :/

Try adding an extra parenthesis and see if that helps:> var %c amsg $!duration($calc($ctime(Jan 01 2011 12:00) - $!ctime)))

 Respond  
cupcake   -  Dec 31, 2010
  • Invalid format: $duration
  • Invalid format: $duration
  • Invalid format: $duration
  • Invalid format: $duration
  • Invalid format: $duration
  • thats all i get

 Respond  
Jethro   -  Dec 31, 2010

Cupcake, use this one here:

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.
}
 Respond  
cupcake   -  Dec 31, 2010

[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.
}

 Respond  
cupcake   -  Dec 31, 2010

blushes wasn't thinking sheeshhhh, thank you Jethro_ see just wanted to see you comment :)

 Respond  
Jethro   -  Dec 31, 2010

It's 2011, not 2010. Silly cupcake. You wish you could go back to the past, eh?

 Respond  
cupcake   -  Dec 31, 2010

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.

 Respond  
cupcake   -  Dec 18, 2010

works great for a bot :D thankies Jethro_

 Respond  
Jethro   -  Dec 18, 2010

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.

 Respond  
cupcake   -  Dec 18, 2010

wonder could you adapt it to bot to spam channel every hour. with count down ?

 Respond  
Dark_Aaron   -  Dec 01, 2008

im going to edit this for my topic

 Respond  
supergeo   -  Aug 25, 2005

Alright supergeo, what was the script, by the way, I had some snippets in other scripts I had made, so the date i submitted it doesn\'t really matter. It is the date I added the snippet to the script. Alright, what was the snippet that I had ripped?

The problem is, you didn\'t submit it!

 Respond  
Ace99   -  Aug 23, 2005

Alright supergeo, what was the script, by the way, I had some snippets in other scripts I had made, so the date i submitted it doesn\'t really matter. It is the date I added the snippet to the script. Alright, what was the snippet that I had ripped?

 Respond  
supergeo   -  Aug 23, 2005

I might believe that. I have seen at LEAST 1 other snippet ripped by Ace. And I know this because I fouund the code in a script I reviewed.... and the script was submitted way before ace made the snippet.

 Respond  
Noutrious   -  Aug 23, 2005

I`ve seen this somewhere before..

 Respond  
Ace99   -  Aug 22, 2005

No, I\'ve actually had this in my old script. Thanks anyway.

 Respond  
DeathRyder082   -  Aug 22, 2005

Didn\'t test it, looks good. I guess you based this off the b-day countdown by tank59?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.