eolib.protocol.net.client

EO network client packet data structures.

class AccountAgreeClientPacket[source]

Bases: Packet

Change password

__init__(*, username, old_password, new_password)[source]

Create a new instance of AccountAgreeClientPacket.

Parameters:
  • username (str)

  • old_password (str)

  • new_password (str)

property byte_size: int

The size of the data that this was deserialized from.

property username: str

The username field.

property old_password: str

The old_password field.

property new_password: str

The new_password field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of AccountAgreeClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) AccountAgreeClientPacket[source]

Deserializes an instance of AccountAgreeClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class AccountCreateClientPacket[source]

Bases: Packet

Confirm creating an account

__init__(*, session_id, username, password, full_name, location, email, computer, hdid)[source]

Create a new instance of AccountCreateClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-64008.)

  • username (str)

  • password (str)

  • full_name (str)

  • location (str)

  • email (str)

  • computer (str)

  • hdid (str)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property username: str

The username field.

property password: str

The password field.

property full_name: str

The full_name field.

property location: str

The location field.

property email: str

The email field.

property computer: str

The computer field.

property hdid: str

The hdid field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of AccountCreateClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) AccountCreateClientPacket[source]

Deserializes an instance of AccountCreateClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class AccountRequestClientPacket[source]

Bases: Packet

Request creating an account

__init__(*, username)[source]

Create a new instance of AccountRequestClientPacket.

Parameters:

username (str)

property byte_size: int

The size of the data that this was deserialized from.

property username: str

The username field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of AccountRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) AccountRequestClientPacket[source]

Deserializes an instance of AccountRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class AdminInteractReportClientPacket[source]

Bases: Packet

Report character

__init__(*, reportee, message)[source]

Create a new instance of AdminInteractReportClientPacket.

Parameters:
  • reportee (str)

  • message (str)

property byte_size: int

The size of the data that this was deserialized from.

property reportee: str

The reportee field.

property message: str

The message field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of AdminInteractReportClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) AdminInteractReportClientPacket[source]

Deserializes an instance of AdminInteractReportClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class AdminInteractTellClientPacket[source]

Bases: Packet

Talk to admin

__init__(*, message)[source]

Create a new instance of AdminInteractTellClientPacket.

Parameters:

message (str)

property byte_size: int

The size of the data that this was deserialized from.

property message: str

The message field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of AdminInteractTellClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) AdminInteractTellClientPacket[source]

Deserializes an instance of AdminInteractTellClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class AttackUseClientPacket[source]

Bases: Packet

Attacking

__init__(*, direction, timestamp)[source]

Create a new instance of AttackUseClientPacket.

Parameters:
  • direction (Direction)

  • timestamp (int) – (Value range is 0-16194276.)

property byte_size: int

The size of the data that this was deserialized from.

property direction: Direction

The direction field.

property timestamp: int

The timestamp field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of AttackUseClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) AttackUseClientPacket[source]

Deserializes an instance of AttackUseClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class BankAddClientPacket[source]

Bases: Packet

Depositing gold

__init__(*, amount, session_id)[source]

Create a new instance of BankAddClientPacket.

Parameters:
  • amount (int) – (Value range is 0-4097152080.)

  • session_id (int) – (Value range is 0-16194276.)

property byte_size: int

The size of the data that this was deserialized from.

property amount: int

The amount field.

property session_id: int

The session_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of BankAddClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) BankAddClientPacket[source]

Deserializes an instance of BankAddClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class BankOpenClientPacket[source]

Bases: Packet

Talked to a banker NPC

__init__(*, npc_index)[source]

Create a new instance of BankOpenClientPacket.

Parameters:

npc_index (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property npc_index: int

The npc_index field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of BankOpenClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) BankOpenClientPacket[source]

Deserializes an instance of BankOpenClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class BankTakeClientPacket[source]

Bases: Packet

Withdrawing gold

__init__(*, amount, session_id)[source]

Create a new instance of BankTakeClientPacket.

Parameters:
  • amount (int) – (Value range is 0-4097152080.)

  • session_id (int) – (Value range is 0-16194276.)

property byte_size: int

The size of the data that this was deserialized from.

property amount: int

The amount field.

property session_id: int

The session_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of BankTakeClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) BankTakeClientPacket[source]

Deserializes an instance of BankTakeClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class BarberBuyClientPacket[source]

Bases: Packet

Purchasing a hair-style

__init__(*, hair_style, hair_color, session_id)[source]

Create a new instance of BarberBuyClientPacket.

Parameters:
  • hair_style (int) – (Value range is 0-252.)

  • hair_color (int) – (Value range is 0-252.)

  • session_id (int) – (Value range is 0-4097152080.)

property byte_size: int

The size of the data that this was deserialized from.

property hair_style: int

The hair_style field.

property hair_color: int

The hair_color field.

property session_id: int

The session_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of BarberBuyClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) BarberBuyClientPacket[source]

Deserializes an instance of BarberBuyClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class BarberOpenClientPacket[source]

Bases: Packet

Talking to a barber NPC

__init__(*, npc_index)[source]

Create a new instance of BarberOpenClientPacket.

Parameters:

npc_index (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property npc_index: int

The npc_index field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of BarberOpenClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) BarberOpenClientPacket[source]

Deserializes an instance of BarberOpenClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class BoardCreateClientPacket[source]

Bases: Packet

Posting a new message to a town board

__init__(*, board_id, post_subject, post_body)[source]

Create a new instance of BoardCreateClientPacket.

Parameters:
  • board_id (int) – (Value range is 0-64008.)

  • post_subject (str)

  • post_body (str)

property byte_size: int

The size of the data that this was deserialized from.

property board_id: int

The board_id field.

property post_subject: str

The post_subject field.

property post_body: str

The post_body field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of BoardCreateClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) BoardCreateClientPacket[source]

Deserializes an instance of BoardCreateClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class BoardOpenClientPacket[source]

Bases: Packet

Opening a town board

__init__(*, board_id)[source]

Create a new instance of BoardOpenClientPacket.

Parameters:

board_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property board_id: int

The board_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of BoardOpenClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) BoardOpenClientPacket[source]

Deserializes an instance of BoardOpenClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class BoardRemoveClientPacket[source]

Bases: Packet

Removing a post from a town board

__init__(*, board_id, post_id)[source]

Create a new instance of BoardRemoveClientPacket.

Parameters:
  • board_id (int) – (Value range is 0-64008.)

  • post_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property board_id: int

The board_id field.

property post_id: int

The post_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of BoardRemoveClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) BoardRemoveClientPacket[source]

Deserializes an instance of BoardRemoveClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class BoardTakeClientPacket[source]

Bases: Packet

Reading a post on a town board

__init__(*, board_id, post_id)[source]

Create a new instance of BoardTakeClientPacket.

Parameters:
  • board_id (int) – (Value range is 0-64008.)

  • post_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property board_id: int

The board_id field.

property post_id: int

The post_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of BoardTakeClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) BoardTakeClientPacket[source]

Deserializes an instance of BoardTakeClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class BookRequestClientPacket[source]

Bases: Packet

Request for a player’s book

__init__(*, player_id)[source]

Create a new instance of BookRequestClientPacket.

Parameters:

player_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property player_id: int

The player_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of BookRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) BookRequestClientPacket[source]

Deserializes an instance of BookRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class ByteCoords[source]

Bases: object

Map coordinates with raw 1-byte values

__init__(*, x, y)[source]

Create a new instance of ByteCoords.

Parameters:
  • x (int) – (Value range is 0-255.)

  • y (int) – (Value range is 0-255.)

property byte_size: int

The size of the data that this was deserialized from.

property x: int

The x field.

property y: int

The y field.

static serialize(writer, data) None[source]

Serializes an instance of ByteCoords to the provided EoWriter.

Parameters:
  • writer (EoWriter) – The writer that the data will be serialized to.

  • data (ByteCoords) – The data to serialize.

static deserialize(reader) ByteCoords[source]

Deserializes an instance of ByteCoords from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class ChairRequestClientPacket[source]

Bases: Packet

Sitting on a chair

__init__(*, sit_action, sit_action_data=None)[source]

Create a new instance of ChairRequestClientPacket.

Parameters:
property byte_size: int

The size of the data that this was deserialized from.

property sit_action: SitAction

The sit_action field.

property sit_action_data: SitActionDataSit | None

Data associated with the sit_action field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of ChairRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) ChairRequestClientPacket[source]

Deserializes an instance of ChairRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

SitActionData

Data associated with different values of the sit_action field.

alias of ChairRequestClientPacket.SitActionDataSit | None

class SitActionDataSit[source]

Bases: object

Data associated with sit_action value SitAction.Sit

