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
  #16  
Old 09-30-2001, 11:40 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
hmm.

I was 'fooling' around earlier and figured this out.
// NPC made by Josey Hunt
if(playerenters&&!hasweapon(Time)){toweapons time;
timeout=1;}
if (!server.time){
setstring server.time,0;}
if (timeout){
showimg 1,@Tahoma@Bold@#v(server.time),100,100;changeimgvi s 1,4;timeout=.5;
server.time++;
timeout=1;}

The time changes every 1 second, alls you had to do is change the placing of the image and a few modifications.
I'm to tired right now to do it for you 'peoples' or I would.


Oh yea, watch jeepers creepers. It kicks ass! =)
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #17  
Old 10-01-2001, 12:43 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
erm..

to answer alot of those questions.

timevar isnt a npc-server only, as enigma graal uses timevar for their time system

enigma graal has a time system excactly like g2k1's, except it uses the showimg letters not state.png.

just convert timevar, and then do something like if(hour==1){
seteffect blahblahblahblah;}
Reply With Quote
  #18  
Old 10-01-2001, 01:59 AM
SSj_Link SSj_Link is offline
Registered User
Join Date: Jul 2001
Location: i r live in texas
Posts: 244
SSj_Link is on a distinguished road
Send a message via ICQ to SSj_Link Send a message via AIM to SSj_Link
Quote:
Originally posted by Warcaptain
erm..

to answer alot of those questions.

timevar isnt a npc-server only, as enigma graal uses timevar for their time system

enigma graal has a time system excactly like g2k1's, except it uses the showimg letters not state.png.

just convert timevar, and then do something like if(hour==1){
seteffect blahblahblahblah;}
'

Thats a funny command somehow x.X;;
-freak-
__________________
-People with my Password: Me (Boozy), Ghostface Killa, bgraven, Freaky Carnie, Dark Warlock, and SoulReaver.
-So they can all post.-

-I hate my account name -

~Old Names: Link, Darklink, Neo, then Boozy when Bravo died. (So some people will recognize me)~

AIM: boozyneo
ICQ: 116030736
Msn: [email protected]
Email: [email protected]


-DANCE SPAM DANCE!- Dark Warlock
Reply With Quote
  #19  
Old 10-01-2001, 11:39 AM
everandom everandom is offline
Registered User
Join Date: Apr 2001
Posts: 286
everandom is on a distinguished road
in non P2P with no NPC server you can't do the time thingy really, as the time won't be going when no one logs on to keep the NPC working, while in NPC server it keeps working while there are no players on it (BTW, there's always one player log on... Teh NPCeh Server)
__________________
RaNdoM InSaNiTy
!!??!!??!!??!!??!!
I'm always been unwanted!!!
MY english kwap
Reply With Quote
  #20  
Old 10-01-2001, 08:22 PM
everandom everandom is offline
Registered User
Join Date: Apr 2001
Posts: 286
everandom is on a distinguished road
Quote:
Originally posted by Kaimetsu


We've already established that timevar works without an NPC Server.
so you say it could keep going even when no player logs on???
or there's another built in var???

I'm confused
I'm a Newbie Scripter
__________________
RaNdoM InSaNiTy
!!??!!??!!??!!??!!
I'm always been unwanted!!!
MY english kwap
Reply With Quote
  #21  
Old 10-01-2001, 11:04 PM
SagaTCN SagaTCN is offline
Registered User
Join Date: Aug 2001
Location: West Michigan
Posts: 190
SagaTCN is on a distinguished road
Send a message via ICQ to SagaTCN Send a message via AIM to SagaTCN Send a message via Yahoo to SagaTCN
I understand timevar perfectly


I had no idea we were allowed to use it on free servers though.



it counts up 1 every 5 seconds from the point the playerworld went online.

and it's the same for everyone.


And it doesn't matter if there are players in it or not. it will still count up.



All you have to do is make an NPC to interpret timevar into the time. that's it.
__________________

Rogue World
Reply With Quote
  #22  
Old 10-02-2001, 02:33 AM
SagaTCN SagaTCN is offline
Registered User
Join Date: Aug 2001
Location: West Michigan
Posts: 190
SagaTCN is on a distinguished road
Send a message via ICQ to SagaTCN Send a message via AIM to SagaTCN Send a message via Yahoo to SagaTCN
Quote:
Originally posted by SagaTCN

it counts up 1 every 5 seconds from the point the playerworld went online.
So, when Playerworld A is first opened the timevar variable is equal to 0? Hmm..interesting. -Yin
Reply With Quote
  #23  
Old 10-02-2001, 03:05 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
if you want to turn timevar into a time on a non-p2p here is a start, this will give you hours but you'll have to figure our everything else like minutes and seconds:

NPC Code:

this.hours=int(((timevar/60)/60)-(int(((((timevar/60)/60)/24)*24))))

Reply With Quote
  #24  
Old 10-02-2001, 01:22 PM
everandom everandom is offline
Registered User
Join Date: Apr 2001
Posts: 286
everandom is on a distinguished road
Quote:
Originally posted by SagaTCN
I understand timevar perfectly


I had no idea we were allowed to use it on free servers though.



it counts up 1 every 5 seconds from the point the playerworld went online.

and it's the same for everyone.


And it doesn't matter if there are players in it or not. it will still count up.



All you have to do is make an NPC to interpret timevar into the time. that's it.
kewlies that means thats just like how long the server has been online thats kewl that makes the time script easier
(no need to make the timer)
__________________
RaNdoM InSaNiTy
!!??!!??!!??!!??!!
I'm always been unwanted!!!
MY english kwap
Reply With Quote
  #25  
Old 10-02-2001, 02:20 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
What do those 3 things repersent in the time thing?
__________________
[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
  #26  
Old 10-02-2001, 04:35 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
Re: Time Script

Quote:
Originally posted by Neoreno
I need to Know the Time Script like off Graal2001?:grrr:
something with strtofloat and a lot of variables ....
Reply With Quote
  #27  
Old 10-02-2001, 07:18 PM
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
Re: Re: Time Script

Quote:
Originally posted by nyghtGT

something with strtofloat and a lot of variables ....
look at my last post in this thread
Reply With Quote
  #28  
Old 10-02-2001, 09:12 PM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
What school would have a graal class... Where.. Please i do not belive you
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #29  
Old 10-03-2001, 12:54 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 dragoonvenganc
What school would have a graal class... Where.. Please i do not belive you
?????????
Reply With Quote
  #30  
Old 10-03-2001, 01:33 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Quote:
Originally posted by SagaTCN

All you have to do is make an NPC to interpret timevar into the time. that's it.
I know that..

-_-

thats what i was saying, ive already converted it.

-_-

it works on free servers, and p2p servers.

the way i have it is the EXACT same as G2K1
Reply With Quote
  #31  
Old 10-03-2001, 02:04 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
You can make Server.vars and server arrays. Its been done befor.

Its just not as concrete as server flags/strings
__________________

subliminal message: 1+1=3
Reply With Quote
  #32  
Old 10-03-2001, 02:35 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
Re: Re: Re: Time Script

Quote:
Originally posted by btedji


look at my last post in this thread
i know i was just giving more effect to how much of that stuff it would use thats all ...
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 10:33 PM.


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