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 10-17-2001, 09:27 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
time script

here is a time script I just made. Anyone can use it and for those who dont understand i'll explain to you ... It has seconds, hours, minutes, days, months, and year now:
NPC Code:

// NPC made by Nyght *Asst* (LAT Admin)
if (playerenters) {
timeout=1;
}
if(timeout){
this.time=timevar;
time+=1;
showimg 201,@verdana@Time: #v(hour):#v(minute):#v(time) #s(am/pm),495,70;
changeimgvis 201,4;
changeimgzoom 201,0;
showimg 202,@verdana@Date: #v(month)/#v(day)/#v(year) G.T.,495,85;
changeimgvis 202,4;
changeimgzoom 202,0;
setstring am/pm,A.M.;
timeout=1;
}
if (time=60) {
time=1;
timeout=1;
minute+=1;
}
if (minute=60) {
time=1;
timeout=1;
hour+=1;
}
if (hour=12 && am=1) {
time=1;
timeout=1;
hour=1;
setstring am/pm,P.M.;
}
if (hour=12 && am/pm=P.M.) {
time=1;
timeout=1;
hour=1;
setstring am/pm,A.M.;
day+=1;
}
if (day=31) {
time=1;
timeout=1;
hour=1;
day=1;
setstring am/pm,A.M.;
}
if (month=13) {
time=1;
timeout=1;
hour=1;
day=1;
month=1;
setstring am/pm,A.M.;
year+=1;
}


Also, please tell me if your gonna use this. You have my permission, but just notify me of its use.
Reply With Quote
  #2  
Old 10-17-2001, 09:52 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
Is it just me or are there like 5 recent threads titled 'time script' ?
__________________

-=Shard IceFire=-
Reply With Quote
  #3  
Old 10-17-2001, 09:57 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
yeah

but i started this one ... the other ones are old news ...
Reply With Quote
  #4  
Old 10-18-2001, 09:49 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
Heh, I have on almost exactly like that (got the idea from my push ups NPC). There's one problem with yours though, when you go into a different level, it resets it, then it picks up from where it was when you left the level if you go back (something like that I got confused there).
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #5  
Old 10-18-2001, 09:58 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
you could like make the script way shorter if you used timevar
__________________
Thanks,
-KJL
Reply With Quote
  #6  
Old 10-19-2001, 03:31 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by KJS
you could like make the script way shorter if you used timevar
and if you used the 24 hour system
Reply With Quote
  #7  
Old 10-19-2001, 03:32 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Quote:
Originally posted by btedji

and if you used the 24 hour system
what are you talking about... a time script I have made is a 12 hour based time script and it has a am and pm simbol next to it...

and it uses timevar...
__________________
Thanks,
-KJL
Reply With Quote
  #8  
Old 10-19-2001, 03:33 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by KJS


what are you talking about... a time script I have made is a 12 hour based time script and it has a am and pm simbol next to it...

and it uses timevar...
im saying the script would be shorter if you used the 24 hour system
Reply With Quote
  #9  
Old 10-19-2001, 03:54 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by Shard_IceFire
Is it just me or are there like 5 recent threads titled 'time script' ?
16+ dude look!
Reply With Quote
  #10  
Old 10-19-2001, 06:21 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
well ...

like i said i am still experimenting with this stuff ...
Reply With Quote
  #11  
Old 10-19-2001, 05:14 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
=(

The script didnt work for me... do it only work online?
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #12  
Old 10-20-2001, 12:39 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
there should be a tutorial for ap/hp bars and time
Reply With Quote
  #13  
Old 10-20-2001, 12:48 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by btedji
there should be a tutorial for ap/hp bars and time
Yea, and then get a mod to post it as an announcement
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
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 06:52 PM.


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