Graal Forums

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

KuJi 04-28-2005 07:36 AM

Online Time Bug
 
Help :O
-I know #v(playeronlinetime) is serverside.
-I scripted:
if (actionserverside) setplayerprop#c,#v(playeronlinetime);
(With it triggering of course)
-I get back one, it does not change or nothing.

Server: Graal X

Remember, it displays only ONE (1)


I tried restarting the server..failed after doing so.


Help soon, thx ;O

Admins 04-28-2005 05:34 PM

Ok fixed it, it's correctly returning an integer number now instead of 1/0. I have uploaded the new npcserver for new scripting engine to all machines, you only need to restart it manually.

Robin 04-28-2005 06:58 PM

Quote:

Originally Posted by Stefan
Ok fixed it, it's correctly returning an integer number now instead of 1/0. I have uploaded the new npcserver for new scripting engine to all machines, you only need to restart it manually.

i've restarted it and it doesnt work?

KuJi 04-28-2005 07:40 PM

I am trying it now. I will post results below:

Alright, well now it is displaying. But not correctly. It is showing like 11111 hrs, maybe my conversion method isn't working?

Robin 04-28-2005 07:48 PM

If onlinetime is returned in seconds, then you need to divide the number by 60 to get minutes, and divide by 60*60 to get hours.

KuJi 04-28-2005 09:38 PM

Quote:

Originally Posted by Robin
If onlinetime is returned in seconds, then you need to divide the number by 60 to get minutes, and divide by 60*60 to get hours.

Yea, I fixed it. Thanks anyway ;-P


All times are GMT +2. The time now is 03:39 PM.

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