But to answers your question. ZTerrain is used with small 8 bit greyscale graphics files, not larger then 64x64, in either bmp or pcx format. I usually have used bmp. This file represents a heightmap, whites are peaks and blacks are depths.
For example: for the floor and for the ceiling
From the ZTerrain_Help.txt file you can set up a batch file with appropriate settings