示例#1
0
        /* NetCafe
         * 會員於特約網咖連線
         */
        public static void Login_Ack(Client c, ServerState.LoginState state, short encryptKey = 0, bool netCafe = false)
        {
            using (var plew = new OutPacket(LoginServerOpcode.LOGIN_ACK))
            {
                plew.WriteByte((byte)state);
                plew.WriteBool(netCafe);
                plew.WriteShort(encryptKey);

                c.Send(plew);
            }
        }
示例#2
0
        /* NetCafe
         * 會員於特約網咖連線
         */
        public static void Login_Ack(Client c, ServerState.LoginState state, short encryptKey = 0, bool netCafe = false)
        {
            using (var plew = new OutPacket(LoginServerOpcode.LOGIN_ACK))
            {
#if DEBUG
                plew.WriteByte(0);                 //bypass password check in debug mode
#else
                plew.WriteByte((byte)state);
#endif
                plew.WriteByte(0);
                plew.WriteByte(c.Account.Master);
                plew.WriteByte(c.Account.isTwoFactor);
                plew.WriteBytes(new byte[]
                                { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 });
                c.Send(plew);
            }
        }
示例#3
0
        /* NetCafe
         * 會員於特約網咖連線
         */
        public static void Login_Ack(Client c, ServerState.LoginState state, short encryptKey = 0, bool netCafe = false)
        {
            using (var plew = new OutPacket(LoginServerOpcode.LOGIN_ACK))
            {
                //var awal = new int[4] { 0x00, 0x00, 0x00, 0x00 };
                //plew.WriteByte((byte)awal);

                for (int i = 0; i < 3; i++)
                {
                    plew.WriteByte(0x00);
                }
                plew.WriteByte((byte)state);
                //plew.WriteBool(netCafe);
                //plew.WriteBool(true);
                plew.WriteShort(encryptKey);

                c.Send(plew);
            }
        }