Packet Struct Notation
Packet Struct Notation
The first line contains a brief description of what the packet does,
or what it is good for, followed by it's AEGIS name in parentheses;
first two letters of the AEGIS name specify origin (first letter)
and destination (second letter) of the packet. If the packet's name
is not known or is not applicable (rAthena server-server packets),
specify at least these two letters to indicate the direction of the
packet. Do not use S(end)/R(ecv) for this, as it is inaccurate and
location dependent (if the description is copied to different server
or other RO-related projects, it might change it's meaning).
Further lines are optional and either include details about the
the packet's mechanics or further explanation on the packet fields'
values.
B = 1 byte (byte)
W = 2 bytes (word)
L = 4 bytes (long, dword)
F = 4 bytes (float)
Q = 8 bytes (quad)
nB = n bytes
?B = variable/unknown amount of bytes
nS = n bytes, zero-terminated
?S = variable/unknown amount of bytes, zero-terminated
{} = repeated block
{}* = variable/unknown amount of consecutive blocks
{}*n = n times repeated block
[] = optional fields
A = Account (Login)
C = Client
H = Character
I = Inter
S = Server (any type of server)
Z = Zone (Map)
= Examples =