Page 1 of 1

[HELP] How to send message packet [SOLVED]

Posted: Thu Sep 22, 2011 8:03 am
by thaiscorpion
L2J Revision 4912:
L2JDP Revision 8362:

Hiya guys im trying to send a message to the player, ive created a message in SystemMsg-e but im not sure how to send that "packet" to the player to show this message, any help would be great! (im editing the source code here)

ps: im trying to do it this way because i want the message to appear on the players screen and not on the system message .

Re: [HELP] How to send message packet

Posted: Thu Sep 22, 2011 9:36 am
by thaiscorpion
Okey i found it out in case anyone else needs to know:

I imported :

Code: Select all

import com.l2jserver.gameserver.util.Broadcast;import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;
and then used this to send message to everyone:

Code: Select all

broadcastPacket(new ExShowScreenMessage(0, MSG_ID, 2, 0, 0, 0, 0, true, TIME, 0, "MSG TEXT"));
Worked great for me! GL!