Well, you can start by first identifying all the SQL queries in the source code which perform the actions (e.g. write a new article to DB) and then write a new query after this to add points to the user who performed the task. The databse table which holds the points is #__comprofiler.
Every time you need to upgrade, you lose the hacks and need to do them again.