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 12-15-2001, 11:58 PM
cell424 cell424 is offline
Registered User
Join Date: Mar 2001
Location: USA/PA
Posts: 184
cell424 is on a distinguished road
Send a message via AIM to cell424
Red face Scripting..........

I am getting really tired of my time system. I have tried everything to get it to record hours, but still doesnt work! Does anyone know how to record the hours using the time var?
__________________
Trunks
Reply With Quote
  #2  
Old 12-16-2001, 05:58 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

this.unit=timevar/amount

You hafta figure out how to convert it though, unless you want it real time...
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #3  
Old 12-16-2001, 08:44 PM
cell424 cell424 is offline
Registered User
Join Date: Mar 2001
Location: USA/PA
Posts: 184
cell424 is on a distinguished road
Send a message via AIM to cell424
This is my time script I have so far.


Code-

if (playerenters) {
toweapons -Time;
this.mode=1;
}
if (this.mode==1) {
Time();
timeout = .05;
}
function Time() {
if (int(this.min*timevar)%60<10) {
showimg 333,@Courier New@bc@#v(int((timevar*this.min)/60)%24):0#v((timevar*this.min)%60),333,78;
} else {
showimg 333,@Courier New@bc@#v(int((timevar*this.min)/60)%24):#v((timevar*this.min)%60),333,78;
}
this.min = 1;
showimg 334,state.png,282,70;
changeimgpart 334,162,60,14,14;
changeimgzoom 333,0;
changeimgvis 333,4;
changeimgvis 334,4;
}

-End of Code
__________________
Trunks
Reply With Quote
  #4  
Old 12-17-2001, 03:26 AM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
Not bad.
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
Reply With Quote
  #5  
Old 12-17-2001, 09:03 AM
cell424 cell424 is offline
Registered User
Join Date: Mar 2001
Location: USA/PA
Posts: 184
cell424 is on a distinguished road
Send a message via AIM to cell424
Thanks, Spanky provided me with most of the script. I just edited it alot, say a hours worth.
__________________
Trunks
Reply With Quote
  #6  
Old 12-18-2001, 12:01 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
pretty nice.

Looks ok, but shouldn't it be >9?
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
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:53 AM.


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