__init__(*, coords)[source]

Create a new instance of ChairRequestClientPacket.SitActionDataSit.

Parameters:

coords (Coords)

property byte_size: int

The size of the data that this was deserialized from.

property coords: Coords

The coords field.

static serialize(writer, data) None[source]

Serializes an instance of ChairRequestClientPacket.SitActionDataSit to the provided EoWriter.

Parameters:
  • writer (EoWriter) – The writer that the data will be serialized to.

  • data (SitActionDataSit) – The data to serialize.

static deserialize(reader) SitActionDataSit[source]

Deserializes an instance of ChairRequestClientPacket.SitActionDataSit from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class CharacterCreateClientPacket[source]

Bases: Packet

Confirm creating a character

__init__(*, session_id, gender, hair_style, hair_color, skin, name)[source]

Create a new instance of CharacterCreateClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-64008.)

  • gender (Gender)

  • hair_style (int) – (Value range is 0-64008.)

  • hair_color (int) – (Value range is 0-64008.)

  • skin (int) – (Value range is 0-64008.)

  • name (str)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property gender: Gender

The gender field.

property hair_style: int

The hair_style field.

property hair_color: int

The hair_color field.

property skin: int

The skin field.

property name: str

The name field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of CharacterCreateClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) CharacterCreateClientPacket[source]

Deserializes an instance of CharacterCreateClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class CharacterRemoveClientPacket[source]

Bases: Packet

Confirm deleting character from an account

__init__(*, session_id, character_id)[source]

Create a new instance of CharacterRemoveClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-64008.)

  • character_id (int) – The official client sends a short, which gets written as a variable-sized integer (2-4 bytes) due to a quirk of the official encoding routine. However, the official server expects an int. (Value range is 0-4097152080.)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property character_id: int

The official client sends a short, which gets written as a variable-sized integer (2-4 bytes) due to a quirk of the official encoding routine. However, the official server expects an int.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of CharacterRemoveClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) CharacterRemoveClientPacket[source]

Deserializes an instance of CharacterRemoveClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class CharacterRequestClientPacket[source]

Bases: Packet

Request to create a character

__init__(*, request_string)[source]

Create a new instance of CharacterRequestClientPacket.

Parameters:

request_string (str)

property byte_size: int

The size of the data that this was deserialized from.

property request_string: str

The request_string field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of CharacterRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) CharacterRequestClientPacket[source]

Deserializes an instance of CharacterRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class CharacterTakeClientPacket[source]

Bases: Packet

Request to delete a character from an account

__init__(*, character_id)[source]

Create a new instance of CharacterTakeClientPacket.

Parameters:

character_id (int) – (Value range is 0-4097152080.)

property byte_size: int

The size of the data that this was deserialized from.

property character_id: int

The character_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of CharacterTakeClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) CharacterTakeClientPacket[source]

Deserializes an instance of CharacterTakeClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class ChestAddClientPacket[source]

Bases: Packet

Placing an item in to a chest

__init__(*, coords, add_item)[source]

Create a new instance of ChestAddClientPacket.

Parameters:
property byte_size: int

The size of the data that this was deserialized from.

property coords: Coords

The coords field.

property add_item: ThreeItem

The add_item field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of ChestAddClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) ChestAddClientPacket[source]

Deserializes an instance of ChestAddClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class ChestOpenClientPacket[source]

Bases: Packet

Opening a chest

__init__(*, coords)[source]

Create a new instance of ChestOpenClientPacket.

Parameters:

coords (Coords)

property byte_size: int

The size of the data that this was deserialized from.

property coords: Coords

The coords field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of ChestOpenClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) ChestOpenClientPacket[source]

Deserializes an instance of ChestOpenClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class ChestTakeClientPacket[source]

Bases: Packet

Taking an item from a chest

__init__(*, coords, take_item_id)[source]

Create a new instance of ChestTakeClientPacket.

Parameters:
  • coords (Coords)

  • take_item_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property coords: Coords

The coords field.

property take_item_id: int

The take_item_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of ChestTakeClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) ChestTakeClientPacket[source]

Deserializes an instance of ChestTakeClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class CitizenAcceptClientPacket[source]

Bases: Packet

Confirm sleeping at an inn

__init__(*, session_id, behavior_id)[source]

Create a new instance of CitizenAcceptClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-64008.)

  • behavior_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property behavior_id: int

The behavior_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of CitizenAcceptClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) CitizenAcceptClientPacket[source]

Deserializes an instance of CitizenAcceptClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class CitizenOpenClientPacket[source]

Bases: Packet

Talking to a citizenship NPC

__init__(*, npc_index)[source]

Create a new instance of CitizenOpenClientPacket.

Parameters:

npc_index (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property npc_index: int

The npc_index field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of CitizenOpenClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) CitizenOpenClientPacket[source]

Deserializes an instance of CitizenOpenClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class CitizenRemoveClientPacket[source]

Bases: Packet

Giving up citizenship of a town

__init__(*, behavior_id)[source]

Create a new instance of CitizenRemoveClientPacket.

Parameters:

behavior_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property behavior_id: int

The behavior_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of CitizenRemoveClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) CitizenRemoveClientPacket[source]

Deserializes an instance of CitizenRemoveClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class CitizenReplyClientPacket[source]

Bases: Packet

Subscribing to a town

__init__(*, session_id, behavior_id, answers)[source]

Create a new instance of CitizenReplyClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-64008.)

  • behavior_id (int) – (Value range is 0-64008.)

  • answers (Iterable[str]) – (Length must be 3.)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property behavior_id: int

The behavior_id field.

property answers: tuple[str, ...]

The answers field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of CitizenReplyClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) CitizenReplyClientPacket[source]

Deserializes an instance of CitizenReplyClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class CitizenRequestClientPacket[source]

Bases: Packet

Request sleeping at an inn

__init__(*, session_id, behavior_id)[source]

Create a new instance of CitizenRequestClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-64008.)

  • behavior_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property behavior_id: int

The behavior_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of CitizenRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) CitizenRequestClientPacket[source]

Deserializes an instance of CitizenRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class ConnectionAcceptClientPacket[source]

Bases: Packet

Confirm initialization data

__init__(*, client_encryption_multiple, server_encryption_multiple, player_id)[source]

Create a new instance of ConnectionAcceptClientPacket.

Parameters:
  • client_encryption_multiple (int) – (Value range is 0-64008.)

  • server_encryption_multiple (int) – (Value range is 0-64008.)

  • player_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property client_encryption_multiple: int

The client_encryption_multiple field.

property server_encryption_multiple: int

The server_encryption_multiple field.

property player_id: int

The player_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of ConnectionAcceptClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) ConnectionAcceptClientPacket[source]

Deserializes an instance of ConnectionAcceptClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class ConnectionPingClientPacket[source]

Bases: Packet

Ping reply

__init__()[source]

Create a new instance of ConnectionPingClientPacket.

property byte_size: int

The size of the data that this was deserialized from.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of ConnectionPingClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) ConnectionPingClientPacket[source]

Deserializes an instance of ConnectionPingClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class DialogReply[source]

Bases: IntEnum

Whether the player has clicked the OK button or a link in a quest dialog

Ok = 1
class DoorOpenClientPacket[source]

Bases: Packet

Opening a door

__init__(*, coords)[source]

Create a new instance of DoorOpenClientPacket.

Parameters:

coords (Coords)

property byte_size: int

The size of the data that this was deserialized from.

property coords: Coords

The coords field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of DoorOpenClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) DoorOpenClientPacket[source]

Deserializes an instance of DoorOpenClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class EmoteReportClientPacket[source]

Bases: Packet

Doing an emote

__init__(*, emote)[source]

Create a new instance of EmoteReportClientPacket.

Parameters:

emote (Emote)

property byte_size: int

The size of the data that this was deserialized from.

property emote: Emote

The emote field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of EmoteReportClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) EmoteReportClientPacket[source]

Deserializes an instance of EmoteReportClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class FacePlayerClientPacket[source]

Bases: Packet

Facing a direction

__init__(*, direction)[source]

Create a new instance of FacePlayerClientPacket.

Parameters:

direction (Direction)

property byte_size: int

The size of the data that this was deserialized from.

property direction: Direction

The direction field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of FacePlayerClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) FacePlayerClientPacket[source]

Deserializes an instance of FacePlayerClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class FileType[source]

Bases: IntEnum

Data file type

Emf = 1
Eif = 2
Enf = 3
Esf = 4
Ecf = 5
class GlobalCloseClientPacket[source]

Bases: Packet

Closed global tab

__init__()[source]

Create a new instance of GlobalCloseClientPacket.

property byte_size: int

