I just kinda copied this from another post hidden in the top 3 or 4 recent posts...

Code:
alias pointsforall {
  var %v = 1
  while (%v <= $nick($1,0)) {
    add.pts $nick($1,%v) (or whatever syntax your add.pts uses)
    inc %v
  }
}