Packet+1004

Use:
This packet is used to send messages to other players and to instruct the client on what errors to display on login. The server uses this packet by routing it to it's destination (the other player).

Patch 4274:
From Length ||=  ||= byte ||=   ||= To Length ||=   ||=   || From Length + To Length ||=  ||= byte ||=   ||= Message Length ||=   ||=   ||
 * ~ Offset ||~  ||~ Type ||~   ||~ Dec Value ||~   ||~ Hex Value ||
 * = 0 ||=  ||= ushort ||=   ||= 24 + Str Lengths ||=   ||= 18 + Str Lengths ||
 * = 2 ||=  ||= ushort ||=   ||= 1004 ||=   ||= 3EC ||
 * = 4 ||=  ||= int ||=   ||= Color ARGB ||=   ||=   ||
 * = 8 ||=  ||= ushort ||=   ||= Tone ||=   ||=   ||
 * = 10 ||=  ||= ushort ||=   ||= Style ||=   ||=   ||
 * = 12 ||=  ||= uint ||=   ||= Identity ||=   ||=   ||
 * = 16 ||=  ||= byte ||=   ||= Str Amount (4) ||=   ||= Str Amount (4) ||
 * = 17 ||=  ||= byte ||=   ||= From Length ||=   ||=   ||
 * =  ||=   ||= string ||=   ||= From ||=   ||=   ||
 * = 18 +
 * =  ||=   ||= string ||=   ||= To ||=   ||=   ||
 * = 20 +
 * =  ||=   ||= string ||=   ||= Message ||=   ||=   ||

Notes:
The packet is used in login as well. More information about logging into the client can be found in the "Features" section.