The size of the data that this was deserialized from.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GlobalCloseClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GlobalCloseClientPacket[source]

Deserializes an instance of GlobalCloseClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GlobalOpenClientPacket[source]

Bases: Packet

Opened global tab

__init__()[source]

Create a new instance of GlobalOpenClientPacket.

property byte_size: int

The size of the data that this was deserialized from.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GlobalOpenClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GlobalOpenClientPacket[source]

Deserializes an instance of GlobalOpenClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GlobalPlayerClientPacket[source]

Bases: Packet

Disable whispers

__init__()[source]

Create a new instance of GlobalPlayerClientPacket.

property byte_size: int

The size of the data that this was deserialized from.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GlobalPlayerClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GlobalPlayerClientPacket[source]

Deserializes an instance of GlobalPlayerClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GlobalRemoveClientPacket[source]

Bases: Packet

Enable whispers

__init__()[source]

Create a new instance of GlobalRemoveClientPacket.

property byte_size: int

The size of the data that this was deserialized from.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GlobalRemoveClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GlobalRemoveClientPacket[source]

Deserializes an instance of GlobalRemoveClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GuildAcceptClientPacket[source]

Bases: Packet

Accept pending guild creation invite

__init__(*, inviter_player_id)[source]

Create a new instance of GuildAcceptClientPacket.

Parameters:

inviter_player_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property inviter_player_id: int

The inviter_player_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GuildAcceptClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GuildAcceptClientPacket[source]

Deserializes an instance of GuildAcceptClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GuildAgreeClientPacket[source]

Bases: Packet

Update the guild description or rank list

__init__(*, session_id, info_type, info_type_data=None)[source]

Create a new instance of GuildAgreeClientPacket.

Parameters:
property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property info_type: GuildInfoType

The info_type field.

property info_type_data: InfoTypeDataDescription | InfoTypeDataRanks | None

Data associated with the info_type field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GuildAgreeClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GuildAgreeClientPacket[source]

Deserializes an instance of GuildAgreeClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

InfoTypeData

Data associated with different values of the info_type field.

alias of GuildAgreeClientPacket.InfoTypeDataDescription | GuildAgreeClientPacket.InfoTypeDataRanks | None

class InfoTypeDataDescription[source]

Bases: object

Data associated with info_type value GuildInfoType.Description

__init__(*, description)[source]

Create a new instance of GuildAgreeClientPacket.InfoTypeDataDescription.

Parameters:

description (str)

property byte_size: int

The size of the data that this was deserialized from.

property description: str

The description field.

static serialize(writer, data) None[source]

Serializes an instance of GuildAgreeClientPacket.InfoTypeDataDescription to the provided EoWriter.

Parameters:
static deserialize(reader) InfoTypeDataDescription[source]

Deserializes an instance of GuildAgreeClientPacket.InfoTypeDataDescription from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class InfoTypeDataRanks[source]

Bases: object

Data associated with info_type value GuildInfoType.Ranks

__init__(*, ranks)[source]

Create a new instance of GuildAgreeClientPacket.InfoTypeDataRanks.

Parameters:

ranks (Iterable[str]) – (Length must be 9.)

property byte_size: int

The size of the data that this was deserialized from.

property ranks: tuple[str, ...]

The ranks field.

static serialize(writer, data) None[source]

Serializes an instance of GuildAgreeClientPacket.InfoTypeDataRanks to the provided EoWriter.

Parameters:
static deserialize(reader) InfoTypeDataRanks[source]

Deserializes an instance of GuildAgreeClientPacket.InfoTypeDataRanks from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GuildBuyClientPacket[source]

Bases: Packet

Deposit gold in to the guild bank

__init__(*, session_id, gold_amount)[source]

Create a new instance of GuildBuyClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-4097152080.)

  • gold_amount (int) – (Value range is 0-4097152080.)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property gold_amount: int

The gold_amount field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GuildBuyClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GuildBuyClientPacket[source]

Deserializes an instance of GuildBuyClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GuildCreateClientPacket[source]

Bases: Packet

Final confirm creating a guild

__init__(*, session_id, guild_tag, guild_name, description)[source]

Create a new instance of GuildCreateClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-4097152080.)

  • guild_tag (str)

  • guild_name (str)

  • description (str)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property guild_tag: str

The guild_tag field.

property guild_name: str

The guild_name field.

property description: str

The description field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GuildCreateClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GuildCreateClientPacket[source]

Deserializes an instance of GuildCreateClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GuildInfoType[source]

Bases: IntEnum

The type of guild info being interacted with

Description = 1
Ranks = 2
Bank = 3
class GuildJunkClientPacket[source]

Bases: Packet

Disband guild

__init__(*, session_id)[source]

Create a new instance of GuildJunkClientPacket.

Parameters:

session_id (int) – (Value range is 0-4097152080.)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GuildJunkClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GuildJunkClientPacket[source]

Deserializes an instance of GuildJunkClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GuildKickClientPacket[source]

Bases: Packet

Kick member from guild

__init__(*, session_id, member_name)[source]

Create a new instance of GuildKickClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-4097152080.)

  • member_name (str)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property member_name: str

The member_name field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GuildKickClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GuildKickClientPacket[source]

Deserializes an instance of GuildKickClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GuildOpenClientPacket[source]

Bases: Packet

Talking to a guild master NPC

__init__(*, npc_index)[source]

Create a new instance of GuildOpenClientPacket.

Parameters:

npc_index (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property npc_index: int

The npc_index field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GuildOpenClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GuildOpenClientPacket[source]

Deserializes an instance of GuildOpenClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GuildPlayerClientPacket[source]

Bases: Packet

Request to join a guild

__init__(*, session_id, guild_tag, recruiter_name)[source]

Create a new instance of GuildPlayerClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-4097152080.)

  • guild_tag (str)

  • recruiter_name (str)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property guild_tag: str

The guild_tag field.

property recruiter_name: str

The recruiter_name field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GuildPlayerClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GuildPlayerClientPacket[source]

Deserializes an instance of GuildPlayerClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GuildRankClientPacket[source]

Bases: Packet

Update a member’s rank

__init__(*, session_id, rank, member_name)[source]

Create a new instance of GuildRankClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-4097152080.)

  • rank (int) – (Value range is 0-252.)

  • member_name (str)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property rank: int

The rank field.

property member_name: str

The member_name field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GuildRankClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GuildRankClientPacket[source]

Deserializes an instance of GuildRankClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GuildRemoveClientPacket[source]

Bases: Packet

Leave guild

__init__(*, session_id)[source]

Create a new instance of GuildRemoveClientPacket.

Parameters:

session_id (int) – (Value range is 0-4097152080.)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GuildRemoveClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GuildRemoveClientPacket[source]

Deserializes an instance of GuildRemoveClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GuildReportClientPacket[source]

Bases: Packet

Requested general information of a guild

__init__(*, session_id, guild_identity)[source]

Create a new instance of GuildReportClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-4097152080.)

  • guild_identity (str)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property guild_identity: str

The guild_identity field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GuildReportClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GuildReportClientPacket[source]

Deserializes an instance of GuildReportClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GuildRequestClientPacket[source]

Bases: Packet

Requested to create a guild

__init__(*, session_id, guild_tag, guild_name)[source]

Create a new instance of GuildRequestClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-4097152080.)

  • guild_tag (str)

  • guild_name (str)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property guild_tag: str

The guild_tag field.

property guild_name: str

The guild_name field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GuildRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GuildRequestClientPacket[source]

Deserializes an instance of GuildRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GuildTakeClientPacket[source]

Bases: Packet

Request guild description, rank list, or bank balance

__init__(*, session_id, info_type, guild_tag)[source]

Create a new instance of GuildTakeClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-4097152080.)

  • info_type (GuildInfoType)

  • guild_tag (str) – (Length must be 3.)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property info_type: GuildInfoType

The info_type field.

property guild_tag: str

The guild_tag field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GuildTakeClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GuildTakeClientPacket[source]

Deserializes an instance of GuildTakeClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GuildTellClientPacket[source]

Bases: Packet

Requested member list of a guild

__init__(*, session_id, guild_identity)[source]

Create a new instance of GuildTellClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-4097152080.)

  • guild_identity (str)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property guild_identity: str

The guild_identity field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GuildTellClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GuildTellClientPacket[source]

Deserializes an instance of GuildTellClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class GuildUseClientPacket[source]

Bases: Packet

Accepted a join request

__init__(*, player_id)[source]

Create a new instance of GuildUseClientPacket.

Parameters:

player_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property player_id: int

The player_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of GuildUseClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) GuildUseClientPacket[source]

Deserializes an instance of GuildUseClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class InitInitClientPacket[source]

Bases: Packet

