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 03-05-2007, 11:30 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
Clientside system time?

Is it possible to get the OS clock of the player?

I'm working on a simple news ticker but I want the player to be notified how long ago the news item was created by timestamping it. Obviously this would be best in their local time so is it possible to get the value of their system clock?

Thanks.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #2  
Old 03-05-2007, 11:34 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
No, not that I'm aware of. You could make a clock script and have them set there timezone with it.
__________________
Deep into the Darkness peering...
Reply With Quote
  #3  
Old 03-05-2007, 11:46 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Wouldn't a clientside timevar2 be the os's time? (Assuming there is a client timevar2 here)
Reply With Quote
  #4  
Old 03-05-2007, 11:54 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
I'm fairly sure timevar2 clientside gives local time, however that's maybe subject to change, I'm not sure.
__________________
Skyld
Reply With Quote
  #5  
Old 03-06-2007, 01:02 AM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by Skyld View Post
I'm fairly sure timevar2 clientside gives local time, however that's maybe subject to change, I'm not sure.
Last I checked under Windows timevar2 was how long the client has been opened.
Reply With Quote
  #6  
Old 03-06-2007, 01:03 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
That's what i thought too.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #7  
Old 03-06-2007, 01:06 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Riot View Post
Last I checked under Windows timevar2 was how long the client has been opened.
Now you mention it, you're right; on Linux and Mac, it returns local time since 1970.
__________________
Skyld
Reply With Quote
  #8  
Old 03-06-2007, 09:39 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
timevar2 is your system clock time on the clientside.
__________________
Do it with a DON!
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 03:04 PM.


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