Graal Forums

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

Neoreno 08-29-2001 07:01 PM

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

Enigma_GP6 09-03-2001 11:08 AM

Search Me.....(Pulls out pockets and out falls out hundreds of ahand written post-it notes) Uh-oh. GTG!!!!!!! *-_-ZIP!!!!!!

-Rebel95

fuzie 09-03-2001 02:58 PM

yea is it possible to be put on a non-p2p server?

wetferret1 09-30-2001 09:38 AM

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.

Shard_IceFire 09-30-2001 10:26 AM

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!

Poogle 09-30-2001 10:30 AM

Quote:

Originally posted by Kaimetsu
NPC Code:
this.time=timevar;



I believe it's allowed on non-P2P.

How do yeh use it?!

G_yoshi 09-30-2001 10:35 AM

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.

Poogle 09-30-2001 11:03 AM

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

wetferret1 09-30-2001 11:17 AM

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.)

G_yoshi 09-30-2001 12:44 PM

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.

G_yoshi 09-30-2001 12:50 PM

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 :D

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 ;)

wetferret1 09-30-2001 12:55 PM

Could you explain that to me in a EASYIER way?

Bhala 09-30-2001 08:17 PM

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....

KJS 09-30-2001 10:12 PM

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

G_yoshi 09-30-2001 11:02 PM

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.


All times are GMT +2. The time now is 01:52 AM.

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