[HELP] How to send message packet [SOLVED]

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
thaiscorpion
Posts: 30
Joined: Thu Sep 01, 2011 3:57 am

[HELP] How to send message packet [SOLVED]

Post 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 .
Last edited by thaiscorpion on Thu Sep 22, 2011 9:44 am, edited 1 time in total.
thaiscorpion
Posts: 30
Joined: Thu Sep 01, 2011 3:57 am

Re: [HELP] How to send message packet

Post 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!
Post Reply