Connection initialization request. This packet is unencrypted.

__init__(*, challenge, version, hdid)[source]

Create a new instance of InitInitClientPacket.

Parameters:
  • challenge (int) – (Value range is 0-16194276.)

  • version (Version)

  • hdid (str) – (Length must be 252 or less.)

property byte_size: int

The size of the data that this was deserialized from.

property challenge: int

The challenge field.

property version: Version

The version field.

property hdid: str

The hdid field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of InitInitClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) InitInitClientPacket[source]

Deserializes an instance of InitInitClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class ItemDropClientPacket[source]

Bases: Packet

Dropping items on the ground

__init__(*, item, coords)[source]

Create a new instance of ItemDropClientPacket.

Parameters:
  • item (ThreeItem)

  • coords (ByteCoords) – The official client sends 255 byte values for the coords if an item is dropped via the GUI button. 255 values here should be interpreted to mean “drop at current coords”. Otherwise, the x and y fields contain encoded numbers that must be explicitly decoded to get the actual x and y values.

property byte_size: int

The size of the data that this was deserialized from.

property item: ThreeItem

The item field.

property coords: ByteCoords

The official client sends 255 byte values for the coords if an item is dropped via the GUI button. 255 values here should be interpreted to mean “drop at current coords”. Otherwise, the x and y fields contain encoded numbers that must be explicitly decoded to get the actual x and y values.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of ItemDropClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) ItemDropClientPacket[source]

Deserializes an instance of ItemDropClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class ItemGetClientPacket[source]

Bases: Packet

Taking items from the ground

__init__(*, item_index)[source]

Create a new instance of ItemGetClientPacket.

Parameters:

item_index (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property item_index: int

The item_index field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of ItemGetClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) ItemGetClientPacket[source]

Deserializes an instance of ItemGetClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class ItemJunkClientPacket[source]

Bases: Packet

Junking items

__init__(*, item)[source]

Create a new instance of ItemJunkClientPacket.

Parameters:

item (Item)

property byte_size: int

The size of the data that this was deserialized from.

property item: Item

The item field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of ItemJunkClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) ItemJunkClientPacket[source]

Deserializes an instance of ItemJunkClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class ItemUseClientPacket[source]

Bases: Packet

Using an item

__init__(*, item_id)[source]

Create a new instance of ItemUseClientPacket.

Parameters:

item_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property item_id: int

The item_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of ItemUseClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) ItemUseClientPacket[source]

Deserializes an instance of ItemUseClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class JukeboxMsgClientPacket[source]

Bases: Packet

Requesting a song on a jukebox

__init__(*, track_id)[source]

Create a new instance of JukeboxMsgClientPacket.

Parameters:

track_id (int) – This value is 0-indexed (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property track_id: int

This value is 0-indexed

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of JukeboxMsgClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) JukeboxMsgClientPacket[source]

Deserializes an instance of JukeboxMsgClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class JukeboxOpenClientPacket[source]

Bases: Packet

Opening the jukebox listing

__init__(*, coords)[source]

Create a new instance of JukeboxOpenClientPacket.

Parameters:

coords (Coords)

property byte_size: int

The size of the data that this was deserialized from.

property coords: Coords

The coords field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of JukeboxOpenClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) JukeboxOpenClientPacket[source]

Deserializes an instance of JukeboxOpenClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class JukeboxUseClientPacket[source]

Bases: Packet

Playing a note with the bard skill

__init__(*, instrument_id, note_id)[source]

Create a new instance of JukeboxUseClientPacket.

Parameters:
  • instrument_id (int) – (Value range is 0-252.)

  • note_id (int) – (Value range is 0-252.)

property byte_size: int

The size of the data that this was deserialized from.

property instrument_id: int

The instrument_id field.

property note_id: int

The note_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of JukeboxUseClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) JukeboxUseClientPacket[source]

Deserializes an instance of JukeboxUseClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class LockerAddClientPacket[source]

Bases: Packet

Adding an item to a bank locker

__init__(*, locker_coords, deposit_item)[source]

Create a new instance of LockerAddClientPacket.

Parameters:
property byte_size: int

The size of the data that this was deserialized from.

property locker_coords: Coords

The locker_coords field.

property deposit_item: ThreeItem

The deposit_item field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of LockerAddClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) LockerAddClientPacket[source]

Deserializes an instance of LockerAddClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class LockerBuyClientPacket[source]

Bases: Packet

Buying a locker space upgrade from a banker NPC

__init__()[source]

Create a new instance of LockerBuyClientPacket.

property byte_size: int

The size of the data that this was deserialized from.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of LockerBuyClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) LockerBuyClientPacket[source]

Deserializes an instance of LockerBuyClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class LockerOpenClientPacket[source]

Bases: Packet

Opening a bank locker

__init__(*, locker_coords)[source]

Create a new instance of LockerOpenClientPacket.

Parameters:

locker_coords (Coords)

property byte_size: int

The size of the data that this was deserialized from.

property locker_coords: Coords

The locker_coords field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of LockerOpenClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) LockerOpenClientPacket[source]

Deserializes an instance of LockerOpenClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class LockerTakeClientPacket[source]

Bases: Packet

Taking an item from a bank locker

__init__(*, locker_coords, take_item_id)[source]

Create a new instance of LockerTakeClientPacket.

Parameters:
  • locker_coords (Coords)

  • take_item_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property locker_coords: Coords

The locker_coords field.

property take_item_id: int

The take_item_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of LockerTakeClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) LockerTakeClientPacket[source]

Deserializes an instance of LockerTakeClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class LoginRequestClientPacket[source]

Bases: Packet

Login request

__init__(*, username, password)[source]

Create a new instance of LoginRequestClientPacket.

Parameters:
  • username (str)

  • password (str)

property byte_size: int

The size of the data that this was deserialized from.

property username: str

The username field.

property password: str

The password field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of LoginRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) LoginRequestClientPacket[source]

Deserializes an instance of LoginRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class MarriageOpenClientPacket[source]

Bases: Packet

Talking to a law NPC

__init__(*, npc_index)[source]

Create a new instance of MarriageOpenClientPacket.

Parameters:

npc_index (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property npc_index: int

The npc_index field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of MarriageOpenClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) MarriageOpenClientPacket[source]

Deserializes an instance of MarriageOpenClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class MarriageRequestClientPacket[source]

Bases: Packet

Requesting marriage approval

__init__(*, request_type, session_id, name)[source]

Create a new instance of MarriageRequestClientPacket.

Parameters:
property byte_size: int

The size of the data that this was deserialized from.

property request_type: MarriageRequestType

The request_type field.

property session_id: int

The session_id field.

property name: str

The name field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of MarriageRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) MarriageRequestClientPacket[source]

Deserializes an instance of MarriageRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class MarriageRequestType[source]

Bases: IntEnum

Request type sent with MARRIAGE_REQUEST packet

MarriageApproval = 1
Divorce = 2
class MessagePingClientPacket[source]

Bases: Packet

#ping command request

__init__()[source]

Create a new instance of MessagePingClientPacket.

property byte_size: int

The size of the data that this was deserialized from.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of MessagePingClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) MessagePingClientPacket[source]

Deserializes an instance of MessagePingClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class NpcRangeRequestClientPacket[source]

Bases: Packet

Requesting info about nearby NPCs

__init__(*, npc_indexes)[source]

Create a new instance of NpcRangeRequestClientPacket.

Parameters:

npc_indexes (Iterable[int]) – (Length must be 252 or less.) (Element value range is 0-252.)

property byte_size: int

The size of the data that this was deserialized from.

property npc_indexes: tuple[int, ...]

The npc_indexes field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of NpcRangeRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) NpcRangeRequestClientPacket[source]

Deserializes an instance of NpcRangeRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class PaperdollAddClientPacket[source]

Bases: Packet

Equipping an item

__init__(*, item_id, sub_loc)[source]

Create a new instance of PaperdollAddClientPacket.

Parameters:
  • item_id (int) – (Value range is 0-64008.)

  • sub_loc (int) – (Value range is 0-252.)

property byte_size: int

The size of the data that this was deserialized from.

property item_id: int

The item_id field.

property sub_loc: int

The sub_loc field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of PaperdollAddClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) PaperdollAddClientPacket[source]

Deserializes an instance of PaperdollAddClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class PaperdollRemoveClientPacket[source]

Bases: Packet

Unequipping an item

__init__(*, item_id, sub_loc)[source]

Create a new instance of PaperdollRemoveClientPacket.

Parameters:
  • item_id (int) – (Value range is 0-64008.)

  • sub_loc (int) – (Value range is 0-252.)

property byte_size: int

The size of the data that this was deserialized from.

property item_id: int

