Ejemplo n.º 1
0
        private void OnClientSessionInfo(CtoS.P10_UnknownMessage evt)
        {
            ISession owner = evt.Owner;

            StoC.P04_UnknownMessage ClientSync = new StoC.P04_UnknownMessage();
            ClientSync.Unknown0 = 0;
            ClientSync.Unknown1 = 21;
            ClientSync.Unknown2 = 6;
            ClientSync.Unknown3 = 3;
            ClientSync.Unknown4 = 2198;
            owner.Send(ClientSync);

            StoC.P17_UnknownMessage CharacterInfo = new StoC.P17_UnknownMessage();
            CharacterInfo.Unknown0 = evt.Unknown0;
            CharacterInfo.Unknown1 = new Common.UID(new byte[] { 0x74, 0xAE, 0x2A, 0x01, 0xBA, 0x34, 0xE2, 0x11, 0xBC, 0xD1, 0x44, 0x1E, 0xA1, 0x02, 0xB1, 0xB6 });
            CharacterInfo.Unknown2 = 0;
            CharacterInfo.Unknown3 = "User";
            CharacterInfo.Unknown4 = new byte[] { 0x07, 0x8A, 0x00, 0x00, 0x01, 0x06, 0x00, 0x00, 0x02, 0x80, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x16, 0x00, 0x2B, 0x0B, 0x17, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x4A, 0x80, 0x02, 0x09, 0x01, 0x0C, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x03, 0x48, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0x19, 0x00, 0x00, 0xC1, 0x00, 0x6B, 0x00, 0xC1, 0x00, 0x00, 0x00, 0x40, 0x19, 0x00, 0x00, 0xC1, 0x00, 0x6D, 0x00, 0x6B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x43, 0x19, 0x00, 0x00, 0xC1, 0x00, 0x6B, 0x00, 0xC1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x39, 0x2C, 0x67, 0xE8 };
            owner.Send(CharacterInfo);

            StoC.P10_UnknownMessage AccountMedals = new StoC.P10_UnknownMessage();
            AccountMedals.Unknown0 = evt.Unknown0;
            AccountMedals.Unknown1 = new byte[456];
            owner.Send(AccountMedals);

            StoC.P27_UnknownMessage P27 = new StoC.P27_UnknownMessage();
            P27.Unknown0 = evt.Unknown0;
            P27.Unknown4 = new StoC.P27_UnknownMessage.Struct1[32];
            owner.Send(P27);

            // Protocol version: 20849
            StoC.P08_UnknownMessage AccountInfo = new StoC.P08_UnknownMessage();
            AccountInfo.Unknown0  = evt.Unknown0;
            AccountInfo.Unknown1  = new Common.UID(new byte[16]);
            AccountInfo.Unknown2  = new Common.UID(new byte[16]);
            AccountInfo.Unknown3  = 2;
            AccountInfo.Unknown4  = 5;
            AccountInfo.Unknown5  = 390149345;
            AccountInfo.Unknown6  = 0;
            AccountInfo.Unknown7  = 0;
            AccountInfo.Unknown8  = 3;
            AccountInfo.Unknown9  = new byte[] { 0x0f, 0x8a, 0xa1, 0xbb, 0x47, 0x79, 0xb8, 0xf9, 0x20, 0xec, 0x40, 0xfa, 0x45, 0x2c, 0x7d, 0xed, 0x0c, 0xa2, 0xe4, 0x99, 0x70, 0x7c, 0xe9, 0x30, 0x6c, 0x13, 0x01, 0xc5, 0x80, 0xff, 0x57, 0x31 };
            AccountInfo.Unknown16 = new StoC.P08_UnknownMessage.Struct10[1];
            AccountInfo.Unknown17 = new byte[32];
            owner.Send(AccountInfo);

            StoC.P16_UnknownMessage P16 = new StoC.P16_UnknownMessage();
            P16.Unknown0 = evt.Unknown0;
            P16.Unknown1 = new Common.UID(new byte[16]);
            P16.Unknown2 = 0;
            P16.Unknown3 = 12651121;
            P16.Unknown4 = 168;
            P16.Unknown5 = 1800;
            P16.Unknown6 = 0;
            owner.Send(P16);

            owner.Send(new StoC.P23_UnknownMessage());

            StoC.P25_UnknownMessage GameServerInfo = new StoC.P25_UnknownMessage();
            GameServerInfo.Unknown0 = 1001;
            GameServerInfo.Unknown1 = 0;
            GameServerInfo.Unknown2 = 0;
            GameServerInfo.Unknown3 = 168;
            owner.Send(GameServerInfo);

            owner.Send(new StoC.P24_UnknownMessage());

            StoC.P04_UnknownMessage Sync = new StoC.P04_UnknownMessage();
            Sync.Unknown0 = evt.Unknown0;
            Sync.Unknown1 = 0;
            Sync.Unknown2 = 49;
            Sync.Unknown3 = 7004;
            Sync.Unknown4 = 823;
            owner.Send(Sync);
        }
