Graal Forums

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

cell424 12-15-2001 11:58 PM

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?

entravial 12-16-2001 05:58 AM

~AlphaFlame~

this.unit=timevar/amount

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

cell424 12-16-2001 08:44 PM

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

Sennema 12-17-2001 03:26 AM

Not bad.

cell424 12-17-2001 09:03 AM

Thanks, Spanky provided me with most of the script. I just edited it alot, say a hours worth.

Saga2001 12-18-2001 12:01 AM

pretty nice.
 
Looks ok, but shouldn't it be >9? :D


All times are GMT +2. The time now is 02:36 PM.

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