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 04-28-2005, 07:36 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
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

Last edited by KuJi; 04-28-2005 at 04:11 PM..
Reply With Quote
  #2  
Old 04-28-2005, 05:34 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote
  #3  
Old 04-28-2005, 06:58 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
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?
Reply With Quote
  #4  
Old 04-28-2005, 07:40 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
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?
Reply With Quote
  #5  
Old 04-28-2005, 07:48 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to 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.
Reply With Quote
  #6  
Old 04-28-2005, 09:38 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
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
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 06:37 AM.


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