- Code: Select all
byte[] buf = new byte[msg.size() + 2];
buf[0] = (byte)((msg.size() & 0xff00) >> 8);
buf[1] = (byte)(msg.size() & 0x00ff);
msg.fin(buf, 2);
That's from AuthClient.java, in sendmsg().
I'd like to code a headless bot using python, that would connect to a villager bot account, and relay village chat to discord.
Though I just can't authenticate with the game server.
I can establish the ssl connection through sockets though, I just need to understand how to send the credentials. Can an archmage share some wisdom please ?