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-29-2001, 07:01 PM
Neoreno Neoreno is offline
Cerebrate
Neoreno's Avatar
Join Date: Aug 2001
Location: England
Posts: 1,663
Neoreno is on a distinguished road
Send a message via AIM to Neoreno
Angry Time Script

I need to Know the Time Script like off Graal2001?:grrr:
__________________

Quote:
Exitus Acta Probat: The Outcome Justifies the Deed.
Reply With Quote
  #2  
Old 09-03-2001, 11:08 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Search Me.....(Pulls out pockets and out falls out hundreds of ahand written post-it notes) Uh-oh. GTG!!!!!!! *-_-ZIP!!!!!!

-Rebel95
Reply With Quote
  #3  
Old 09-03-2001, 02:58 PM
fuzie fuzie is offline
Registered User
Join Date: Jul 2001
Location: +900
Posts: 303
fuzie is on a distinguished road
Send a message via AIM to fuzie Send a message via Yahoo to fuzie
yea is it possible to be put on a non-p2p server?
__________________
This is my extra account. My other account name is "royce".


-Mr. Chik (Criminals)

Chik=French=Hip
Reply With Quote
  #4  
Old 09-30-2001, 09:38 AM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
What is a time script I can use for my server?
DONT WORRY!
I am doing a graal class at my school.
And we are all going to make a server.
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #5  
Old 09-30-2001, 10:26 AM
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
Quote:
What is a time script I can use for my server?
DONT WORRY!
I am doing a graal class at my school.
And we are all going to make a server.
Damn what school do you go to? Cause I wanna go there!
__________________

-=Shard IceFire=-
Reply With Quote
  #6  
Old 09-30-2001, 10:30 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 Kaimetsu
NPC Code:
this.time=timevar;



I believe it's allowed on non-P2P.
How do yeh use it?!
Reply With Quote
  #7  
Old 09-30-2001, 10:35 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Kaimetsu
NPC Code:
this.time=timevar;



I believe it's allowed on non-P2P.
As I recall, timevar is an NPC server variable. But Stefan has now added it to offline mode. I imagine if free worlds use it, its only clientside, since timevar is really a variable used to syncronize stuff.
__________________
Reply With Quote
  #8  
Old 09-30-2001, 11:03 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 G_yoshi


As I recall, timevar is an NPC server variable. But Stefan has now added it to offline mode. I imagine if free worlds use it, its only clientside, since timevar is really a variable used to syncronize stuff.
X Has one
Reply With Quote
  #9  
Old 09-30-2001, 11:17 AM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
Soo..
Back to my post!
I really need to know so I can get an "A"
My teacher is an ass that knows nothing..ARG!!
ANd I am just a "T.A." (Teachers Asst.)
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #10  
Old 09-30-2001, 12:44 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Poogle
X Has one
X had a Clock before timevar was available offline. It obivously uses a timeout loop or something similar to count of the time.
__________________
Reply With Quote
  #11  
Old 09-30-2001, 12:50 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by wetferret1
Soo..
Back to my post!
I really need to know so I can get an "A"
My teacher is an ass that knows nothing..ARG!!
ANd I am just a "T.A." (Teachers Asst.)
I don't know how Stefan set up timevar to work offline, but my only guess is that it is clientside. But you can go onto Graal2001 or any other server w/NPC Server and timevar to get your offline timevar increased by a lot

I could post the daynight(features my Seasons) npc here, but I won't

but, for the most part, just use 'mytime=timevar' that will create an automatic time counter. All you have to do is create the graphical part that interprets it
__________________
Reply With Quote
  #12  
Old 09-30-2001, 12:55 PM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
Could you explain that to me in a EASYIER way?
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #13  
Old 09-30-2001, 08:17 PM
Bhala Bhala is offline
Disgruntled Monkey
Bhala's Avatar
Join Date: Mar 2001
Posts: 779
Bhala is on a distinguished road
PHP Code:
if(created){
timeout=5;
}
if(!
server.time){
setstring server.time,0;
}
if(
timeout){
server.time++;
timeout=5;

when placed in a level with players it will act just like timevar but with out a player it will do jack....
Reply With Quote
  #14  
Old 09-30-2001, 10:12 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
ok to get this out of your worries...

free servers, offline mode, and p2p servers can all use timevar...

timevar goes up 1 every 5 seconds

and it is not clientside really... like I mean it gets data from the server when it gets your account and stuff...

I knows it not clientside because I have 2 computers and I looked at the time on both of them to see if it was one time
__________________
Thanks,
-KJL
Reply With Quote
  #15  
Old 09-30-2001, 11:02 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by KJS
ok to get this out of your worries...

free servers, offline mode, and p2p servers can all use timevar...

timevar goes up 1 every 5 seconds

and it is not clientside really... like I mean it gets data from the server when it gets your account and stuff...

I knows it not clientside because I have 2 computers and I looked at the time on both of them to see if it was one time
This is true. However, the offline timevar only counts up when you are playing offline mode. If you go online to, say, Graal2001, the timevar for offline mode is automatically set to Graal2001's timevar count.
__________________
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 01:48 AM.


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