mIRC Home    About    Download    Register    News    Help

Print Thread
#50006 18/09/03 10:42 AM
T
Turbo_boy
Turbo_boy
T
I'm making a trivia-bot only i'm asking my self and other scripters how do i make a script with 0.001 sec
(Winaar: Jedi-Plus5 Antwoord: Steenkool Tijd: 14.300 Streak: 1 Punten: 5830 WPM: 7 Plaats: 12th)
i mean so the tijd ;-)

#50007 18/09/03 10:47 AM
P
pheonix
pheonix
P
Before you ask the question:
set %ticks $ticks
when the question is answered:
$calc(($ticks - %ticks) / 1000) seconds.

#50008 18/09/03 10:54 AM
T
Turbo_boy
Turbo_boy
T
only now hi give it on 0.000 only not the good time :S
the time hi now saying is:

4hrs 47mins 48secs with the $duration command

Last edited by Turbo_boy; 18/09/03 10:56 AM.
#50009 18/09/03 10:56 AM
P
pheonix
pheonix
P
eh?

#50010 18/09/03 11:08 AM
T
Turbo_boy
Turbo_boy
T
i have now this:

/testing.a {
.set %ticks $calc($ticks / 1000)
.timer 1 5 /test2
}
/test2 {
.set %ticks2 $calc($ticks / 1000)
.echo seconden $calc(%ticks2 - %ticks)
}
and its working great laugh

#50011 18/09/03 03:53 PM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
No need for the second variable, just use $calc(($ticks - %ticks) / 1000)

#50012 18/09/03 04:28 PM
T
Turbo_boy
Turbo_boy
T
now hi work not all the time :S some times hi dont $calc :S


Link Copied to Clipboard