mIRC Homepage

CountDown Script?

Posted By: Coca_Bear

CountDown Script? - 16/12/02 06:57 AM

Hi, does anyone know of a countdown script for mIRC? i've searched for one, but i can find one, i dont even know if one exist :P. Does anyone know where i can get one?

Thanks

Coca-Bear
Posted By: Dana

Re: CountDown Script? - 16/12/02 07:12 AM

What do you mean by a countdown script? Basically, where you start at a certain number and it will display the number of seconds somewhere every second?
Posted By: Coca_Bear

Re: CountDown Script? - 16/12/02 07:42 AM

i was looking for a script that tells me how many days/hrs/secs til a certain date.

e.g today is the 16/12/2002 and the next meeting is on 20/12/2002 it would say

The next meeting will be held in <insert how many days/hrs/mins/secs>.

Does this make sense?

Thanks

Coca-Bear
Posted By: NightChillz

Re: CountDown Script? - 16/12/02 08:50 AM

I made a little countdown script, where you enter a date (mm/dd/yy) and time (hh:mm:ss) and it will show the how long till that date/time arrives in a "weeks days hours minutes seconds" format


and when its pasts, it tells you how long ago it past aswell wink

i havent put it out for download or anything like that, but i tell yu if you read a few things in the help file, you can probably make one:

/help $time | $ctime | $asctime
/help $duration
/help $calc

smile


i'll come back and post some of the notes i made when i was figuring out how to make one for ya smile
Posted By: NightChillz

Re: CountDown Script? - 16/12/02 08:54 AM

Note that these were just some scribbles that i just jotted down as a basic outline for what needed to be done wink
[b]

Code:
 
1) Setting a countdown(info):
;;;;first we need to set a date that we want to count down till:
;
//set %watchdate $ctime(31/10/02 21:00:00)
;
;;;;this will give us a time in seconds (EG: 1035528114)
;;;;Then we want to get the time remaining till then:
;
//echo -a $duration($calc(%watchdate - $ctime)) (simple way)
OR
//echo -a $duration($right($left($duration($calc($ctime - %watchdate)),-4),-1)) (long/hard way)
;
;;;;This will give us a time in "weeks, Days, Hours, Minutes, Seconds" format
;;;;;;;;;;;NOTE: We can Specify A N Parameter for $duration(seconds,N)
;;;;;;;;;;;Setting N to 2 will return the result less the seconds...
;
;
 


[b]

Hope it helps you get a boost in the right direction smile
Posted By: Frog

Re: CountDown Script? - 16/12/02 10:46 AM

//echo -a $duration($calc($ctime(25/12/02) - $ctime)) Until Christmas.

Boo
Posted By: Coca_Bear

Re: CountDown Script? - 16/12/02 12:17 PM

Thank you guys so much, i really Appreciate it.

Thanks

Coca-Bear
Posted By: Frog

Re: CountDown Script? - 16/12/02 12:26 PM

Welcome
© 2020 mIRC Discussion Forums