Birthday event ?

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
babyjason
Posts: 575
Joined: Wed Dec 02, 2009 7:59 pm

Birthday event ?

Post by babyjason »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:

i saw there is a birthday event, also a /mybirthday command that shows players birthday

could you tell me how to set a players birthday, and how to use the event? couldnt find info :/
User avatar
Gnacik
L2j Veteran
L2j Veteran
Posts: 925
Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:

Re: Birthday event ?

Post by Gnacik »

Birthday date is stored in `characters` table (createTime field) Its day when player create character. must play whole year on server to get reward ;)
User avatar
Notorious
Posts: 501
Joined: Thu May 28, 2009 3:50 pm
Location: Sweden

Re: Birthday event ?

Post by Notorious »

Maybe someone could put together some little program that reads the login-log, and sets the database with date from first login to server so that old accounts get a more suitable birthday than 1/1 1970! :)
User avatar
Tan
L2j Veteran
L2j Veteran
Posts: 873
Joined: Wed Jun 10, 2009 10:31 pm
Location: Poland

Re: Birthday event ?

Post by Tan »

Gnacik wrote:Birthday date is stored in `characters` table (createTime field) Its day when player create character. must play whole year on server to get reward ;)
and the reward is?
Some people believe in God... i believe in Music... some people pray..... I turn on Winamp
http://www.last.fm/user/L2jTan
User avatar
Gnacik
L2j Veteran
L2j Veteran
Posts: 925
Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:

Re: Birthday event ?

Post by Gnacik »

Adventurer Hat and 24h vitality buff
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: Birthday event ?

Post by JIV »

i think reward will be changed on next birthday
babyjason
Posts: 575
Joined: Wed Dec 02, 2009 7:59 pm

Re: Birthday event ?

Post by babyjason »

ty for the info,

in the character field, the date is in unix format again? and if it is, does anybody has a link to convert normal date to unix ?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Birthday event ?

Post by jurchiks »

If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Crom
Posts: 191
Joined: Sun May 24, 2009 8:09 pm
Location: Spain

Re: Birthday event ?

Post by Crom »

This date could be changed on create account form or any one?
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Birthday event ?

Post by janiii »

l2j uses timestamp in milliseconds, so be aware to add the three 000 at the end. unix time is in seconds, l2j time is in milliseconds.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
babyjason
Posts: 575
Joined: Wed Dec 02, 2009 7:59 pm

Re: Birthday event ?

Post by babyjason »

janiii wrote:l2j uses timestamp in milliseconds, so be aware to add the three 000 at the end. unix time is in seconds, l2j time is in milliseconds.
great, also i ve found the html s in event folder, much clearer now , sry for not looking before :)
kilkenny
L2j Veteran
L2j Veteran
Posts: 149
Joined: Thu Apr 27, 2006 11:04 am
Contact:

Re: Birthday event ?

Post by kilkenny »

janiii wrote:l2j uses timestamp in milliseconds, so be aware to add the three 000 at the end. unix time is in seconds, l2j time is in milliseconds.
Thanks for the tip, i tried adding old birthdates and still ended up in 1970...but then this is probably the cause :)
kilkenny
L2j Veteran
L2j Veteran
Posts: 149
Joined: Thu Apr 27, 2006 11:04 am
Contact:

Re: Birthday event ?

Post by kilkenny »

After trying to figure out who created his character when I was left with a couple of characters that I could not find. To give them a createdate i used the following sql query, might be interesting for some people:

Code: Select all

UPDATE characters SET createTime = lastAccess - onlinetime * 10000 WHERE createTime = '0';
The value 10000 is just a guess, you can put whatever you want here, but I tested it on my server for a few chars and got the best result with this value (not very active players i guess :p)
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: Birthday event ?

Post by momo61 »

kilkenny wrote:After trying to figure out who created his character when I was left with a couple of characters that I could not find. To give them a createdate i used the following sql query, might be interesting for some people:

Code: Select all

UPDATE characters SET createTime = lastAccess - onlinetime * 10000 WHERE createTime = '0';
The value 10000 is just a guess, you can put whatever you want here, but I tested it on my server for a few chars and got the best result with this value (not very active players i guess :p)
very interesting. thank you.
Post Reply