mIRC Home    About    Download    Register    News    Help

Print Thread
CountDown Script? #2009 16/12/02 06:57 AM
Joined: Dec 2002
Posts: 40
C
Coca_Bear Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Dec 2002
Posts: 40
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

Re: CountDown Script? #2010 16/12/02 07:12 AM
Joined: Dec 2002
Posts: 144
D
Dana Offline
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2002
Posts: 144
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?


"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
Re: CountDown Script? #2011 16/12/02 07:42 AM
Joined: Dec 2002
Posts: 40
C
Coca_Bear Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Dec 2002
Posts: 40
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

Re: CountDown Script? #2012 16/12/02 08:50 AM
Joined: Dec 2002
Posts: 271
N
NightChillz Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 271
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

Re: CountDown Script? #2013 16/12/02 08:54 AM
Joined: Dec 2002
Posts: 271
N
NightChillz Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 271
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

Re: CountDown Script? #2014 16/12/02 10:46 AM
Joined: Dec 2002
Posts: 111
F
Frog Offline
Vogon poet
Offline
Vogon poet
F
Joined: Dec 2002
Posts: 111
//echo -a $duration($calc($ctime(25/12/02) - $ctime)) Until Christmas.

Boo


Experience The Void.. Are You Ready?
Re: CountDown Script? #2015 16/12/02 12:17 PM
Joined: Dec 2002
Posts: 40
C
Coca_Bear Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Dec 2002
Posts: 40
Thank you guys so much, i really Appreciate it.

Thanks

Coca-Bear

Re: CountDown Script? #2016 16/12/02 12:26 PM
Joined: Dec 2002
Posts: 111
F
Frog Offline
Vogon poet
Offline
Vogon poet
F
Joined: Dec 2002
Posts: 111
Welcome


Experience The Void.. Are You Ready?