Welcome to PenUltima Online. Click to login or register.
Downloadable Version (2021-10-20)

Description

Packet Name: Book Header ( New )
Last Modified: 2010-01-12 03:33:07
Modified By: Tomi


Packet: 0xD4
Sent By: Both
Size: Variable


Packet Build
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)
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.

Packets