Birthday event ?
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 575
- Joined: Wed Dec 02, 2009 7:59 pm
Birthday event ?
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 :/
» 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 :/
- Gnacik
- L2j Veteran
- Posts: 925
- Joined: Tue Dec 16, 2008 3:49 pm
- Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
- Contact:
Re: Birthday event ?
Birthday date is stored in `characters` table (createTime field) Its day when player create character. must play whole year on server to get reward 

- Notorious
- Posts: 501
- Joined: Thu May 28, 2009 3:50 pm
- Location: Sweden
Re: Birthday event ?
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! 

- Tan
- L2j Veteran
- Posts: 873
- Joined: Wed Jun 10, 2009 10:31 pm
- Location: Poland
Re: Birthday event ?
and the reward is?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
Some people believe in God... i believe in Music... some people pray..... I turn on Winamp
http://www.last.fm/user/L2jTan
http://www.last.fm/user/L2jTan
- Gnacik
- L2j Veteran
- Posts: 925
- Joined: Tue Dec 16, 2008 3:49 pm
- Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
- Contact:
Re: Birthday event ?
Adventurer Hat and 24h vitality buff
- JIV
- L2j Veteran
- Posts: 1882
- Joined: Sun Jan 06, 2008 8:17 pm
- Location: Slovakia
- Contact:
Re: Birthday event ?
i think reward will be changed on next birthday
-
- Posts: 575
- Joined: Wed Dec 02, 2009 7:59 pm
Re: Birthday event ?
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 ?
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 ?
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Birthday event ?
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.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 191
- Joined: Sun May 24, 2009 8:09 pm
- Location: Spain
Re: Birthday event ?
This date could be changed on create account form or any one?
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Birthday event ?
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!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 575
- Joined: Wed Dec 02, 2009 7:59 pm
Re: Birthday event ?
great, also i ve found the html s in event folder, much clearer now , sry for not looking beforejaniii 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.

-
- L2j Veteran
- Posts: 149
- Joined: Thu Apr 27, 2006 11:04 am
- Contact:
Re: Birthday event ?
Thanks for the tip, i tried adding old birthdates and still ended up in 1970...but then this is probably the causejaniii 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.

Support my city: http://thierrys-town.myminicity.com/
-
- L2j Veteran
- Posts: 149
- Joined: Thu Apr 27, 2006 11:04 am
- Contact:
Re: Birthday event ?
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:
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)
Code: Select all
UPDATE characters SET createTime = lastAccess - onlinetime * 10000 WHERE createTime = '0';
Support my city: http://thierrys-town.myminicity.com/
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: Birthday event ?
very interesting. thank you.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: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)Code: Select all
UPDATE characters SET createTime = lastAccess - onlinetime * 10000 WHERE createTime = '0';