private void clientPacket(L2BasePacket packet) { int opcode = packet.GetOpcode(); switch (opcode) { case 0x0e: // Protcolversion packet.Data.SetIndex(2); packet.Data.ReadByte(); //Opcode packet.Data.WriteUInt32(828); // Protocolversion break; default: break; } }
private void serverPacket(L2BasePacket packet) { int opcode = packet.GetOpcode(); switch (opcode) { case 0x2e: //keypacket packet.Data.SetIndex(3); packet.Data.ReadByte(); packet.Data.ReadBytes(8); packet.Data.WriteInt32(0x01); packet.Data.WriteInt32(0x01); packet.Data.WriteByte(0x00); packet.Data.WriteInt32(0x00); break; default: break; } }