Welcome Message Text
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 2
- Joined: Tue Apr 20, 2010 12:58 am
Welcome Message Text
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number: 4060
L2JDP Revision Number: 7241
Before someone jumps to a wrong conclusion, this is not about removing the message about the server being powered by L2J or changing the welcome message that appears in the chat/system window(s).
I did a search and noticed that there were quite a few references to deleted or closed threads regarding this, so I thought I would get that out first. CYA, after all.
Anyhow,
This post is regarding the welcome message and related settings in l2jmods.properties within the config folder.
I've tried a few things with the message, such as trying to use multiple lines via escape character sequences. I was just curious if there was a way to change the color, use multiple lines, or change the size of the text within the actual message setting using inline commands. Or, if I'm guessing correctly, would this functionality have to be added in the server's Java code in the form of a custom contribution? Maybe in the HTML files?
I have to say my skill with Java is not very good; I haven't even looked at it since my Junior year at college. Though I'm still willing to give it a try if I can get pointed in the proper direction and modifying the Java source or HTML is the way to go about it.
Thanks,
kardis
» Find Revision
L2J Revision Number: 4060
L2JDP Revision Number: 7241
Before someone jumps to a wrong conclusion, this is not about removing the message about the server being powered by L2J or changing the welcome message that appears in the chat/system window(s).
I did a search and noticed that there were quite a few references to deleted or closed threads regarding this, so I thought I would get that out first. CYA, after all.
Anyhow,
This post is regarding the welcome message and related settings in l2jmods.properties within the config folder.
I've tried a few things with the message, such as trying to use multiple lines via escape character sequences. I was just curious if there was a way to change the color, use multiple lines, or change the size of the text within the actual message setting using inline commands. Or, if I'm guessing correctly, would this functionality have to be added in the server's Java code in the form of a custom contribution? Maybe in the HTML files?
I have to say my skill with Java is not very good; I haven't even looked at it since my Junior year at college. Though I'm still willing to give it a try if I can get pointed in the proper direction and modifying the Java source or HTML is the way to go about it.
Thanks,
kardis
- ThePhoenixBird
- L2j Inner Circle
- Posts: 1857
- Joined: Fri May 27, 2005 5:11 pm
Re: Welcome Message Text
Hi there, you could try instead the option in General.Properties called ShowServerNews = True
It activates a popup window on logon that shows the content of the file in "data/html/servnews.htm" you can use htm code (hex colours) on that one, check the quests htm files to get examples.
It activates a popup window on logon that shows the content of the file in "data/html/servnews.htm" you can use htm code (hex colours) on that one, check the quests htm files to get examples.
-
- Posts: 1160
- Joined: Thu Aug 30, 2007 5:17 pm
Re: Welcome Message Text
quick question why have the config to turn that option off and it does not work was always meaning to ask that
-
- Posts: 2
- Joined: Tue Apr 20, 2010 12:58 am
Re: Welcome Message Text
Thank you Phoenix. That was pretty darn close to what I was looking for. After I play around with it and provided I can make the free time, I could write a short guide about using it on the wiki if someone could find that information useful at all.
I still may have a try at modifying the across-the-screen login message just for fun. Maybe try to expose some functionality in the form of changing the color and size since the idea is now under my skin.
Thanks,
kardis
I still may have a try at modifying the across-the-screen login message just for fun. Maybe try to expose some functionality in the form of changing the color and size since the idea is now under my skin.

Thanks,
kardis
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Welcome Message Text
try a "#" for new line character. saw that somewhere written on forum (from jurchiks), but did not try it. 
there is no way to set color on the screen message :/

