示例#1
0
        /// <summary>
        /// Handles the CharList2In packet. This packet contains a list of all the characters on the
        /// account. We respond by sending a CharLogonOut packet containing the name of the character
        /// to logon as.
        /// </summary>
        /// <param name="packet">The packet.</param>
        private void OnCharList2(RealmServerPacket packet)
        {
            CharList2In fromServer = new CharList2In(packet);

            LogServer(fromServer);

            if (!fromServer.CharacterExists(characterName))
            {
                Fail(FailureArgs.FailureTypes.CharacterNotFound, "Character not found");
                return;
            }

            CharLogonOut toServer = new CharLogonOut(characterName);

            SendPacket(RealmServerPacketType.CHARLOGON, toServer.GetBytes());
        }
示例#2
0
        /// <summary>
        /// Handles the CharList2In packet. This packet contains a list of all the characters on the
        /// account. We respond by sending a CharLogonOut packet containing the name of the character
        /// to logon as.
        /// </summary>
        /// <param name="packet">The packet.</param>
        private void OnCharList2(RealmServerPacket packet)
        {
            CharList2In fromServer = new CharList2In(packet);
            LogServer(fromServer);

            if (!fromServer.CharacterExists(characterName))
            {
                Fail(FailureArgs.FailureTypes.CharacterNotFound, "Character not found");
                return;
            }

            CharLogonOut toServer = new CharLogonOut(characterName);
            SendPacket(RealmServerPacketType.CHARLOGON, toServer.GetBytes());
        }