示例#1
0
 private void parsePacket(ByteBuffer data)
 {
     data.SetIndex(3);
     this._clanId = data.ReadInt32();
     this._clanName = data.ReadString();
     this._allyId = data.ReadInt32();
 }
示例#2
0
 private void onCharSelected(ByteBuffer packet)
 {
     packet.ReadString();   // name
     packet.ReadInt32();    // CharId
     packet.ReadString();   // Title
     packet.ReadBytes(196); // 196 bytes
     this.obfusicateKey = packet.ReadInt32();
     this.clientCrypt.generateOpcodeTable(this.obfusicateKey);
 }
示例#3
0
        private void onKeyPacket(ByteBuffer packet)
        {
            packet.ReadByte();
            this.cryptKey = packet.ReadBytes(16);

            this.cryptKey[8]  = (byte)0xc8;
            this.cryptKey[9]  = (byte)0x27;
            this.cryptKey[10] = (byte)0x93;
            this.cryptKey[11] = (byte)0x01;
            this.cryptKey[12] = (byte)0xa1;
            this.cryptKey[13] = (byte)0x6c;
            this.cryptKey[14] = (byte)0x31;
            this.cryptKey[15] = (byte)0x97;

            serverCrypt.setKey(this.cryptKey);
            clientCrypt.setKey(this.cryptKey);
            // ddcd
            packet.ReadInt32();
            packet.ReadInt32();
            packet.ReadByte();
            this.obfusicateKey = packet.ReadInt32();
            this.clientCrypt.generateOpcodeTable(this.obfusicateKey);
        }
示例#4
0
        private void parsePacket(ByteBuffer data)
        {
            data.SetIndex(3);
            this._x = data.ReadInt32();
            this._y = data.ReadInt32();
            this._z = data.ReadInt32();
            data.ReadInt32();
            this._objectId = data.ReadInt32();
            this._visibleName = data.ReadString();
            this._race = data.ReadInt32();
            this._sex = data.ReadInt32();
            this._class = data.ReadInt32();

            this._paperdollHairall = data.ReadInt32();
            this._paperdollHead = data.ReadInt32();
            this._paperdollRhand = data.ReadInt32();
            this._paperdollLhand = data.ReadInt32();
            this._paperdollGloves = data.ReadInt32();
            this._paperdollChest = data.ReadInt32();
            this._paperdollLegs = data.ReadInt32();
            this._paperdollFeet = data.ReadInt32();
            this._paperdollBack = data.ReadInt32();
            this._paperdollLRhand = data.ReadInt32();
            this._paperdollHair = data.ReadInt32();
            this._paperdollHair2 = data.ReadInt32();

            data.SetIndex(data.GetIndex() + 112);
            this._pvpFlag = data.ReadInt32();
            this._karma = data.ReadInt32();
            this._mAtkSpd = data.ReadInt32();
            this._pAtkSpd = data.ReadInt32();

            data.SetIndex(data.GetIndex() + 8); //dd

            this._speed = data.ReadInt32();
            data.SetIndex(data.GetIndex() + 28);

            this._movementSpeedMultip = data.ReadDouble();
            this._AttackSpeedMultip = data.ReadDouble();

            // + ffddd
            data.SetIndex(data.GetIndex() + 28);
            this._title = data.ReadString();
            this._clanId = data.ReadInt32();
            this._clanCrestId = data.ReadInt32();
            this._allyId = data.ReadInt32();
            this._allyCrestId = data.ReadInt32();
        }
示例#5
0
        private void onKeyPacket(ByteBuffer packet)
        {
            packet.ReadByte();
            this.cryptKey = packet.ReadBytes(16);

            this.cryptKey[8] = (byte)0xc8;
            this.cryptKey[9] = (byte)0x27;
            this.cryptKey[10] = (byte)0x93;
            this.cryptKey[11] = (byte)0x01;
            this.cryptKey[12] = (byte)0xa1;
            this.cryptKey[13] = (byte)0x6c;
            this.cryptKey[14] = (byte)0x31;
            this.cryptKey[15] = (byte)0x97;

            serverCrypt.setKey(this.cryptKey);
            clientCrypt.setKey(this.cryptKey);
            // ddcd
            packet.ReadInt32();
            packet.ReadInt32();
            packet.ReadByte();
            this.obfusicateKey = packet.ReadInt32();
            this.clientCrypt.generateOpcodeTable(this.obfusicateKey);
        }
示例#6
0
 private void onCharSelected(ByteBuffer packet)
 {
     packet.ReadString(); // name
     packet.ReadInt32(); // CharId
     packet.ReadString(); // Title
     packet.ReadBytes(196);// 196 bytes
     this.obfusicateKey = packet.ReadInt32();
     this.clientCrypt.generateOpcodeTable(this.obfusicateKey);
 }