The item_id field.

property sub_loc: int

The sub_loc field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of PaperdollRemoveClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) PaperdollRemoveClientPacket[source]

Deserializes an instance of PaperdollRemoveClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class PaperdollRequestClientPacket[source]

Bases: Packet

Request for a player’s paperdoll

__init__(*, player_id)[source]

Create a new instance of PaperdollRequestClientPacket.

Parameters:

player_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property player_id: int

The player_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of PaperdollRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) PaperdollRequestClientPacket[source]

Deserializes an instance of PaperdollRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class PartyAcceptClientPacket[source]

Bases: Packet

Accept party invite / join request

__init__(*, request_type, inviter_player_id)[source]

Create a new instance of PartyAcceptClientPacket.

Parameters:
property byte_size: int

The size of the data that this was deserialized from.

property request_type: PartyRequestType

The request_type field.

property inviter_player_id: int

The inviter_player_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of PartyAcceptClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) PartyAcceptClientPacket[source]

Deserializes an instance of PartyAcceptClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class PartyRemoveClientPacket[source]

Bases: Packet

Remove player from a party

__init__(*, player_id)[source]

Create a new instance of PartyRemoveClientPacket.

Parameters:

player_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property player_id: int

The player_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of PartyRemoveClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) PartyRemoveClientPacket[source]

Deserializes an instance of PartyRemoveClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class PartyRequestClientPacket[source]

Bases: Packet

Send party invite / join request

__init__(*, request_type, player_id)[source]

Create a new instance of PartyRequestClientPacket.

Parameters:
property byte_size: int

The size of the data that this was deserialized from.

property request_type: PartyRequestType

The request_type field.

property player_id: int

The player_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of PartyRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) PartyRequestClientPacket[source]

Deserializes an instance of PartyRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class PartyTakeClientPacket[source]

Bases: Packet

Request updated party info

__init__(*, members_count)[source]

Create a new instance of PartyTakeClientPacket.

Parameters:

members_count (int) – (Value range is 0-252.)

property byte_size: int

The size of the data that this was deserialized from.

property members_count: int

The members_count field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of PartyTakeClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) PartyTakeClientPacket[source]

Deserializes an instance of PartyTakeClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class PlayerRangeRequestClientPacket[source]

Bases: Packet

Requesting info about nearby players

__init__(*, player_ids)[source]

Create a new instance of PlayerRangeRequestClientPacket.

Parameters:

player_ids (Iterable[int]) – (Element value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property player_ids: tuple[int, ...]

The player_ids field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of PlayerRangeRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) PlayerRangeRequestClientPacket[source]

Deserializes an instance of PlayerRangeRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class PlayersAcceptClientPacket[source]

Bases: Packet

#find command request

__init__(*, name)[source]

Create a new instance of PlayersAcceptClientPacket.

Parameters:

name (str)

property byte_size: int

The size of the data that this was deserialized from.

property name: str

The name field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of PlayersAcceptClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) PlayersAcceptClientPacket[source]

Deserializes an instance of PlayersAcceptClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class PlayersListClientPacket[source]

Bases: Packet

Requesting a list of online friends

__init__()[source]

Create a new instance of PlayersListClientPacket.

property byte_size: int

The size of the data that this was deserialized from.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of PlayersListClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) PlayersListClientPacket[source]

Deserializes an instance of PlayersListClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class PlayersRequestClientPacket[source]

Bases: Packet

Requesting a list of online players

__init__()[source]

Create a new instance of PlayersRequestClientPacket.

property byte_size: int

The size of the data that this was deserialized from.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of PlayersRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) PlayersRequestClientPacket[source]

Deserializes an instance of PlayersRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class PriestAcceptClientPacket[source]

Bases: Packet

Accepting a marriage request

__init__(*, session_id)[source]

Create a new instance of PriestAcceptClientPacket.

Parameters:

session_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of PriestAcceptClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) PriestAcceptClientPacket[source]

Deserializes an instance of PriestAcceptClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class PriestOpenClientPacket[source]

Bases: Packet

Talking to a priest NPC

__init__(*, npc_index)[source]

Create a new instance of PriestOpenClientPacket.

Parameters:

npc_index (int) – (Value range is 0-4097152080.)

property byte_size: int

The size of the data that this was deserialized from.

property npc_index: int

The npc_index field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of PriestOpenClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) PriestOpenClientPacket[source]

Deserializes an instance of PriestOpenClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class PriestRequestClientPacket[source]

Bases: Packet

Requesting marriage at a priest

__init__(*, session_id, name)[source]

Create a new instance of PriestRequestClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-4097152080.)

  • name (str)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property name: str

The name field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of PriestRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) PriestRequestClientPacket[source]

Deserializes an instance of PriestRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class PriestUseClientPacket[source]

Bases: Packet

Saying “I do” at a wedding

__init__(*, session_id)[source]

Create a new instance of PriestUseClientPacket.

Parameters:

session_id (int) – (Value range is 0-4097152080.)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of PriestUseClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) PriestUseClientPacket[source]

Deserializes an instance of PriestUseClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class QuestAcceptClientPacket[source]

Bases: Packet

Response to a quest NPC dialog

__init__(*, session_id, dialog_id, quest_id, npc_index, reply_type, reply_type_data=None)[source]

Create a new instance of QuestAcceptClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-64008.)

  • dialog_id (int) – (Value range is 0-64008.)

  • quest_id (int) – (Value range is 0-64008.)

  • npc_index (int) – (Value range is 0-64008.)

  • reply_type (DialogReply)

  • reply_type_data (ReplyTypeDataOk | ReplyTypeDataLink | None, default: None) – Data associated with the reply_type field.

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property dialog_id: int

The dialog_id field.

property quest_id: int

The quest_id field.

property npc_index: int

The npc_index field.

property reply_type: DialogReply

The reply_type field.

property reply_type_data: ReplyTypeDataOk | ReplyTypeDataLink | None

Data associated with the reply_type field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of QuestAcceptClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) QuestAcceptClientPacket[source]

Deserializes an instance of QuestAcceptClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

ReplyTypeData

Data associated with different values of the reply_type field.

alias of QuestAcceptClientPacket.ReplyTypeDataOk | QuestAcceptClientPacket.ReplyTypeDataLink | None

class ReplyTypeDataOk[source]

Bases: object

Data associated with reply_type value DialogReply.Ok

__init__()[source]

Create a new instance of QuestAcceptClientPacket.ReplyTypeDataOk.

property byte_size: int

The size of the data that this was deserialized from.

static serialize(writer, data) None[source]

Serializes an instance of QuestAcceptClientPacket.ReplyTypeDataOk to the provided EoWriter.

Parameters:
  • writer (EoWriter) – The writer that the data will be serialized to.

  • data (ReplyTypeDataOk) – The data to serialize.

static deserialize(reader) ReplyTypeDataOk[source]

Deserializes an instance of QuestAcceptClientPacket.ReplyTypeDataOk from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

Bases: object

Data associated with reply_type value DialogReply.Link

__init__(*, action)[source]

Create a new instance of QuestAcceptClientPacket.ReplyTypeDataLink.

Parameters:

action (int) – (Value range is 0-252.)

property byte_size: int

The size of the data that this was deserialized from.

property action: int

The action field.

static serialize(writer, data) None[source]

Serializes an instance of QuestAcceptClientPacket.ReplyTypeDataLink to the provided EoWriter.

Parameters:
static deserialize(reader) ReplyTypeDataLink[source]

Deserializes an instance of QuestAcceptClientPacket.ReplyTypeDataLink from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class QuestListClientPacket[source]

Bases: Packet

Quest history / progress request

__init__(*, page)[source]

Create a new instance of QuestListClientPacket.

Parameters:

page (QuestPage)

property byte_size: int

The size of the data that this was deserialized from.

property page: QuestPage

The page field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of QuestListClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) QuestListClientPacket[source]

Deserializes an instance of QuestListClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class QuestUseClientPacket[source]

Bases: Packet

Talking to a quest NPC

__init__(*, npc_index, quest_id)[source]

Create a new instance of QuestUseClientPacket.

Parameters:
  • npc_index (int) – (Value range is 0-64008.)

  • quest_id (int) – Quest ID is 0 unless the player explicitly selects a quest from the quest switcher (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property npc_index: int

The npc_index field.

property quest_id: int

Quest ID is 0 unless the player explicitly selects a quest from the quest switcher

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of QuestUseClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) QuestUseClientPacket[source]

Deserializes an instance of QuestUseClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class RangeRequestClientPacket[source]

Bases: Packet

Requesting info about nearby players and NPCs

__init__(*, player_ids, npc_indexes)[source]

Create a new instance of RangeRequestClientPacket.

