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 .
[HELP] How to send message packet [SOLVED]
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 30
- Joined: Thu Sep 01, 2011 3:57 am
[HELP] How to send message packet [SOLVED]
Last edited by thaiscorpion on Thu Sep 22, 2011 9:44 am, edited 1 time in total.
-
- Posts: 30
- Joined: Thu Sep 01, 2011 3:57 am
Re: [HELP] How to send message packet
Okey i found it out in case anyone else needs to know:
I imported :
and then used this to send message to everyone:
Worked great for me! GL!
I imported :
Code: Select all
import com.l2jserver.gameserver.util.Broadcast;import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;
Code: Select all
broadcastPacket(new ExShowScreenMessage(0, MSG_ID, 2, 0, 0, 0, 0, true, TIME, 0, "MSG TEXT"));