Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Expierence formula

Featured Replies

My approximation is slightly more useful (well computation friendly) than the one on page 2.

 

Which approximation from page 2 are you comparing to?

 

 

 

Yours, the constants are not so awkward is what I mean when I say "slightly more useful (well computation friendly)".

there are no stupid questions

just way too many inquisitive idiots

balance is scary to people who like things easy for them

Utopianflame.png

  • Replies 64
  • Views 5k
  • Created
  • Last Reply

Top Posters In This Topic

I see.

 

 

 

My approximation did not use floor or ceil but if I add them in then

 

 

 

Level ~= floor(0.5 + )

 

 

 

is exact for levels 19 through 99

now i can see why there is a 99 cap for skills :shock:

 

 

 

Nonsense... Level 421 - 917187883580515200000 xp

 

 

 

Are you lazy? Only 3.821.616.181.585.480.000 moss giants to go for that level!

see, somewhere around lvl... oh say.... 180 or so, you really wouldn't have a life anymore.
thhah.gif
now i can see why there is a 99 cap for skills :shock:

 

 

 

Nonsense... Level 421 - 917187883580515200000 xp

 

 

 

Are you lazy? Only 3.821.616.181.585.480.000 moss giants to go for that level!

see, somewhere around lvl... oh say.... 180 or so, you really wouldn't have a life anymore.

 

 

 

what????

 

arenascape uses the same formula as rs....

 

In as I have 211 strength :D

 

88,913,031,673 xp for next str lvl...

 

 

 

btw if there was no max lvl there would be ppl with lvl 126 skills

 

 

 

I tried doing this:

 

 

 


function levelToExp(lvl)

{

 var A = 720.533673767946;

 var B = 0.00000000354298390625729;

 var C = -0.0000010176384179772;

 var D = 0.0000969859806900786;

 var E = 0.121741672963253;

 var F = -0.2074127222877;

 var G = 0.139103528112173;

 var L = lvl;

 return Math.floor(A*(Math.pow(2,(L/7))-Math.pow(2,(1/7))) + Math.pow(B*L,5) + Math.pow(C*L,4) + Math.pow(D*L,3) + Math.pow(E*L,2) + F*L + G);

}

 

 

 

but it was slightly off, maybe I made a typo somewhere?

 

 

 

BUMP anyone???

EDIT - NVM

 

 

 

got it working lol:

 

 

 


function levelToExp(lvlinput) 

{

  var points = 0; 

  var output = 0;

  var test;

  lvlinput--;

  for (var lvl = 1; lvl <= 150; lvl++) 

  {

    points += Math.floor(lvl + 300 * Math.pow(2, lvl / 7.)) 

    output = Math.floor(points / 4); 



    if (lvl == lvlinput)

    { 

      return output;

    }

  }

}

 


function levelToExp(lvl)

{

 var A = 720.533673767946;

 var B = 0.000 000 003 54298390625729;

 var C = -0.000 001 017 6384179772;

 var D = 0.000 096 9859806900786;

 var E = 0.121741672963253;

 var F = -0.2074127222877;

 var G = 0.139103528112173;

 var L = lvl;

 return Math.floor(A*(Math.pow(2,(L/7))-Math.pow(2,(1/7))) + Math.pow(B*L,5) + Math.pow(C*L,4) + Math.pow(D*L,3) + Math.pow(E*L,2) + F*L + G);

}

 

 

 

but it was slightly off, maybe I made a typo somewhere?

 

 

 

BUMP anyone???

 

Hmmm, I get perfect results when I use that formula with a Floor function.

 

Although your code does look clean.

 

Are you using double precision evaluations?

I don't suppose you'd accept a piecewise function:

 

xp6ve.jpg

 

 

 

Honestly, Ithink it'd just be easier to look them up in a table than try to find a formula for that. If I have a bit of spare time I'll keep working on it though.

piecewise FTW!! i'm still just learning the vast casm that is sums. plus, i have no idea what "floor" is.

