Message 0x5A
Private chat
| Type | Description | Offset in packet |
| uint32_t | packet type | 0 |
| uint16_t | subtype | 4 |
| uint16_t | error | 6 |
| uint16_t | user 1 id | 8 |
| uint16_t | user 2 id | 10 |
| VentriloNetString | It is only appended on subtype 2 | 12 |
User 1 and user 2 are reversed depending on the direction of the packet. When sending a packet out, user 1 is the destination user and user 2 is the source. When receiving, it is reversed.
Subtypes:
| ID | Purpose |
| 0 | Start private chat |
| 1 | Leave private chat |
| 2 | Chat message (this will append a VentriloNetString to the end of the packet) |
| 3 | Chat window has focus (user is not away) |
| 4 | Chat window lost focus (user is away) |
local user: 757 0xF502 remote user: 732 0xDC02 Local start Private Chat: 1262908284 ### CLIENT ### 5a 00 00 00 00 00 00 00 dc 02 f5 02 Z........... 1262908284 ### SERVER ### 5a 00 00 00 00 00 00 00 dc 02 f5 02 Z........... 1262908285 ### CLIENT ### 5a 00 00 00 03 00 00 00 dc 02 f5 02 Z........... 1262908285 ### SERVER ### 5a 00 00 00 03 00 00 00 f5 02 dc 02 Z........... Local end private chat: 1262908520 ### CLIENT ### 5a 00 00 00 01 00 00 00 dc 02 f5 02 Z........... User goes away: 1262908741 ### SERVER ### 5a 00 00 00 04 00 00 00 f5 02 dc 02 Z........... User no longer away: 1262908427 ### SERVER ### 5a 00 00 00 03 00 00 00 f5 02 dc 02 Z........... Message sent to server: 1262908389 ### CLIENT ### 5a 00 00 00 02 00 00 00 dc 02 f5 02 00 04 74 65 Z.............te 73 74 st 1262908389 ### SERVER ### 5a 00 00 00 02 00 00 00 dc 02 f5 02 00 04 74 65 Z.............te 73 74 st Message received from server: 1262908430 ### SERVER ### 5a 00 00 00 02 00 00 00 f5 02 dc 02 00 09 73 6f Z.............so 6d 65 74 68 69 6e 67 mething Remote user starts private chat: 1262908565 ### SERVER ### 5a 00 00 00 00 00 00 00 f5 02 dc 02 Z........... 1262908565 ### CLIENT ### 5a 00 00 00 03 00 00 00 dc 02 f5 02 Z........... 1262908565 ### SERVER ### 5a 00 00 00 03 00 00 00 f5 02 dc 02 Z........... Remote user ends private chat: 1262908598 ### SERVER ### 5a 00 00 00 01 00 00 00 f5 02 dc 02 Z...........
