Fixes #1497. Thanks to @Darkelfen for reporting it. Additionally exported the EQP_* constants into the script engine. Replaced some hardcoded equip positions with their respective constants.