Code:
on *:text:!stats *:#:{ 
  var %level = 1, %champion = $replace($2-,$chr(32),_), %output
  if ($eval($ $+ $0,2) isnum) { 
    %level = $v1
    %champion = $replace($deltok($2-,-1,32),$chr(32),_)
  }
  if ($ini(champion.ini,%champion)) { 
    var %i = 1
    while ($ini(champion.ini,%champion,%i) != $null) {
      if (*lvl !iswm $v1) { %output = %output $v2 $+ : $calc($readini(champion.ini,n,%champion,$v2) + ($readini(champion.ini,n,%champion,$v2 $+ lvl) * (%level - 1))) }
      inc %i
    }
    msg # $+($chr(2),Stats for $replace(%champion,_,$chr(32)),$chr(2)) %output
  }
  else { msg # $qt($replace(%champion,_,$chr(32))) invalid champion. }
}


Try this smile

Last edited by hixxy; 21/02/13 10:36 PM. Reason: Fixed.