Junior Spellweaver
- Joined
- Dec 21, 2013
- Messages
- 140
- Reaction score
- 3
Greetings! I'm trying to get chat bubble to appear and not a message in the box. I've tried a bunch of trial and error to see if there's a way to do this, but no luck.
I'm only trying to keep the green chat, not the white chat. When I use the green chat by itself, no chat bubble appears on top of the player's head, so it's only the default chat that causes the chat bubble.
Chat Function:
Packet:
Any ideas on how to remove the white chat (Default chat in message box)? Thanks in advance!
I'm only trying to keep the green chat, not the white chat. When I use the green chat by itself, no chat bubble appears on top of the player's head, so it's only the default chat that causes the chat bubble.
Chat Function:
Code:
c.getPlayer().getMap().broadcastMessage(MaplePacketCreator.getChatText(c.getPlayer().getId(), text, c.getPlayer().getGMChat(), slea.readByte()));
Packet:
Code:
public static MaplePacket getChatText(int cidfrom, String text, boolean whiteBG, int show) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter(); mplew.writeShort(SendPacketOpcode.CHATTEXT.getValue());
mplew.writeInt(cidfrom);
mplew.write(whiteBG ? 1 : 0);
mplew.writeMapleAsciiString(text);
mplew.write(show);
return mplew.getPacket();
}
Any ideas on how to remove the white chat (Default chat in message box)? Thanks in advance!