Parameters:
  • player_ids (Iterable[int]) – (Element value range is 0-64008.)

  • npc_indexes (Iterable[int]) – (Element value range is 0-252.)

property byte_size: int

The size of the data that this was deserialized from.

property player_ids: tuple[int, ...]

The player_ids field.

property npc_indexes: tuple[int, ...]

The npc_indexes field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of RangeRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) RangeRequestClientPacket[source]

Deserializes an instance of RangeRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class RefreshRequestClientPacket[source]

Bases: Packet

Requesting new info about nearby objects

__init__()[source]

Create a new instance of RefreshRequestClientPacket.

property byte_size: int

The size of the data that this was deserialized from.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of RefreshRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) RefreshRequestClientPacket[source]

Deserializes an instance of RefreshRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class ShopBuyClientPacket[source]

Bases: Packet

Purchasing an item from a shop

__init__(*, buy_item, session_id)[source]

Create a new instance of ShopBuyClientPacket.

Parameters:
  • buy_item (Item)

  • session_id (int) – (Value range is 0-4097152080.)

property byte_size: int

The size of the data that this was deserialized from.

property buy_item: Item

The buy_item field.

property session_id: int

The session_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of ShopBuyClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) ShopBuyClientPacket[source]

Deserializes an instance of ShopBuyClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class ShopCreateClientPacket[source]

Bases: Packet

Crafting an item from a shop

__init__(*, craft_item_id, session_id)[source]

Create a new instance of ShopCreateClientPacket.

Parameters:
  • craft_item_id (int) – (Value range is 0-64008.)

  • session_id (int) – (Value range is 0-4097152080.)

property byte_size: int

The size of the data that this was deserialized from.

property craft_item_id: int

The craft_item_id field.

property session_id: int

The session_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of ShopCreateClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) ShopCreateClientPacket[source]

Deserializes an instance of ShopCreateClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class ShopOpenClientPacket[source]

Bases: Packet

Talking to a shop NPC

__init__(*, npc_index)[source]

Create a new instance of ShopOpenClientPacket.

Parameters:

npc_index (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property npc_index: int

The npc_index field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of ShopOpenClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) ShopOpenClientPacket[source]

Deserializes an instance of ShopOpenClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class ShopSellClientPacket[source]

Bases: Packet

Selling an item to a shop

__init__(*, sell_item, session_id)[source]

Create a new instance of ShopSellClientPacket.

Parameters:
  • sell_item (Item)

  • session_id (int) – (Value range is 0-4097152080.)

property byte_size: int

The size of the data that this was deserialized from.

property sell_item: Item

The sell_item field.

property session_id: int

The session_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of ShopSellClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) ShopSellClientPacket[source]

Deserializes an instance of ShopSellClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class SitAction[source]

Bases: IntEnum

Whether the player wants to sit or stand

Sit = 1
Stand = 2
class SitRequestClientPacket[source]

Bases: Packet

Sit/stand request

__init__(*, sit_action, sit_action_data=None)[source]

Create a new instance of SitRequestClientPacket.

Parameters:
property byte_size: int

The size of the data that this was deserialized from.

property sit_action: SitAction

The sit_action field.

property sit_action_data: SitActionDataSit | None

Data associated with the sit_action field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of SitRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) SitRequestClientPacket[source]

Deserializes an instance of SitRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

SitActionData

Data associated with different values of the sit_action field.

alias of SitRequestClientPacket.SitActionDataSit | None

class SitActionDataSit[source]

Bases: object

Data associated with sit_action value SitAction.Sit

__init__(*, cursor_coords)[source]

Create a new instance of SitRequestClientPacket.SitActionDataSit.

Parameters:

cursor_coords (Coords) – The coordinates of the map cursor

property byte_size: int

The size of the data that this was deserialized from.

property cursor_coords: Coords

The coordinates of the map cursor

static serialize(writer, data) None[source]

Serializes an instance of SitRequestClientPacket.SitActionDataSit to the provided EoWriter.

Parameters:
  • writer (EoWriter) – The writer that the data will be serialized to.

  • data (SitActionDataSit) – The data to serialize.

static deserialize(reader) SitActionDataSit[source]

Deserializes an instance of SitRequestClientPacket.SitActionDataSit from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class SpellRequestClientPacket[source]

Bases: Packet

Begin spell chanting

__init__(*, spell_id, timestamp)[source]

Create a new instance of SpellRequestClientPacket.

Parameters:
  • spell_id (int) – (Value range is 0-64008.)

  • timestamp (int) – (Value range is 0-16194276.)

property byte_size: int

The size of the data that this was deserialized from.

property spell_id: int

The spell_id field.

property timestamp: int

The timestamp field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of SpellRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) SpellRequestClientPacket[source]

Deserializes an instance of SpellRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class SpellTargetGroupClientPacket[source]

Bases: Packet

Group spell cast

__init__(*, spell_id, timestamp)[source]

Create a new instance of SpellTargetGroupClientPacket.

Parameters:
  • spell_id (int) – (Value range is 0-64008.)

  • timestamp (int) – (Value range is 0-16194276.)

property byte_size: int

The size of the data that this was deserialized from.

property spell_id: int

The spell_id field.

property timestamp: int

The timestamp field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of SpellTargetGroupClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) SpellTargetGroupClientPacket[source]

Deserializes an instance of SpellTargetGroupClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class SpellTargetOtherClientPacket[source]

Bases: Packet

Targeted spell cast

__init__(*, target_type, previous_timestamp, spell_id, victim_id, timestamp)[source]

Create a new instance of SpellTargetOtherClientPacket.

Parameters:
  • target_type (SpellTargetType)

  • previous_timestamp (int) – (Value range is 0-16194276.)

  • spell_id (int) – (Value range is 0-64008.)

  • victim_id (int) – (Value range is 0-64008.)

  • timestamp (int) – (Value range is 0-16194276.)

property byte_size: int

The size of the data that this was deserialized from.

property target_type: SpellTargetType

The target_type field.

property previous_timestamp: int

The previous_timestamp field.

property spell_id: int

The spell_id field.

property victim_id: int

The victim_id field.

property timestamp: int

The timestamp field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of SpellTargetOtherClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) SpellTargetOtherClientPacket[source]

Deserializes an instance of SpellTargetOtherClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class SpellTargetSelfClientPacket[source]

Bases: Packet

Self-targeted spell cast

__init__(*, direction, spell_id, timestamp)[source]

Create a new instance of SpellTargetSelfClientPacket.

Parameters:
  • direction (Direction)

  • spell_id (int) – (Value range is 0-64008.)

  • timestamp (int) – (Value range is 0-16194276.)

property byte_size: int

The size of the data that this was deserialized from.

property direction: Direction

The direction field.

property spell_id: int

The spell_id field.

property timestamp: int

The timestamp field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of SpellTargetSelfClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) SpellTargetSelfClientPacket[source]

Deserializes an instance of SpellTargetSelfClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class SpellTargetType[source]

Bases: IntEnum

Target type of a spell cast

Player = 1
Npc = 2
class SpellUseClientPacket[source]

Bases: Packet

Raise arm to cast a spell (vestigial)

__init__(*, direction)[source]

Create a new instance of SpellUseClientPacket.

Parameters:

direction (Direction)

property byte_size: int

The size of the data that this was deserialized from.

property direction: Direction

The direction field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of SpellUseClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) SpellUseClientPacket[source]

Deserializes an instance of SpellUseClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class StatId[source]

Bases: IntEnum

Base character stat

Str = 1
Int = 2
Wis = 3
Agi = 4
Con = 5
Cha = 6
class StatSkillAddClientPacket[source]

Bases: Packet

Spending a stat point on a stat or skill

__init__(*, action_type, action_type_data=None)[source]

Create a new instance of StatSkillAddClientPacket.

Parameters:
property byte_size: int

The size of the data that this was deserialized from.

property action_type: TrainType

The action_type field.

property action_type_data: ActionTypeDataStat | ActionTypeDataSkill | None

Data associated with the action_type field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of StatSkillAddClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) StatSkillAddClientPacket[source]

Deserializes an instance of StatSkillAddClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

ActionTypeData

Data associated with different values of the action_type field.

alias of StatSkillAddClientPacket.ActionTypeDataStat | StatSkillAddClientPacket.ActionTypeDataSkill | None

class ActionTypeDataStat[source]

Bases: object

Data associated with action_type value TrainType.Stat

__init__(*, stat_id)[source]

Create a new instance of StatSkillAddClientPacket.ActionTypeDataStat.

Parameters:

stat_id (StatId)

property byte_size: int

The size of the data that this was deserialized from.

property stat_id: StatId

The stat_id field.

static serialize(writer, data) None[source]

