The WCP Pascal compiler already comes with some units for you to use.
All WCP functions are declared in wcp.pas.
Comms.pas declares constants for use with AI_SendComm.
Pilots.pas and Ships.pas contains constansts for pilots and ships.
Finally utils.pas declares some very useful function to spawn ships. These functions are very closely based on the functions Origin wrote for their missions.