I spent all of 3 minutes googling and found all the tools needed to achieve this.
Go download MPQExtractor and DC6CON. All that's left is to extract the DC6 files as well as the pallet.dat files to color them, or else they will use the default gray scale pallet.
If you are looking to implement your own DC3 to PCX converter you can view dc6con.c for inspiration, although I doubt you will understand it since it works on the byte/bit level.
Quote (Ideophobe @ Jul 3 2016 02:52am)
then find the markers for those right?
start by looking at some plain dc6 files in a hex editor and find the markers, there will be some start of image and end of image hex strings. get somewhere close with that and just start grabbing chunks and trying to render it
This is pretty close to what the OP has to do if they want to implement their own extraction algorithm. Most of the time for images there is a header which contains a magic string for identification, then a list of attributes such as height, width, color depth, etc depending on how complex it is. From there most implementations usually just run the actual data to EOF, but in this case DC6 uses a EOF marker.
For example this is the DC6 header:
Code
typedef struct dc6header_s {
long version; // 06000000
long unknown01; // 01000000
long unknown02; // 00000000
byte termination[4];// EEEEEEEE or CDCDCDCD
long unknown03; // 10000000
long blockcount; // 10000000
// after this, are pointers
long pointer[];
} dc6header;
where there is a standardized version header 0x06, some unknown values (probably some kind of bitmask settings for image editors), the EOF marker, a block count (probably for how many pointer blocks there are) and a pointer to the start of the actual block data.
From there you will extract data at BLOCK_SIZE into another struct which may hold width, hight, some kind of positional data, and the color or pallet markings.
You can compare this to a hex dump of the DC6 file where you can clearly see how the header overlays overtop of the first 24 bytes:

But anyways this is probably all too complex for OP.
This post was edited by AbDuCt on Jul 3 2016 10:15pm