RS2:317:Client:Public chat

From RuneWiki
Public chat
Player sent a public chat message
Opcode 4
Type Variable Byte
Length N/A

Public chat

The chat message is sent as-is from the server to other players via update mask 0x80. The server does not need to understand it as regular text.

Format

Type Transformation Purpose
Byte Subtract Chat effect
Byte Subtract Chat color
Bytes Add Encoded chat message

You have to transform each byte while reading the encoded chat message and then reverse the resulting array.