proud quest cape owner

here's my first post on the TIF (scroll to the bottom)

feel free to pm me, but do make sure that i know you're a Tip.It user (in other words, give me a HYT)

signatureTIF.jpg

So how much exp for level 1000? :twisted:

sig5235ro7.jpg
EDIT - NVM

 

 

 

got it working lol:

 

 

 


function levelToExp(lvlinput) 

{

  var points = 0; 

  var output = 0;

  var test;

  lvlinput--;

  for (var lvl = 1; lvl <= 150; lvl++) 

  {

    points += Math.floor(lvl + 300 * Math.pow(2, lvl / 7.)) 

    output = Math.floor(points / 4); 



    if (lvl == lvlinput)

    { 

      return output;

    }

  }

}

if you want to avoid levels above 99 and level 0 instead of 1, i advise you to use the version i posted :) but happy we could help, you prob could have found it anyways on the site just just copied it there :)

 

 

 

And to people who ask who has time for stuff like this; we're some of the same pople who make sure tip.it is here to help you out, so be nice to us, will ya? ;)

i love rs, and i love maths, but when i see them together, i go bananas

Currently hunting for clues. Any advice? PM me please =)

Level 124 - 154948977 xp

 

Level 125 - 171077457 xp

 

Level 126 - 188884740 xp

 

Level 127 - 208545572 xp

 

Level 128 - 230252886 xp

 

 

 

That explains the level 126 combat cap...

 

As 200M is the experience cap then that carries through to combat. First to notice, wow that's a first.

calciumpixelsigil3.png

Click my signature for my blog!

well, the exp cap is at 200mil, so making it go up to 40trill would be crazy

  • 3 weeks later...

Could somebody tell me if this code in PHP is correct ?

 

 

 

<?php

function expToLvl($p_nExp) {

$nTotalExp=0;

for ($nLvl=1; $nLvl <= 99; $nLvl++) {

	$nCurrExp=$nLvl+300*pow(2,($nLvl/7));

	$nCurrExp=floor($nCurrExp)/4;

	$nTotalExp+=$nCurrExp;

	if($p_nExp < $nTotalExp) {	

		echo "your lvl is ".$nLvl;

		break;

		}

	}

}

?>

Level 124 - 154948977 xp

 

Level 125 - 171077457 xp

 

Level 126 - 188884740 xp

 

Level 127 - 208545572 xp

 

Level 128 - 230252886 xp

 

 

 

That explains the level 126 combat cap...

 

As 200M is the experience cap then that carries through to combat. First to notice, wow that's a first.

 

 

 

Hmm, I think it's a coincidence...

Runescape: Lodev (Combat level been fixed at 101 for years now, Total level 1500+, playing since march 2002)

Arenascape: Lode (Level 240+ Warlock)

The floor means simply to round down I think it's a method within javascript which rounds numbers down.

 

 

 

What the sigma is basically saying is calculate each levels experience points and add them all together. So basically for level 1 you do:

 

 

 

x = the level you want

 

 

 

(1 + 300 * 2 ^ x/7)/4. All of that is then rounded down.

 

 

 

For level 2 you do the same procedure as before however the number you get from that is added to the previous calculation. So basically you're doing the (x + 300*2^x/7/4) for x = 1 then doing the same thing again but for x = 2 then adding the 2 results together to get the experience needed for level 2.

 

 

 

thank you! now i understand all that stuff! thanks!

 

 

 

and wow 200m will take them a ways to 99

 

 

 

really now who is going to get 917,187,883,580,515,200,000 (nine hundred seventeen quintillion, one hundred eighty seven quadrillion, eight hundred eighty three trillion, five hundred eighty billion, five hundred fifteem million, two hundred thousand) exp needed for level 421???

 

 

 

maybe if there were a faster way.

 

 

 

also did anyone else notice that whoever has the 200m cooking exp is level 126 and would be like level 127 or higher if the cap gets removed

tipitlessersigea3.png

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.