> For the complete documentation index, see [llms.txt](https://srodevs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://srodevs.gitbook.io/docs/packets/agent/agent_chat_update.md).

# AGENT\_CHAT\_UPDATE

* Opcode `0x3026`&#x20;
* Direction `S > C`

```csharp
1   byte    ChatType
if( ChatType == ChatType.All ||
    ChatType == ChatType.AllGM ||
    ChatType == ChatType.NPC )
{
    4   uint    Message.Sender.UID
}
else if( ChatType == ChatType.Private ||
         ChatType == ChatType.Party ||
         ChatType == ChatType.Guild ||
         ChatType == ChatType.Global ||
         ChatType == ChatType.Stall ||
         ChatType == ChatType.Union ||
         ChatType == ChatType.Academy )        
{
    2   ushort  Message.Sender.Name.Length
    *   string  Message.Sender.Name
}
2   ushort  Message.Length
*   string  Message
```

***

{% hint style="info" %}
See also:

* [ChatType](/docs/packets/agent/agent_chat_req.md#chattype)
  {% endhint %}