Serializes an instance of StatSkillAddClientPacket.ActionTypeDataStat to the provided EoWriter.

Parameters:
static deserialize(reader) ActionTypeDataStat[source]

Deserializes an instance of StatSkillAddClientPacket.ActionTypeDataStat from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class ActionTypeDataSkill[source]

Bases: object

Data associated with action_type value TrainType.Skill

__init__(*, spell_id)[source]

Create a new instance of StatSkillAddClientPacket.ActionTypeDataSkill.

Parameters:

spell_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property spell_id: int

The spell_id field.

static serialize(writer, data) None[source]

Serializes an instance of StatSkillAddClientPacket.ActionTypeDataSkill to the provided EoWriter.

Parameters:
static deserialize(reader) ActionTypeDataSkill[source]

Deserializes an instance of StatSkillAddClientPacket.ActionTypeDataSkill from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class StatSkillJunkClientPacket[source]

Bases: Packet

Resetting stats at a skill master

__init__(*, session_id)[source]

Create a new instance of StatSkillJunkClientPacket.

Parameters:

session_id (int) – (Value range is 0-4097152080.)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of StatSkillJunkClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) StatSkillJunkClientPacket[source]

Deserializes an instance of StatSkillJunkClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class StatSkillOpenClientPacket[source]

Bases: Packet

Talking to a skill master NPC

__init__(*, npc_index)[source]

Create a new instance of StatSkillOpenClientPacket.

Parameters:

npc_index (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property npc_index: int

The npc_index field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of StatSkillOpenClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) StatSkillOpenClientPacket[source]

Deserializes an instance of StatSkillOpenClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class StatSkillRemoveClientPacket[source]

Bases: Packet

Forgetting a skill at a skill master NPC

__init__(*, session_id, spell_id)[source]

Create a new instance of StatSkillRemoveClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-4097152080.)

  • spell_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property spell_id: int

The spell_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of StatSkillRemoveClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) StatSkillRemoveClientPacket[source]

Deserializes an instance of StatSkillRemoveClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class StatSkillTakeClientPacket[source]

Bases: Packet

Learning a skill from a skill master NPC

__init__(*, session_id, spell_id)[source]

Create a new instance of StatSkillTakeClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-4097152080.)

  • spell_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property spell_id: int

The spell_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of StatSkillTakeClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) StatSkillTakeClientPacket[source]

Deserializes an instance of StatSkillTakeClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class TalkAdminClientPacket[source]

Bases: Packet

Admin chat message

__init__(*, message)[source]

Create a new instance of TalkAdminClientPacket.

Parameters:

message (str)

property byte_size: int

The size of the data that this was deserialized from.

property message: str

The message field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of TalkAdminClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) TalkAdminClientPacket[source]

Deserializes an instance of TalkAdminClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class TalkAnnounceClientPacket[source]

Bases: Packet

Admin announcement

__init__(*, message)[source]

Create a new instance of TalkAnnounceClientPacket.

Parameters:

message (str)

property byte_size: int

The size of the data that this was deserialized from.

property message: str

The message field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of TalkAnnounceClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) TalkAnnounceClientPacket[source]

Deserializes an instance of TalkAnnounceClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class TalkMsgClientPacket[source]

Bases: Packet

Global chat message

__init__(*, message)[source]

Create a new instance of TalkMsgClientPacket.

Parameters:

message (str)

property byte_size: int

The size of the data that this was deserialized from.

property message: str

The message field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of TalkMsgClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) TalkMsgClientPacket[source]

Deserializes an instance of TalkMsgClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class TalkOpenClientPacket[source]

Bases: Packet

Party chat message

__init__(*, message)[source]

Create a new instance of TalkOpenClientPacket.

Parameters:

message (str)

property byte_size: int

The size of the data that this was deserialized from.

property message: str

The message field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of TalkOpenClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) TalkOpenClientPacket[source]

Deserializes an instance of TalkOpenClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class TalkPlayerClientPacket[source]

Bases: Packet

Public chat message - alias of TALK_REPORT (vestigial)

__init__(*, message)[source]

Create a new instance of TalkPlayerClientPacket.

Parameters:

message (str)

property byte_size: int

The size of the data that this was deserialized from.

property message: str

The message field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of TalkPlayerClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) TalkPlayerClientPacket[source]

Deserializes an instance of TalkPlayerClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class TalkReportClientPacket[source]

Bases: Packet

Public chat message

__init__(*, message)[source]

Create a new instance of TalkReportClientPacket.

Parameters:

message (str)

property byte_size: int

The size of the data that this was deserialized from.

property message: str

The message field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of TalkReportClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) TalkReportClientPacket[source]

Deserializes an instance of TalkReportClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class TalkRequestClientPacket[source]

Bases: Packet

Guild chat message

__init__(*, message)[source]

Create a new instance of TalkRequestClientPacket.

Parameters:

message (str)

property byte_size: int

The size of the data that this was deserialized from.

property message: str

The message field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of TalkRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) TalkRequestClientPacket[source]

Deserializes an instance of TalkRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class TalkTellClientPacket[source]

Bases: Packet

Private chat message

__init__(*, name, message)[source]

Create a new instance of TalkTellClientPacket.

Parameters:
property byte_size: int

The size of the data that this was deserialized from.

property name: str

The name field.

property message: str

The message field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of TalkTellClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) TalkTellClientPacket[source]

Deserializes an instance of TalkTellClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class TalkUseClientPacket[source]

Bases: Packet

Public chat message - alias of TALK_REPORT (vestigial)

__init__(*, message)[source]

Create a new instance of TalkUseClientPacket.

Parameters:

message (str)

property byte_size: int

The size of the data that this was deserialized from.

property message: str

The message field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of TalkUseClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) TalkUseClientPacket[source]

Deserializes an instance of TalkUseClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class TradeAcceptClientPacket[source]

Bases: Packet

Accepting a trade request

__init__(*, player_id)[source]

Create a new instance of TradeAcceptClientPacket.

Parameters:

player_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property player_id: int

The player_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of TradeAcceptClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) TradeAcceptClientPacket[source]

Deserializes an instance of TradeAcceptClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class TradeAddClientPacket[source]

Bases: Packet

Add an item to the trade screen

__init__(*, add_item)[source]

Create a new instance of TradeAddClientPacket.

Parameters:

add_item (Item)

property byte_size: int

The size of the data that this was deserialized from.

property add_item: Item

The add_item field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of TradeAddClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) TradeAddClientPacket[source]

Deserializes an instance of TradeAddClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class TradeAgreeClientPacket[source]

Bases: Packet

Mark trade as agreed

__init__(*, agree)[source]

Create a new instance of TradeAgreeClientPacket.

Parameters:

agree (bool)

property byte_size: int

The size of the data that this was deserialized from.

property agree: bool

The agree field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of TradeAgreeClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) TradeAgreeClientPacket[source]

Deserializes an instance of TradeAgreeClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class TradeCloseClientPacket[source]

Bases: Packet

Cancel the trade

__init__()[source]

Create a new instance of TradeCloseClientPacket.

property byte_size: int

The size of the data that this was deserialized from.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of TradeCloseClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) TradeCloseClientPacket[source]

Deserializes an instance of TradeCloseClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class TradeRemoveClientPacket[source]

Bases: Packet

Remove an item from the trade screen

__init__(*, item_id)[source]

Create a new instance of TradeRemoveClientPacket.

Parameters:

item_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property item_id: int

The item_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of TradeRemoveClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) TradeRemoveClientPacket[source]

Deserializes an instance of TradeRemoveClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class TradeRequestClientPacket[source]

Bases: Packet

Requesting a trade with another player

__init__(*, player_id)[source]

Create a new instance of TradeRequestClientPacket.

Parameters:

player_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property player_id: int

The player_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of TradeRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) TradeRequestClientPacket[source]

Deserializes an instance of TradeRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class TrainType[source]

Bases: IntEnum

Whether the player is spending a stat point or a skill point

Stat = 1
Skill = 2
class WalkAction[source]

Bases: object

Common data between walk packets

__init__(*, direction, timestamp, coords)[source]

Create a new instance of WalkAction.

Parameters:
property byte_size: int

The size of the data that this was deserialized from.

property direction: Direction

The direction field.

property timestamp: int

The timestamp field.

property coords: Coords

The coords field.

static serialize(writer, data) None[source]

Serializes an instance of WalkAction to the provided EoWriter.

Parameters:
  • writer (EoWriter) – The writer that the data will be serialized to.

  • data (WalkAction) – The data to serialize.

static deserialize(reader) WalkAction[source]

Deserializes an instance of WalkAction from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class WalkAdminClientPacket[source]

Bases: Packet

Walking with #nowall

