NAME

Game::Tibia::Packet::Login - Login packet support for the MMORPG Tibia

SYNOPSIS

    use Game::Tibia::Packet::Login;

DESCRIPTION

Decodes Tibia Login packets into hashes and vice versa. By default uses the OTServ RSA key, but allows different RSA keys to be supplied. Version 9.80 and above is not supported.

METHODS AND ARGUMENTS

new(version => $version, [$character => undef, packet => $packet, rsa => OTSERV])

Constructs a new Game::Tibia::Packet::Login instance of version $version. If packet is supplied, decryption using the supplied rsa private key is attempted. If no rsa is supplied, the OTServ RSA key is used. If a $character name is supplied, it's assumed to be a game server login packet.

finalize([$rsa])

Finalizes the packet. encrypts with RSA and prepends header

GIT REPOSITORY

http://github.com/athreef/Game-Tibia-Packet

SEE ALSO

Game::Tibia::Packet

Game::Tibia::Packet::Charlist

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.