
Originally Posted by
scoping king
Is this in client or server side?
Sorry, just saw the title says 474. It's probably a bit different but in standard 317 it sends a regular game message from the server like this:
Code:
public void sendMessage(String message) {
GamePacketBuilder bldr = new GamePacketBuilder(253, Type.VARIABLE);
bldr.putRS2String(message);
getPlayer().write(bldr.toPacket());
}
And then the client reads it...
Code:
case 253:
String message = inByteBuffer.getString();
pushMessage(message, 0, "");
pktType = -1;
return true;
As you can see, it calls pushMessage with the chatType 0. This represents game messages and will cause all messages with this type to go in the game tab. Clan messages have their own type and work the same way.