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 05-29-2010, 10:52 AM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Getting Date and Time?

Is there a variable(s) that have the servertime as shown on the taskbar at the bottom of the client and one for the date like 2/10/2011?
Reply With Quote
  #2  
Old 05-29-2010, 11:12 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
HTML Code:
Serverlist_TaskBar_Label.text
Hope this helps!
__________________
Reply With Quote
  #3  
Old 05-29-2010, 12:13 PM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
is there a way to get the date?
Reply With Quote
  #4  
Old 05-29-2010, 08:11 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
PHP Code:
formatTimeString("format"timevar2);
convertTimeToString(timevar2); // Sat May 29 14:15:15 2010 
Both are serverside only until v6 is released. formatTimeString uses the same parameters as PHP's strftime.
__________________
Reply With Quote
  #5  
Old 06-03-2010, 04:16 AM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Quote:
Originally Posted by cbk1994 View Post
PHP Code:
formatTimeString("format"timevar2);
convertTimeToString(timevar2); // Sat May 29 14:15:15 2010 
Both are serverside only until v6 is released. formatTimeString uses the same parameters as PHP's strftime.
Oh thanks, I didn't even know those existed. I looked in the wiki and didn't find it.
Reply With Quote
  #6  
Old 06-03-2010, 05:06 AM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Quote:
Originally Posted by Cubical View Post
Oh thanks, I didn't even know those existed. I looked in the wiki and didn't find it.
I've found /scripthelp is usually more helpful than the wiki (where it's impossible to find anything unless you know exactly what you're looking for).

'/scripthelp time' would have given you what you needed right away
__________________
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 02:40 AM.


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