Never modify core code. CB is filled with Triggers. Triggers let CB plugins or even 3rd party extensions hook into CBs usages. This is how CB Auto Actions is able to function (acts on those triggers). Using CB Auto Actions and its Code action you could run AUP API for example to add points. Looking at the page you linked the below is an example usage for CB Auto Actions Code action.
Code:
$api_AUP = JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helper.php';
if ( file_exists( $api_AUP ) ) {
require_once ( $api_AUP );
}
$aupid = AlphaUserPointsHelper::getAnyUserReferreID( '[user_id]' );
if ( $aupid ) {
AlphaUserPointsHelper::newpoints( 'function_name', $aupid );
}
Please understand the above is just an example. I in no way have tested it or can guarantee it'll function. Please consult with AUP for further usage information regarding their API.