on *:text:!stats *:#:{
if (!$hget(stats_ignore,$nick)) {
hinc -mu5 stats_ignore $nick
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 (%level > 19) { %level = 19 }
if ($ini(champion.ini,%champion)) {
var %i = 1
while ($ini(champion.ini,%champion,%i) != $null) {
if (*lvl !iswm $v1) { %output = %output $chr(124) $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)) $gettok(%output,1-,124)
}
else { msg # $qt($replace(%champion,_,$chr(32))) invalid champion. }
}
}