__init__(*, walk_action)[source]

Create a new instance of WalkAdminClientPacket.

Parameters:

walk_action (WalkAction)

property byte_size: int

The size of the data that this was deserialized from.

property walk_action: WalkAction

The walk_action field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of WalkAdminClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) WalkAdminClientPacket[source]

Deserializes an instance of WalkAdminClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class WalkPlayerClientPacket[source]

Bases: Packet

Walking

__init__(*, walk_action)[source]

Create a new instance of WalkPlayerClientPacket.

Parameters:

walk_action (WalkAction)

property byte_size: int

The size of the data that this was deserialized from.

property walk_action: WalkAction

The walk_action field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of WalkPlayerClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) WalkPlayerClientPacket[source]

Deserializes an instance of WalkPlayerClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class WalkSpecClientPacket[source]

Bases: Packet

Walking through a player

__init__(*, walk_action)[source]

Create a new instance of WalkSpecClientPacket.

Parameters:

walk_action (WalkAction)

property byte_size: int

The size of the data that this was deserialized from.

property walk_action: WalkAction

The walk_action field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of WalkSpecClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) WalkSpecClientPacket[source]

Deserializes an instance of WalkSpecClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class WarpAcceptClientPacket[source]

Bases: Packet

Accept a warp request from the server

__init__(*, map_id, session_id)[source]

Create a new instance of WarpAcceptClientPacket.

Parameters:
  • map_id (int) – (Value range is 0-64008.)

  • session_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property map_id: int

The map_id field.

property session_id: int

The session_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of WarpAcceptClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) WarpAcceptClientPacket[source]

Deserializes an instance of WarpAcceptClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class WarpTakeClientPacket[source]

Bases: Packet

Request to download a copy of the map

__init__(*, map_id, session_id)[source]

Create a new instance of WarpTakeClientPacket.

Parameters:
  • map_id (int) – (Value range is 0-64008.)

  • session_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property map_id: int

The map_id field.

property session_id: int

The session_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of WarpTakeClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) WarpTakeClientPacket[source]

Deserializes an instance of WarpTakeClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class WelcomeAgreeClientPacket[source]

Bases: Packet

Requesting a file

__init__(*, file_type, session_id, file_type_data=None)[source]

Create a new instance of WelcomeAgreeClientPacket.

Parameters:
property byte_size: int

The size of the data that this was deserialized from.

property file_type: FileType

The file_type field.

property session_id: int

The session_id field.

property file_type_data: FileTypeDataEmf | FileTypeDataEif | FileTypeDataEnf | FileTypeDataEsf | FileTypeDataEcf | None

Data associated with the file_type field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of WelcomeAgreeClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) WelcomeAgreeClientPacket[source]

Deserializes an instance of WelcomeAgreeClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

FileTypeData

Data associated with different values of the file_type field.

alias of WelcomeAgreeClientPacket.FileTypeDataEmf | WelcomeAgreeClientPacket.FileTypeDataEif | WelcomeAgreeClientPacket.FileTypeDataEnf | WelcomeAgreeClientPacket.FileTypeDataEsf | WelcomeAgreeClientPacket.FileTypeDataEcf | None

class FileTypeDataEmf[source]

Bases: object

Data associated with file_type value FileType.Emf

__init__(*, file_id)[source]

Create a new instance of WelcomeAgreeClientPacket.FileTypeDataEmf.

Parameters:

file_id (int) – (Value range is 0-64008.)

property byte_size: int

The size of the data that this was deserialized from.

property file_id: int

The file_id field.

static serialize(writer, data) None[source]

Serializes an instance of WelcomeAgreeClientPacket.FileTypeDataEmf to the provided EoWriter.

Parameters:
  • writer (EoWriter) – The writer that the data will be serialized to.

  • data (FileTypeDataEmf) – The data to serialize.

static deserialize(reader) FileTypeDataEmf[source]

Deserializes an instance of WelcomeAgreeClientPacket.FileTypeDataEmf from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class FileTypeDataEif[source]

Bases: object

Data associated with file_type value FileType.Eif

__init__(*, file_id)[source]

Create a new instance of WelcomeAgreeClientPacket.FileTypeDataEif.

Parameters:

file_id (int) – (Value range is 0-252.)

property byte_size: int

The size of the data that this was deserialized from.

property file_id: int

The file_id field.

static serialize(writer, data) None[source]

Serializes an instance of WelcomeAgreeClientPacket.FileTypeDataEif to the provided EoWriter.

Parameters:
  • writer (EoWriter) – The writer that the data will be serialized to.

  • data (FileTypeDataEif) – The data to serialize.

static deserialize(reader) FileTypeDataEif[source]

Deserializes an instance of WelcomeAgreeClientPacket.FileTypeDataEif from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class FileTypeDataEnf[source]

Bases: object

Data associated with file_type value FileType.Enf

__init__(*, file_id)[source]

Create a new instance of WelcomeAgreeClientPacket.FileTypeDataEnf.

Parameters:

file_id (int) – (Value range is 0-252.)

property byte_size: int

The size of the data that this was deserialized from.

property file_id: int

The file_id field.

static serialize(writer, data) None[source]

Serializes an instance of WelcomeAgreeClientPacket.FileTypeDataEnf to the provided EoWriter.

Parameters:
  • writer (EoWriter) – The writer that the data will be serialized to.

  • data (FileTypeDataEnf) – The data to serialize.

static deserialize(reader) FileTypeDataEnf[source]

Deserializes an instance of WelcomeAgreeClientPacket.FileTypeDataEnf from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class FileTypeDataEsf[source]

Bases: object

Data associated with file_type value FileType.Esf

__init__(*, file_id)[source]

Create a new instance of WelcomeAgreeClientPacket.FileTypeDataEsf.

Parameters:

file_id (int) – (Value range is 0-252.)

property byte_size: int

The size of the data that this was deserialized from.

property file_id: int

The file_id field.

static serialize(writer, data) None[source]

Serializes an instance of WelcomeAgreeClientPacket.FileTypeDataEsf to the provided EoWriter.

Parameters:
  • writer (EoWriter) – The writer that the data will be serialized to.

  • data (FileTypeDataEsf) – The data to serialize.

static deserialize(reader) FileTypeDataEsf[source]

Deserializes an instance of WelcomeAgreeClientPacket.FileTypeDataEsf from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class FileTypeDataEcf[source]

Bases: object

Data associated with file_type value FileType.Ecf

__init__(*, file_id)[source]

Create a new instance of WelcomeAgreeClientPacket.FileTypeDataEcf.

Parameters:

file_id (int) – (Value range is 0-252.)

property byte_size: int

The size of the data that this was deserialized from.

property file_id: int

The file_id field.

static serialize(writer, data) None[source]

Serializes an instance of WelcomeAgreeClientPacket.FileTypeDataEcf to the provided EoWriter.

Parameters:
  • writer (EoWriter) – The writer that the data will be serialized to.

  • data (FileTypeDataEcf) – The data to serialize.

static deserialize(reader) FileTypeDataEcf[source]

Deserializes an instance of WelcomeAgreeClientPacket.FileTypeDataEcf from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class WelcomeMsgClientPacket[source]

Bases: Packet

Entering game

__init__(*, session_id, character_id)[source]

Create a new instance of WelcomeMsgClientPacket.

Parameters:
  • session_id (int) – (Value range is 0-16194276.)

  • character_id (int) – (Value range is 0-4097152080.)

property byte_size: int

The size of the data that this was deserialized from.

property session_id: int

The session_id field.

property character_id: int

The character_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of WelcomeMsgClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) WelcomeMsgClientPacket[source]

Deserializes an instance of WelcomeMsgClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.

class WelcomeRequestClientPacket[source]

Bases: Packet

Selected a character

__init__(*, character_id)[source]

Create a new instance of WelcomeRequestClientPacket.

Parameters:

character_id (int) – (Value range is 0-4097152080.)

property byte_size: int

The size of the data that this was deserialized from.

property character_id: int

The character_id field.

static family() PacketFamily[source]

Returns the packet family associated with this packet.

Returns:

The packet family associated with this packet.

static action() PacketAction[source]

Returns the packet action associated with this packet.

Returns:

The packet action associated with this packet.

write(writer)[source]

Serializes and writes this packet to the provided EoWriter.

Parameters:

writer (EoWriter) – the writer that this packet will be written to.

static serialize(writer, data) None[source]

Serializes an instance of WelcomeRequestClientPacket to the provided EoWriter.

Parameters:
static deserialize(reader) WelcomeRequestClientPacket[source]

Deserializes an instance of WelcomeRequestClientPacket from the provided EoReader.

Parameters:

reader (EoReader) – The writer that the data will be serialized to.

Returns:

The data to serialize.