custom system messages

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
User avatar
rychoo84
Posts: 58
Joined: Fri Jan 01, 2010 11:26 am
Location: Breslau

custom system messages

Post by rychoo84 »

Hi everyone,
I'm trying to update the

Code: Select all

SystemMessageId
class with my custom messages (and IDs), but It fails ingame (ID does not exist).
Here is the part of the code:

Code: Select all

 //l2jserver.gameserver.networkpublic enum SystemMessageId{       //...       /**	* ID: 9999<br>	* Message: bla bla.	*/	MY_CUSTOM_MESSAGE(9999),        //...} 

Code: Select all

 //...systemMessage = new SystemMessage(SystemMessageId.MY_CUSTOM_MESSAGE);playerInstance.sendPacket(systemMessage); 
Is it matter of client or did I forgot something?
any help would be appreciable,
Tom
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: custom system messages

Post by janiii »

system message ids are client side. but you can send own message as string.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
issle88
Posts: 36
Joined: Sat Apr 01, 2017 2:35 pm

Re: custom system messages

Post by issle88 »

Is it possible to send messages that do NOT appear in the system window , but on the main screen ? ( like the one when the siege doors get destroyed with big white letters on the center/top of the screen ).

Im a bit sure i saw custom messages like these ( not the default ones that exist client side ) in some servers with non-edited client. But i can be wrong, just wondering.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: custom system messages

Post by jurchiks »

player.sendPacket(ExShowScreenMessage("text#text",3000));
# means new line and the number is time in miliseconds
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.
issle88
Posts: 36
Joined: Sat Apr 01, 2017 2:35 pm

Re: custom system messages

Post by issle88 »

jurchiks wrote:player.sendPacket(ExShowScreenMessage("text#text",3000));
# means new line and the number is time in miliseconds
You are my hero :) :D
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: custom system messages

Post by Probe »

as for system messages, you can simply use

Code: Select all

player.sendMessage("Whatever you like");
Post Reply