View Single Post
  #2  
Old 10-04-2015, 03:48 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,603
Default

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.
Reply With Quote