--------------------
NOTE: This script is part of bonus pack 3.1.06. If you have installed the version in the bonus pack, you should uninstall this version, and vice versa.
Allows the player to dismantle a ship into its component pieces - roughly the same amounts of each that would be required to build a ship of the same type (less a proportional amount due to hull damage, if any, and a small reduction for wear and tear.) Credit costs will not be retrieved - consider it depreciation!

A new command in the additional ship commands menu will generate a report to the message log detailing approx. costs for building/RE'ing a ship of that type at the HQ.
Updated 10-12-06 - minor bugfix
Version 2.02 - Download here (Hosted by Xai Corp - thanks moggy!)
Changelog:
v2.02
- Fix for command being interrupted forcing command to be rerun twice to scrap ship again
- Corrected time factor for scrapping and reporting build/RE time for Goner ships
v2.01
- Added German translation by finnTO (Thanks finnTO!)
v2.00
- Script restructure
- Ships will now take around 10% of the time to be recycled that it would take to build the ship at the HQ
- Ship name will change to reflect the progress of recycling (percentage and time left)
- Running the command a second time or issuing any command to the ship before recycling is finished will abort the process, losing any progress made.
- Fixed the wear and tear cost at 5%. There will still also be random reductions of certain resource amounts on top of that.
- Added new command in the additional ship commands which will generate a report on approximate build/RE costs at the HQ for a ship of that type. This command can be run on any ship, and does nothing but generate the report.
v1.20
- Changed code for calculating ship value for recycling (code by Jakesnake5 - thanks Jake!)
- Removed command from playership menu
- Slightly reduces amounts recycled (randomised) - some wares will lose more than others (ore/silicon)
- Added check for more khaak ships, just in case anyone gets one somehow

- Not in the readme - You will always get at least 1 unit for the primary resources - Energy Cells, Ore, Silicon, Nividium (if khaak,) Teladianium and Crystals.
v1.10
- Fixed bug for script not checking if enough storage existed before recycling
- Fixed bug for khaak ships not providing nividium from recycling
- Fixed low relval ships not supplying resources
- Added script setup check for HQ to disable command if HQ not yet built
- Added log entry giving resource amounts recovered when recycling
- General script cleanup and improvement
v1.00
- Initial release
Kudos to Dave Toome for his work on the HQ production cost calculator - I have based the formulae I am using in this script on his work. The calculator is available for download from this thread
The script uses COMMAND_TYPE_SPECIAL_56, COMMAND_TYPE_SHIP_38 and page id 8235