hey, I'm not code god either but I did clean this up a little. I'm on 3.64 but I assume it'll work for you too.
create a new plugin at hook "newpost_complete"
Code:
$pointsperreply=1; // repuation points per reply. 0 to disable
$pointsperthread=1; // repuation points per thread. 0 to disable
if ($foruminfo[forumid]!=18 && $foruminfo[forumid]!=6) {
if ($type == 'thread') {
$reppoints=$pointsperthread;
} else {
$reppoints=$pointsperreply;
}
if ($reppoints) {
$vbulletin->db->query_write("UPDATE user SET reputation=reputation+".$reppoints." WHERE userid=".$vbulletin->userinfo['userid']);
}
}
this uses only 1 query instead of 2, lets you set different values for threads & replies, and lets you disable either.
still not sure I want to hand out rep points for every post but since I'm using rep points for vBookie, they might need em.