Today, I got really bored. So I decided to try to figure out how JaGex got the exp table for RuneScape. After realizing that it was too gay trying to do it mathematically, I decided to look it up.
Exp =
[ Level -1
[size=25]Σ[/size] ( n + (300*2^(n/7)))
n = 1 ] /4
Or, the summation from n=1 to Level minus 1 of n plus the product of 300 times two to the power of n over 7 all over 4
Then I put it into an alias. Hope this helps
alias rsk {
if ($1 < 1 ) || ($1 > 99 ) { halt }
var %w 1 | var %q $1 | var %e
while (%q != %w) {
inc %e $calc(%w + $floor($calc((300 * 2^( %w /7)))))
inc %w 1
}
return $floor($calc(%e /4))
}