Ejemplo n.º 2
0
        private void OnClientSessionInfo(CtoS.P10_UnknownMessage evt)
        {
            ISession owner = evt.Owner;

            StoC.P04_UnknownMessage ClientSync = new StoC.P04_UnknownMessage();
            ClientSync.Unknown0 = 0;
            ClientSync.Unknown1 = 21;
            ClientSync.Unknown2 = 6;
            ClientSync.Unknown3 = 3;
            ClientSync.Unknown4 = 2198;
            owner.Send(ClientSync);

            StoC.P17_UnknownMessage CharacterInfo = new StoC.P17_UnknownMessage();
            CharacterInfo.Unknown0 = evt.Unknown0;
            CharacterInfo.Unknown1 = new Common.UID(new byte[] { 0x74, 0xAE, 0x2A, 0x01, 0xBA, 0x34, 0xE2, 0x11, 0xBC, 0xD1, 0x44, 0x1E, 0xA1, 0x02, 0xB1, 0xB6 });
            CharacterInfo.Unknown2 = 0;
            CharacterInfo.Unknown3 = "User";
            CharacterInfo.Unknown4 = new byte[] { 0x07, 0x8A, 0x00, 0x00, 0x01, 0x06, 0x00, 0x00, 0x02, 0x80, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x16, 0x00, 0x2B, 0x0B, 0x17, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x4A, 0x80, 0x02, 0x09, 0x01, 0x0C, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x03, 0x48, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0x19, 0x00, 0x00, 0xC1, 0x00, 0x6B, 0x00, 0xC1, 0x00, 0x00, 0x00, 0x40, 0x19, 0x00, 0x00, 0xC1, 0x00, 0x6D, 0x00, 0x6B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x43, 0x19, 0x00, 0x00, 0xC1, 0x00, 0x6B, 0x00, 0xC1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x39, 0x2C, 0x67, 0xE8 };
            owner.Send(CharacterInfo);

            StoC.P10_UnknownMessage AccountMedals = new StoC.P10_UnknownMessage();
            AccountMedals.Unknown0 = evt.Unknown0;
            AccountMedals.Unknown1 = new byte[456];
            owner.Send(AccountMedals);

            StoC.P27_UnknownMessage P27 = new StoC.P27_UnknownMessage();
            P27.Unknown0 = evt.Unknown0;
            P27.Unknown4 = new StoC.P27_UnknownMessage.Struct1[32];
            owner.Send(P27);

            // Protocol version: 20849
            StoC.P08_UnknownMessage AccountInfo = new StoC.P08_UnknownMessage();
            AccountInfo.Unknown0 = evt.Unknown0;
            AccountInfo.Unknown1 = new Common.UID(new byte[16]);
            AccountInfo.Unknown2 = new Common.UID(new byte[16]);
            AccountInfo.Unknown3 = 2;
            AccountInfo.Unknown4 = 5;
            AccountInfo.Unknown5 = 390149345;
            AccountInfo.Unknown6 = 0;
            AccountInfo.Unknown7 = 0;
            AccountInfo.Unknown8 = 3;
            AccountInfo.Unknown9 = new byte[] { 0x0f, 0x8a, 0xa1, 0xbb, 0x47, 0x79, 0xb8, 0xf9, 0x20, 0xec, 0x40, 0xfa, 0x45, 0x2c, 0x7d, 0xed, 0x0c, 0xa2, 0xe4, 0x99, 0x70, 0x7c, 0xe9, 0x30, 0x6c, 0x13, 0x01, 0xc5, 0x80, 0xff, 0x57, 0x31 };
            AccountInfo.Unknown16 = new StoC.P08_UnknownMessage.Struct10[1];
            AccountInfo.Unknown17 = new byte[32];
            owner.Send(AccountInfo);

            StoC.P16_UnknownMessage P16 = new StoC.P16_UnknownMessage();
            P16.Unknown0 = evt.Unknown0;
            P16.Unknown1 = new Common.UID(new byte[16]);
            P16.Unknown2 = 0;
            P16.Unknown3 = 12651121;
            P16.Unknown4 = 168;
            P16.Unknown5 = 1800;
            P16.Unknown6 = 0;
            owner.Send(P16);

            owner.Send(new StoC.P23_UnknownMessage());

            StoC.P25_UnknownMessage GameServerInfo = new StoC.P25_UnknownMessage();
            GameServerInfo.Unknown0 = 1001;
            GameServerInfo.Unknown1 = 0;
            GameServerInfo.Unknown2 = 0;
            GameServerInfo.Unknown3 = 168;
            owner.Send(GameServerInfo);

            owner.Send(new StoC.P24_UnknownMessage());

            StoC.P04_UnknownMessage Sync = new StoC.P04_UnknownMessage();
            Sync.Unknown0 = evt.Unknown0;
            Sync.Unknown1 = 0;
            Sync.Unknown2 = 49;
            Sync.Unknown3 = 7004;
            Sync.Unknown4 = 823;
            owner.Send(Sync);
        }