Page 1 of 1

custom system messages

Posted: Sat Apr 17, 2010 6:05 am
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

Re: custom system messages

Posted: Sat Apr 17, 2010 6:30 am
by janiii
system message ids are client side. but you can send own message as string.

Re: custom system messages

Posted: Sat Apr 17, 2010 10:32 am
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.

Re: custom system messages

Posted: Sat Apr 17, 2010 10:41 am
by jurchiks
player.sendPacket(ExShowScreenMessage("text#text",3000));
# means new line and the number is time in miliseconds

Re: custom system messages

Posted: Sat Apr 17, 2010 4:46 pm
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

Re: custom system messages

Posted: Sat Apr 17, 2010 5:10 pm
by Probe
as for system messages, you can simply use

Code: Select all

player.sendMessage("Whatever you like");