Пример #1
0
        public static void ProcessClientLoginRequest(PacketArgs e)
        {
            String username     = ByteConverter.ReadToString(1, 30, e.Payload).Trim('\0');
            String password     = ByteConverter.ReadToString(31, 30, e.Payload).Trim('\0');
            byte   nextLoginKey = e.Payload[61];

            ServerState.Accounts.AuthenticateAccount(username, password, e.Client);
        }
Пример #2
0
        public static void ProcessClientLoginSeed(PacketArgs e)
        {
            int[] seed             = ByteConverter.ReadToInt(1, 4, e.Payload);
            int[] majorVersion     = ByteConverter.ReadToInt(5, 4, e.Payload);
            int[] minorVersion     = ByteConverter.ReadToInt(9, 4, e.Payload);
            int[] revisionVersion  = ByteConverter.ReadToInt(13, 4, e.Payload);
            int[] prototypeVersion = ByteConverter.ReadToInt(17, 4, e.Payload);

            e.Client.SeedClient(seed, majorVersion, minorVersion, revisionVersion, prototypeVersion);
        }
Пример #3
0
        public static void ProcessSelectServer(PacketArgs e)
        {
            short selectedShard = ByteConverter.ReadShort(1, e.Payload);

            SendConnectToGameServer(e.Client);
        }