caspa Posted July 28, 2012 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Share Posted July 28, 2012 how to put date on script like ======================== mes " today is "current date" close; } ======================== Quote Link to comment Share on other sites More sharing options...
-1 caspa Posted July 28, 2012 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Author Share Posted July 28, 2012 (edited) 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 July 28, 2012 by caspa Quote Link to comment Share on other sites More sharing options...
-1 caspa Posted July 28, 2012 Group: Members Topic Count: 194 Topics Per Day: 0.04 Content Count: 499 Reputation: 3 Joined: 03/11/12 Last Seen: September 18, 2023 Author Share Posted July 28, 2012 (edited) 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 July 28, 2012 by caspa Quote Link to comment Share on other sites More sharing options...
Mystery Posted July 28, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted July 28, 2012 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'. --------------------------------------- Quote Link to comment Share on other sites More sharing options...
Wafflebutt Posted July 28, 2012 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 234 Reputation: 19 Joined: 06/15/12 Last Seen: November 28, 2023 Share Posted July 28, 2012 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. 1 Quote Link to comment Share on other sites More sharing options...
Mystery Posted July 28, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted July 28, 2012 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. . 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. Quote Link to comment Share on other sites More sharing options...
Question
caspa
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.