Jump to content
  • 0

date on script?


caspa

Question


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

how to put date on script like

========================

mes " today is "current date"

close;

}

========================

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • -1

  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

sir!! thank you for your concern but i dont want to learn scripting!! i just want you to spoil me and give the script directly!! =D /// no offense!!

==========================================

i just want a direct script with a set-up of

mes "today is *example* = "August 01, 2012" with no time =D

Edited by caspa
Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

hahahahahaha!! for your information im just a player in a certain RO and i was talking to a friend admin from that server and he just stated some event type idea but he does not know how to put the time script =D............ so he told me if i could post some topic on how to put the date on script............ because he's going to get busy today and will not have some time for posting something here... because his internet connection during the that particular current time is slow because he is playing in a crowded net shop whereas mostly in that time the net shop is full and a lot of fools are browsing stuff and watching anime's or korean dramas in youtube. =D

Edited by caspa
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/doc/script_commands.txt


---------------------------------------

*gettimestr(<format string>,<max length>)

This function will return a string containing time data as specified by the 
format string.

This uses the C function 'strfmtime', which obeys special format characters. For 
a full description see, for example, the description of 'strfmtime' at 
http://www.delorie.com/gnu/docs/glibc/libc_437.html
All the format characters given in there should properly work.
Max length is the maximum length of a time string to generate.

The example given in rAthena sample scripts works like this:

 mes gettimestr("%Y-%m/%d %H:%M:%S",21);

This will print a full date and time like 'YYYY-MM/DD HH:MM:SS'.

---------------------------------------

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  234
  • Reputation:   19
  • Joined:  06/15/12
  • Last Seen:  

sir!! thank you for your concern but i dont want to learn scripting!! i just want you to spoil me and give the script directly!! =D /// no offense!!

==========================================

Are you serious? You can´t even read the few lines Mysterious posted?

You don´t wanna do anything for your server and just get spoon fed!?

So you don´t wanna work but want stuff hmm...

Then you probably have to hire staff:

http://rathena.org/board/forum/44-employment/

For your "no offense" comment:

Sorry but imo your entire post is an insult. So "no offense" doesn´t really work.

Good luck with that attitude of yours to find someone to help you.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

sir!! thank you for your concern but i dont want to learn scripting!! i just want you to spoil me and give the script directly!! =D /// no offense!!

==========================================

i just want a direct script with a set-up of

mes "today is *example* = "August 01, 2012" with no time =D

In order for you to know how to do it for future reference, you need to learn. :P. Not everyone on this board will help do things for you. You will need to be taught once in awhile on how to do things.

But since I'm nice.. you could do it like so:

mes "It is currently:"
mes gettimestr("%Y-%m/%d %H:%M:%S",21);
close;
}

If you don't want the time, you can remove it. ^ This has the time in it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...