Countdown Script. Great for Holidays.
Please Register to submit score.
| Average Score | 0.0 |
| Scores Submitted | 0 |
| Date Added | Dec 01, 2007 |
| Last Updated | Jun 09, 2008 |
| Tags | alias birth birthday bot celebrate christmas client count countdown day down edit fun holiday number person scratch script xmas |
Introduction
---------------------
CLIENT VERSION
It does what it's meant to do. You type in:
!countdown [month] [day] [hour] [name of occasion]
EX: !countdown 6 5 0 My Birthday!
(0 in hour means midnight)
(from a CLIENT, not mIRC itself!)
thus month, day, and hour being a NUMBER, and not the actual days/months.
it will create a 'CountDown' for you. If you type "!countdown check", it will show you how many years(if needed), months, days, hours, minutes, and seconds until the Count Down date is through.
This can be great for birthdays, holidays, or any special occasion.
Commands:
!countdown - Show how to make a new countdown - in notice
!countdown check - Check how long until your countdown ends - in notice
@countdown - Show how to make a new countdown - in channel
@countdown check - Check how long until your countdown ends - in channel
This script supports color, and is originally colored with A light red(04) and Dark red(05). You may change these as you please, but they are in the actual code, so you will have to look for it and change it manually. I may add a code to change it by an alias later.
You can also color your [name of occasion], and it will copy the colors into the Check message.
This script is not found person-by-person by $Address, but Your IRC nickname instead. This prevents $address changing problems, and easier editing of variables.
Note: To Count Down to a time past 12 months, instead of trying to put a 1 year in there somewhere, simply put how many months it is until it happens.
For Example...
!countdown 25 25 12 Randomness.
Would display the countdown for 25 months in advance, on the 25th day, at noon (12 hours into the day).
-To be edited if flaws are found-
---------------------
ALIAS VERSION
Basically self-explanatory.
Commands:
/Countdown
/countdown2
First, type /countdown, and simply follow the instructions. It will do the work for you.
After finishing the boxes for /countdown, you can (at any time), type /countdown2, and type in the name of your variable (named in /countdown).
Doing such will display in an "/echo -a"(active window echo) how long until the date surpasses.
Note: The alias version and client version do not interact. You cannot create a countdown in the Alias version, then try to retrieve it in the Client version.
For example:
/countdown
june
5
0
birthday
/countdown2
birthday
-This creates a countdown for my birthdate, and labels it birthday, and you will need to type that in order for you to get the information.
-You can have more than one countdown (as long as they are different names) in the Alias version, whereas in the Client version, one name can only hold one countdown
-You may simply overlap an old alias countdown by making a new one over it and asking to use the same exact name
-To be edited if flaws are found-
---------------------
----Updates-----
---------------------
"
Date - Script that it applies to
Update
"
12/01/07 - Both Scripts
Created script.
12/01/07 - Client Script
Made it so you can't get overloaded and lagged for a long time due to loops if somebody tried to overload the script with a large number. Now, only numbers under 150 are allowed.
12/01/07 - Both Scripts
Made a few changes, fixed a few errors, and shortened alias blah (thanks Olliegod)
12/16/07 - Both Scripts
Changed a few things. Not worth noting :P
1/16/08 - Client Script
Changed a few things and made it so that an extra message is sent if you simply type !countdown or @countdown, so you don't think your countdown got deleted.
5/1/08 - Both Scripts
You now can type "!countdown check [name]" and replace [name] with somebodies name to see their countdown.
5/09/08 - Both Scripts
Now, instead of showing -1 months if your event has passed, it will show when the next time it will happen appropriately.
mIRC Snippet:
Countdown Script. Great for Holidays.
Posted on Dec 1, 2007 9:11 am
Posted on Dec 1, 2007 9:11 am
| Code: |
| alias blah { if (%1 == -11) { set %1 2 } if (%1 == -10) { set %1 3 } if (%1 == -9) { set %1 4 } if (%1 == -8) { set %1 5 } if (%1 == -7) { set %1 6 } if (%1 == -6) { set %1 7 } if (%1 == -5) { set %1 8 } if (%1 == -4) { set %1 9 } if (%1 == -3) { set %1 10 } if (%1 == -2) { set %1 11 } if (%1 == -1) { set %1 12 } } |
This can be shortened to
| Code: |
| alias blah if (%1 < 0 && %1 > -12) set %1 $calc(%1 + 13) |
Also you should look into using while loops rather than goto's.
Altogether this isn't an amazing script but I suppose it's decent.



