Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write Client <-> LoginServer communication protocol specification #45

Open
Mirandatz opened this issue Mar 9, 2018 · 1 comment
Open

Comments

@Mirandatz
Copy link
Contributor

No description provided.

@jsapparts
Copy link
Collaborator

Tibia 7.0 Login Protocol

This is the packet that the client sends to server to request account character lists using username and password as credentials.
Client Login Packet

UInt16 : Total size of packet

UInt8 : Protocol ID

UInt16 : Operating System

UInt16 : Client Version

UInt32 : Dat Version

UInt32 : Spr Version

UInt32 : Pic Version

String : Username of Account

String : Password of Account


Server Login Packet
This is the packet that server send to client after received the login packet. It contains the motd, the character name, character game world info(Name, IP, Port), for each character in account, and the premium days of the account.

UInt16 : Total size of packet

UInt8 : MOTD OpCode = 0x14

String : Message of the Day

UInt8 : Character List OpCode = 0x64

UInt8 : Characters Count in Account

for each account

String : Character Name

String : Character Game World Server Name

UInt32 : Character Game World Server IP Address

UInt32 : Character Game World Server Connection Port

end of for

UInt8 : Premium Days OpCode = 0x00

UInt8 : Has premium days byte. 1 if yes. 0 if no

if has premium days it sends the premium days in seconds

Int32 : Premium days as seconds

Note: If the passed as having premium days. But sending 0, results in free premium
Note²: Not 100% sure, but should be very close to this. Can't get the client running to test. So made based on connection code from OTC, and COMMO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants