Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-30-2002, 07:39 AM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
Stopwatch

Nothing special...just something to have fun with...
Attached Files
File Type: nw stopwatch.nw (10.2 KB, 197 views)
__________________
Reply With Quote
  #2  
Old 08-30-2002, 07:55 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
lol that's pretty kool you could use it for a swimming race or something lol.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #3  
Old 08-30-2002, 08:37 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
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
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #4  
Old 08-30-2002, 10:31 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
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
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #5  
Old 08-30-2002, 10:37 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
LOL, same concept. Just using mouse commands. Maybe I'll d/l it if I have some time.
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #6  
Old 08-30-2002, 10:42 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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)
Reply With Quote
  #7  
Old 08-30-2002, 11:01 AM
Legondary_MyTH Legondary_MyTH is offline
Registered User
Join Date: May 2002
Location: Levelville
Posts: 420
Legondary_MyTH is on a distinguished road
...

alomst got it shifter =D...that reminds me math test tomorrow =*(
__________________
ArchMage Amedeus Valoryn of Zormite
Manager of Anarchy
Past Jobs:
Levels Admin on Renegade
LAT on Doomsday,Babylon,G3K
Developer on Faheria,Babylon
GP on Sanstrata,G3K
Reply With Quote
  #8  
Old 08-30-2002, 08:55 PM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
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)
-Goboom
__________________
Reply With Quote
  #9  
Old 08-30-2002, 11:08 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
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
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #10  
Old 08-31-2002, 03:47 AM
Legondary_MyTH Legondary_MyTH is offline
Registered User
Join Date: May 2002
Location: Levelville
Posts: 420
Legondary_MyTH is on a distinguished road
ok

Lol like 20 LATs have imed me and most of them really suck =(
__________________
ArchMage Amedeus Valoryn of Zormite
Manager of Anarchy
Past Jobs:
Levels Admin on Renegade
LAT on Doomsday,Babylon,G3K
Developer on Faheria,Babylon
GP on Sanstrata,G3K
Reply With Quote
  #11  
Old 08-31-2002, 03:53 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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)
-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

Last edited by Python523; 08-31-2002 at 07:07 AM..
Reply With Quote
  #12  
Old 08-31-2002, 05:03 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Attached Files
File Type: nw time.nw (10.4 KB, 146 views)
Reply With Quote
  #13  
Old 09-01-2002, 12:29 AM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
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...
__________________
Reply With Quote
  #14  
Old 09-01-2002, 04:49 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Re: Stopwatch

Quote:
Originally posted by Goboom
Nothing special...just something to have fun with...
Nice =)
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #15  
Old 09-01-2002, 04:55 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
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*
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:43 PM.


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