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
  #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
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 07:04 AM.


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