I am trying to get 2 AA added to a character each level up to and including level 50. I have pieced this together from other peoples code to try and get it to work. I am placing this in the ...quest/global/global_player.lua file. I am not sure what I am doing but trying to learn lol.
Code:
sub EVENT_LEVEL_UP
if ($ulevel < 51) {
$client-AddAAPoints(2);
}
}