there is no way to set color on the screen message :/
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!
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Welcome Message Text
if you mean:hope wrote:quick question why have the config to turn that option off and it does not work was always meaning to ask that
# If False, the license (after the login) will not be shown.
# Default: True
ShowLicence = False
then it's for client licence, not server.
Ontopic: yes, as janiii quoted me, using ExShowScreenMessage (text#text) # makes a new line, while /n makes the space wider, I prefer #
Code: Select all
public ExShowScreenMessage (int type, int messageId, int position, int unk1, int size, int unk2, int unk3,boolean showEffect, int time,int unk4, String text) { _type = type; _sysMessageId = messageId; _unk1 = unk1; _unk2 = unk2; _unk3 = unk3; _unk4 = unk4; _position = position; _text = text; _time = time; _size = size; _effect = showEffect; } @Override public String getType() { return "[S]FE:39 ExShowScreenMessage"; } @Override protected void writeImpl() { writeC(0xfe); writeH(0x39); writeD(_type); // 0 - system messages, 1 - your defined text writeD(_sysMessageId); // system message id (_type must be 0 otherwise no effect) writeD(_position); // message position writeD(_unk1); // ? writeD(_size); // font size 0 - normal, 1 - small writeD(_unk2); // ? writeD(_unk3); // ? writeD(_effect == true ? 1 : 0); // upper effect (0 - disabled, 1 enabled) - _position must be 2 (center) otherwise no effect writeD(_time); // time writeD(_unk4); // ? writeS(_text); // your text (_type must be 1, otherwise no effect) }}

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.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Welcome Message Text
if you mean:hope wrote:quick question why have the config to turn that option off and it does not work was always meaning to ask that
# If False, the license (after the login) will not be shown.
# Default: True
ShowLicence = False
then it's for client licence, not server.
Ontopic: yes, as janiii quoted me, using ExShowScreenMessage (text#text) # makes a new line, while /n makes the space wider, I prefer #
Code: Select all
public ExShowScreenMessage (int type, int messageId, int position, int unk1, int size, int unk2, int unk3,boolean showEffect, int time,int unk4, String text) { _type = type; _sysMessageId = messageId; _unk1 = unk1; _unk2 = unk2; _unk3 = unk3; _unk4 = unk4; _position = position; _text = text; _time = time; _size = size; _effect = showEffect; } @Override public String getType() { return "[S]FE:39 ExShowScreenMessage"; } @Override protected void writeImpl() { writeC(0xfe); writeH(0x39); writeD(_type); // 0 - system messages, 1 - your defined text writeD(_sysMessageId); // system message id (_type must be 0 otherwise no effect) writeD(_position); // message position writeD(_unk1); // ? writeD(_size); // font size 0 - normal, 1 - small writeD(_unk2); // ? writeD(_unk3); // ? writeD(_effect == true ? 1 : 0); // upper effect (0 - disabled, 1 enabled) - _position must be 2 (center) otherwise no effect writeD(_time); // time writeD(_unk4); // ? writeS(_text); // your text (_type must be 1, otherwise no effect) }}

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: 1160
- Joined: Thu Aug 30, 2007 5:17 pm
Re: Welcome Message Text
no this is not what i mean the message you get in game in the system message that alot where asking to remove it the setting does not work to turn it offjurchiks wrote:if you mean:hope wrote:quick question why have the config to turn that option off and it does not work was always meaning to ask that
# If False, the license (after the login) will not be shown.
# Default: True
ShowLicence = False
then it's for client licence, not server.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Welcome Message Text
WHAT setting??
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: 1160
- Joined: Thu Aug 30, 2007 5:17 pm
Re: Welcome Message Text
this one
You do not have the required permissions to view the files attached to this post.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Welcome Message Text
there is no setting to disable l2j credits, you can only disable display of revisions in config
Last edited by jurchiks on Wed Apr 21, 2010 9:14 am, edited 1 time in total.
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: 1160
- Joined: Thu Aug 30, 2007 5:17 pm
Re: Welcome Message Text
looked for a while cant remember where the setting is
- denser
- Posts: 1392
- Joined: Wed May 30, 2007 9:13 pm
- Location: Russia
- Contact:
Re: Welcome Message Text
nice thread, i make mod using this features, later share it 

Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
L2J - the place where glad to see you any time!