Book Header ( New ) (0xD4)
- Status:
implemented - Direction:
Both - Length:
Variable - POL reference: https://docs.polserver.com/packets/index.php?Packet=0xD4
- Last modified in POL docs:
2010-01-12 03:33:07byTomi
Moongate Packet Classes
BookHeaderNewPacket(Incoming, Variable, length-1) fromsrc/Moongate.Network.Packets/Incoming/Books/BookHeaderNewPacket.cs
Current Moongate Behavior
Moongate currently has packet classes for this opcode.
Packet Build
| Type | Field |
|---|---|
BYTE[1] |
cmd |
BYTE[2] |
length |
BYTE[4] |
book ID |
BYTE[1] |
flag1 |
BYTE[1] |
flag2 ( writable ? ) |
BYTE[2] |
number of pages |
BYTE[2] |
length of author (0 terminator included) |
BYTE[?][2] author (Unicode, 0 terminated)
| Type | Field |
|---|---|
BYTE[2] |
length of title (0 terminator included) |
BYTE[?][2] title (Unicode, 0 terminated)
Subcommand Build
N/A
Notes
Packet sent from server when opening a book: opening book writeable: flag1+flag2 both 1 (opening readonly book: flag1+flag2 0, unverified though)
client side: flag1+flag2 both 0, number of pages 0.
Example: :
Opening books goes like this:
- open book -> server sends 0xd4(title + author)
server sends 0x66 with all book data "beyond" title + author
if title + author changed: client side 0xd4 send
if other book pages changed: 0x66 client side send.