Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Stopwatch (https://forums.graalonline.com/forums/showthread.php?t=36932)

Goboom 08-30-2002 07:39 AM

Stopwatch
 
1 Attachment(s)
Nothing special...just something to have fun with...

joseyisleet 08-30-2002 07:55 AM

lol that's pretty kool you could use it for a swimming race or something lol.

emortylone 08-30-2002 08:37 AM

LOL, what did you do exactly? Something like this:
NPC Code:

if (created)
{set on;
timeout=0.25;}

if (timeout)
{ if (on)
{ this.watch=this.watch+0.25;
showimg 1,@#v(this.watch),playerx-1.5,playery-1.5;
timeout=0.25;
}
if (!on)
{ timeout=0;}
if (keydown(6))
{ unset on;}
}


---Shifter

joseyisleet 08-30-2002 10:31 AM

Nah he used it like:
Right click start the counter
Left Click pause the counter and if you right click again it resumes it and then he had R or middle mouse button to reset it lol.
-Howard

emortylone 08-30-2002 10:37 AM

LOL, same concept. Just using mouse commands. Maybe I'll d/l it if I have some time.
---Shifter

Python523 08-30-2002 10:42 AM

use this for your minute:second.millisecond thing
NPC Code:

if (created) {
time={0,0,0};
timeout = .1;
}
if (timeout) {
time[2]=(time[2]+1)%10;
time[1]=(time[1]+0.1)%60;
time[0]=(time[0]+0.00166666666666666666666666666666667)%60;
setcharprop #c,#v(int(time[0])):#v(int(time[1])).#v(time[2]);
timeout = .1;
}


I would add hours in a similar way but graal doesnt support
2.77777777777777777777777777777778*(10^-5)(10 to the negative fifth power)

Legondary_MyTH 08-30-2002 11:01 AM

...
 
alomst got it shifter =D...that reminds me math test tomorrow =*(

Goboom 08-30-2002 08:55 PM

Quote:

Originally posted by Python523
use this for your minute:second.millisecond thing
NPC Code:

if (created) {
time={0,0,0};
timeout = .1;
}
if (timeout) {
time[2]=(time[2]+1)%10;
time[1]=(time[1]+0.1)%60;
time[0]=(time[0]+0.00166666666666666666666666666666667)%60;
setcharprop #c,#v(int(time[0])):#v(int(time[1])).#v(time[2]);
timeout = .1;
}


I would add hours in a similar way but graal doesnt support
2.77777777777777777777777777777778*(10^-5)(10 to the negative fifth power)

Ok, I will, I'm just not to good at math, so I do it the simple scratchy way. ;) but thanks....i have algebra this year, and im only in 9th grade. I understand what you are doing though.
(steals this from jinx):megaeek:
-Goboom

emortylone 08-30-2002 11:08 PM

LOLz. Myth, I will try and call you tonight or this weekend if possible. I'm going to have something on my site to catorgize NATs and their skills. :P
---Shifter

Legondary_MyTH 08-31-2002 03:47 AM

ok
 
Lol like 20 LATs have imed me and most of them really suck =(

Python523 08-31-2002 03:53 AM

Quote:

Originally posted by Goboom

Ok, I will, I'm just not to good at math, so I do it the simple scratchy way. ;) but thanks....i have algebra this year, and im only in 9th grade. I understand what you are doing though.
(steals this from jinx):megaeek:
-Goboom

hey, this didn't require much math at all, im a freshman (9th grade) and im in algebra 1 as well, its just simple division

Python523 08-31-2002 05:03 AM

1 Attachment(s)
sorry for the double post but i don't think you can attach when editing and im too lazy to find out ;x, this little thing didnt take me too long, it took me longer to test it (waiting 5 minutes to see if the position was correct later, i didnt test if it continued to stay for 10 minutes, 15 minutes, and so on) but have fun with it

Goboom 09-01-2002 12:29 AM

Quote:

Originally posted by Python523
sorry for the double post but i don't think you can attach when editing and im too lazy to find out ;x, this little thing didnt take me too long, it took me longer to test it (waiting 5 minutes to see if the position was correct later, i didnt test if it continued to stay for 10 minutes, 15 minutes, and so on) but have fun with it
A bit laggy...but yay...

osrs 09-01-2002 04:49 AM

Re: Stopwatch
 
Quote:

Originally posted by Goboom
Nothing special...just something to have fun with...
Nice =)

osrs 09-01-2002 04:55 AM

Quote:

Originally posted by Python523
sorry for the double post but i don't think you can attach when editing and im too lazy to find out ;x, this little thing didnt take me too long, it took me longer to test it (waiting 5 minutes to see if the position was correct later, i didnt test if it continued to stay for 10 minutes, 15 minutes, and so on) but have fun with it
*cough*sux*cough*


All times are GMT +2. The time now is 12:22 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.