Graal Forums

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

XilosTinsu 06-15-2001 10:46 PM

Time help?
 
What's wrong with this?
if (playerenters) {toweapons *Time}
if (isweapon||timeout) {timeout=.05;
this.minute = int(timevar / .2)%60;
this.hour = int(this.minute / 60)%24;
this.day = int(this.hour / 24)%30;
this.month = int(this.day / 30)%12;
this.year = int(this.month / 12)}
if (weaponfired) {setstring year,#v(this.year);
setstring month,#v(this.month);
setstring day,#v(this.day);
setstring hour,#v(this.hour);
setstring minute,#v(this.minute);
say2 Excalibur Time#b
Time: #s(hour):#s(minute)#b
Date: #s(month)/#s(day)/#s(year)}

It doesn't show the right time when I fire the weapon and it also doesn't count time right.

grim_squeaker_x 06-16-2001 04:58 PM

timevar only works online.


All times are GMT +2. The time now is 11:03 AM.

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