antorum.packets package

Submodules

antorum.packets.barter_close module

antorum.packets.barter_move module

antorum.packets.barter_open module

antorum.packets.character_creation module

class antorum.packets.character_creation.CreationStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

INVALID_BODY = 3
INVALID_CLASS = 1
INVALID_NAME = 4
INVALID_STATS = 2
NAME_TAKEN = 5
SUCCESS = 0
class antorum.packets.character_creation.Packet(name: str, crafting_skill: int, foraging_skill: int, combat_skill: int, ascetic_skill: int, stamina: int, strength: int, smarts: int, speed: int, hair: int, hair_color: int, facial_hair: int, facial_hair_color: int, skin_color: int, shirt: int, pants: int, bulk: int, height: int)[source]

Bases: NetworkPacket

packet_id: int = 48
serialize()[source]
class antorum.packets.character_creation.Response(data: bytes)[source]

Bases: NetworkPacket

packet_id: int = 49
antorum.packets.character_creation.handle(self, client: multiplayer.Client)[source]
antorum.packets.character_creation.receive_packet

alias of Response

antorum.packets.chat module

antorum.packets.combat_start module

antorum.packets.combat_stop module

antorum.packets.entity_despawn module

antorum.packets.entity_spawn module

antorum.packets.entity_state module

antorum.packets.exp module

antorum.packets.halt module

antorum.packets.handshake module

class antorum.packets.handshake.HandshakeStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

ACCEPTED = 0
ACCEPTEDNEEDSDOWNLOAD = 2
REJECTED = 1
class antorum.packets.handshake.Packet(protocol: int = 12, world: int = 1103, item_cache: int = 9967626288493068445, enchantment_cache: int = 16519598071320280894)[source]

Bases: NetworkPacket

packet_id: int = 0
serialize()[source]
class antorum.packets.handshake.Response(data: bytes)[source]

Bases: NetworkPacket

packet_id: int = 0
antorum.packets.handshake.handle(packet: Response, client: multiplayer.Client)[source]
antorum.packets.handshake.receive_packet

alias of Response

antorum.packets.interact module

antorum.packets.inventory module

antorum.packets.inventory_add module

class antorum.packets.inventory_add.InventoryItem(resource: antorum.packets.item.ItemResource, amount: int, property_bag: antorum.packets.item.ItemPropertyBag)[source]

Bases: object

amount: int
property_bag: ItemPropertyBag
resource: ItemResource
class antorum.packets.inventory_add.Response(data: bytes = b'')[source]

Bases: NetworkPacket

packet_id: int = 20
parse(reader: BufferReader)[source]
antorum.packets.inventory_add.handle(packet: Response, client: multiplayer.Client)[source]
antorum.packets.inventory_add.receive_packet

alias of Response

antorum.packets.inventory_item_drop module

antorum.packets.inventory_read_item module

antorum.packets.inventory_remove module

antorum.packets.item module

class antorum.packets.item.ItemAttributes(damage: int, armor: int, heal_amount: int, ingredient_slots: int, equipment_slot: antorum.packets.item.ItemSlot, can_block: bool, can_fish: bool, can_cast_rituals: bool, can_craft: bool, can_mine: bool, hide_hair: bool)[source]

Bases: object

armor: int
can_block: bool
can_cast_rituals: bool
can_craft: bool
can_fish: bool
can_mine: bool
damage: int
equipment_slot: ItemSlot
heal_amount: int
hide_hair: bool
ingredient_slots: int
class antorum.packets.item.ItemPropertyBag(durability: int = -1, max_durability: int = -1, creator: str = '', enchantment_id: int = -1)[source]

Bases: object

creator: str = ''
durability: int = -1
enchantment_id: int = -1
max_durability: int = -1
class antorum.packets.item.ItemResource(reader: BufferReader)[source]

Bases: object

class antorum.packets.item.ItemSlot(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

NONE = 0
head = 3
legs = 5
main_hand = 1
off_hand = 2
torso = 4
class antorum.packets.item.ItemType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Flag

ARMOR = 32
CONSUMABLE = 2
CURRENCY = 8
INGREDIENT = 4
MISC = 1
TOOL = 64
WEAPON = 16

antorum.packets.load_complete module

class antorum.packets.load_complete.Request[source]

Bases: NetworkPacket

packet_id: int = 2
serialize()[source]

antorum.packets.login module

class antorum.packets.login.LoginStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

ALREADY_LOGGED_IN = 5
ERROR = 1
INVALID_CREDS = 2
REJECTED = 4
SERVER_FULL = 3
SUCCESS = 0
SUCCESS_NEW_USER = 6
class antorum.packets.login.Packet(username: str, encrypted_password: bytes)[source]

Bases: NetworkPacket

packet_id: int = 1
serialize()[source]
class antorum.packets.login.Response(data: bytes)[source]

Bases: NetworkPacket

packet_id: int = 1
antorum.packets.login.handle(packet: Response, client: multiplayer.Client)[source]
antorum.packets.login.receive_packet

alias of Response

antorum.packets.move module

antorum.packets.move_failed module

antorum.packets.packet module

class antorum.packets.packet.NetworkPacket[source]

Bases: object

header_size: int = 3
packet_id: int
serialize()[source]

antorum.packets.skills module

antorum.packets.stats module

class antorum.packets.stats.ClassBonuses(reader: BufferReader)[source]

Bases: object

class antorum.packets.stats.Response(data: bytes)[source]

Bases: NetworkPacket

packet_id: int = 18
class antorum.packets.stats.Stat(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

ARMOR = 4
DAMAGE = 5
MAX_HEALTH = 6
SMARTS = 2
SPEED = 3
SPEED_BONUS = 7
STAMINA = 0
STRENGTH = 1
class antorum.packets.stats.StatBonuses(reader: BufferReader)[source]

Bases: object

antorum.packets.stats.handle(packet: Response, client: multiplayer.Client)[source]
antorum.packets.stats.receive_packet

alias of Response

antorum.packets.stats.update_stat(stat, value, client: multiplayer.Client)[source]
antorum.packets.stats.update_stats(stats, client: multiplayer.Client)[source]

antorum.packets.world_entities module

Module contents