NAME
Game::Tibia::Packet::Charlist - Character list packet support for the MMORPG Tibia
SYNOPSIS
use Game::Tibia::Packet::Charlist;
my $p = Game::Tibia::Packet::Charlist->new(
packet => $packet,
xtea => $xtea,
version => 830
);
$p->{premium_days} = 0xff;
$sock->send($p->finalize);
DESCRIPTION
Decodes Tibia Login packets into hashes and vice versa.
METHODS AND ARGUMENTS
- new([packet => $packet, version => $version, xtea => $xtea])
-
Constructs a new Game::Tibia::Packet::Charlist instance of version
$version
. Whenpacket
andxtea
are specified, the supplied packet is decrypted and is then retrievable with thepayload
subroutine. - finalize([$xtea]])
-
Finalizes the packet. encrypts with XTEA and prepends header
GIT REPOSITORY
http://github.com/athreef/Game-Tibia-Packet
SEE ALSO
AUTHOR
Ahmad Fatoum <athreef@cpan.org>
, http://a3f.at
COPYRIGHT AND LICENSE
Copyright (C) 2016 Ahmad Fatoum
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.