mIRC Home    About    Download    Register    News    Help

Print Thread
#50006 18/09/03 10:42 AM
Joined: Sep 2003
Posts: 84
T
Babel fish
OP Offline
Babel fish
T
Joined: Sep 2003
Posts: 84
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
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
Before you ask the question:
set %ticks $ticks
when the question is answered:
$calc(($ticks - %ticks) / 1000) seconds.


new username: tidy_trax
#50008 18/09/03 10:54 AM
Joined: Sep 2003
Posts: 84
T
Babel fish
OP Offline
Babel fish
T
Joined: Sep 2003
Posts: 84
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
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
eh?


new username: tidy_trax
#50010 18/09/03 11:08 AM
Joined: Sep 2003
Posts: 84
T
Babel fish
OP Offline
Babel fish
T
Joined: Sep 2003
Posts: 84
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,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
No need for the second variable, just use $calc(($ticks - %ticks) / 1000)

#50012 18/09/03 04:28 PM
Joined: Sep 2003
Posts: 84
T
Babel fish
OP Offline
Babel fish
T
Joined: Sep 2003
Posts: 84
now hi work not all the time :S some times hi dont $calc :S


Link Copied to Clipboard