Simply change 'MAXID' to your highest ID, assuming they're all in a range:
Code:
sub EVENT_TASK_COMPLETE {
if($task_id ~~ [311..MAXID]) {
quest::ding();
$client->AddAAPoints(2);
$client->Message(4, "You receive two additional AA!");
}
}
~~ Is the smartmatch operator that attempts to match the left operand to the any data in the right operand, similar to a grep of an array.