Advertisement
illpastethat

xmas new years countdown

Dec 24th, 2012
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.80 KB | None | 0 0
  1. on *:text:.countdown:#: {
  2. if (!%cdown) {
  3. countdown
  4. set -u5 %cdown
  5. }
  6. }
  7. alias countdown {
  8.     if ($gettok($date,2,47) <= 11) { var %hcdate Dec 25 00:00:00 $time(yyyy) | msg $chan There is $duration($calc($ctime(%hcdate) - $ctime)) Until Christmas | halt }
  9.     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 }  
  10.     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 }
  11.   }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement