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.

RuneScape Levels and Experience formula

Featured Replies

Here's the formulas for RuneScape levels and experience in C++ (these are THE formulas, 100% accurate)...

 

 

 

 

 

 

 

My main reason for posting this is: STOP making topics on this! Here's the formulas, the end. Leave your TI-84's on the desk, don't go on a crusade to find it, HERE it is. STOP looking. If you want to talk about it here, talk. But stop posting about how we need to find it. Because we have it. Right here. Read. Also, here is the formula in a few different programming languages:

 

 

 

 

 

 

 

C++

 

 

 

// Levels to XP



public: double l2x(int level)



	{



		double test = 0;



		double counter1 = 0;



		double diff = 0;







		for (double clvl = 1; clvl < level; test = Math::Floor(counter1 / 4), clvl++)



		{



			diff = Math::Floor(clvl + 300 * Math::Pow(2, clvl / 7));



			counter1 += diff;



		}



		return test;



	}







// XP to Levels



public: double x2l(int exp)



	{



		double points = 0;



		double output = 0;







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



		{



			points += Math::Floor(lvl + 300 * Math::Pow(2, lvl / 7.));



			if (lvl >= 1)



			{



				if (output > exp)



				{



					lvl = lvl - 1;



					if (lvl == 0)



					{



						return 1;



					}



					else if (lvl > 99)



					{



						return 99;



					}



					else



					{



						return lvl;



					}



				}



				output = Math::Floor(points / 4);



			}



		}



		return 0;



	}

 

 

 

 

 

 

 

Will add more languages later...

  • Never trust anyone. You are always alone, and betrayal is inevitable.
  • Nothing is safe from the jaws of the decompiler.

I don't know much about computer codes, but wouldn't it be easier to use Tip.It's XP table? It tells you the difference between each level and shows the XP from 1 to 99.

Mamong.png

336489.jpg

[Tip.It Mod][Retired][Add your Steam name here!]

Nice code.

 

 

 

 

 

 

 

Maybe you could make this into a program? Like adding the

 

 

 

#includes

and main.

Klashmere

 

F2P PURE created on New Years

  • Author
Nice code.

 

 

 

 

 

 

 

Maybe you could make this into a program? Like adding the

 

 

 

#includes

and main.

 

 

 

 

 

 

 

I have a program already. Maybe I'll post it here. But right now it's 4 AM and I am exhausted. Good night.

  • Never trust anyone. You are always alone, and betrayal is inevitable.
  • Nothing is safe from the jaws of the decompiler.

What?? I have no idea what all that mumbo jumbo is saying.

122 Combat : 99 Hits : 99 Attack : 99 Strength

97/99 Defence : 99 Fletching : 99 Woodcutting

What?? I have no idea what all that mumbo jumbo is saying.

 

 

 

 

 

 

 

It's a source code for C++, a commonly taught programming language.

 

 

 

 

 

 

 

BTW- nice code! I wanna try compiling that and using it from time to time!

plzstayokrf4.png

sodb4jz.jpg

Sodb Forum

siggiedxc2.png

Stop thinking. It's Runescape.

for ur information thats a TI 86!!

 

 

 

 

 

 

 

lol nice, i never bothered looking for it though... i just lvl up and leave it at that :wall: cheers to u though

Well, basically, that's hawt.

 

 

 

 

 

 

 

Seen this before, but good of you to post it again.

 

 

 

 

 

 

 

It's basically the graph of an exponential function, and you can do a pretty good approximation with an exponential regression on a TI-84, but this is a much more accurate method, so as you posted, put those noob calcs away and get an 89 Platinum ;-)

You act like the game community is like the stinking bowels of hell.... In all reality.. its much.. much... worse.

 

untitled6kv7.gif

It's a source code for C++, a commonly taught programming language.

 

 

 

 

 

 

 

BTW- nice code! I wanna try compiling that and using it from time to time!

 

 

 

 

 

 

 

That looks more like Java, are you sure that's not what it is? Anyways, I'm not up for checking it out and whatnot but it looks good. Do you know if it works? Have you tested it?

demonslayer2.png

Retired Tip.It Mod || Admin and Founder of Caesar 3 Mod Squad! All are welcome!

I've had that formula for quite a while :P Found it here on the forums one day (yes, I do search alot :P).

 

 

 

Anyways, here's a php version of the code for those who'd like to use it on websites and such:

 

 

 

 

 

 

 

<?

 

 

 

//Function that calculates the xp

 

 

 

function experience($B) {

 

 

 

$a=0;

 

 

 

for($x=1; $x<$B; $x++) {

 

 

 

$a += floor($x+300*pow(2, ($x/7)));

 

 

 

}

 

 

 

return floor($a/4);

 

 

 

}

 

 

 

 

 

 

 

//A small code that lists all xp / levels (you can change this to a single level / xp or whatever you want)

 

 

 

for($B=1;$B<100;$B++) {

 

 

 

echo 'Level '.$B.': '.experience($B).'

 

';

 

 

 

}

 

 

 

?>

Dead+Dude4.png

I opened up a notepad, pasted the first CC+ code into it and saved it as a .bat and It didn't work. Anyone caare to explain I won't mind.

I play World Of Warcraft.

(http://www.worldofwarcraft.com)

 

Draka [Alliance] Squeeky Mage

You need to compile it first.

 

 

 

Usually that's done in GCC,

 

 

 

you can download a program called Bloodshed DevC++ which will do a great job.

You act like the game community is like the stinking bowels of hell.... In all reality.. its much.. much... worse.

 

untitled6kv7.gif

 

It's a source code for C++, a commonly taught programming language.

 

 

 

 

 

 

 

BTW- nice code! I wanna try compiling that and using it from time to time!

 

 

 

 

 

 

 

That looks more like Java, are you sure that's not what it is? Anyways, I'm not up for checking it out and whatnot but it looks good. Do you know if it works? Have you tested it?

 

 

 

 

 

 

 

It's not Java, it's C++ for sure. Java doesn't use the :: operator.

Man I should've taken that computer class last year -.- .

[if you have ever attempted Alchemy by clapping your hands or

by drawing an array, copy and paste this into your signature.]

 

Fullmetal Alchemist, you will be missed. A great ending to a great series.

hi i was wondering is it possible for you to post the java version of the codes pls. Cheers

Kylemadigan.png

how's the java code like?

Kylemadigan.png

 

 

 

Seen this before, but good of you to post it again.

 

 

 

 

 

 

 

It's basically the graph of an exponential function, and you can do a pretty good approximation with an exponential regression on a TI-84, but this is a much more accurate method, so as you posted, put those noob calcs away and get an 89 Platinum ;-)

 

 

 

ditto

 

 

 

 

 

 

 

I think it'd look a lot better if you'd write it in LaTex... A lot easier to read...

Losers...

Are you blind or ignoring me on purpose?

Even though I sometimes side with religious people in some debates, I no longer consider myself religious.

Yawn... I didn't know it in C++ but since for my game we're gonna use a manipulated version anyway... well it doesn't make much difference to me...

 

 

 

 

 

 

 

c7d3d22618.gif

jfkmk3.jpg

 

New sigzor^^

anyone care to explain it in plain english?

This really makes my leveling to 99 seem so much less heroic, sexy, and otherwise awesome and so much more... well... like counting from 1 to 99. (With some added flair thrown in of course.)

 

 

 

 

 

 

 

Great, you just summed up billions of hours wasted, and millions of dollars in only a few lines of code.... :wall:

 

 

 

 

 

 

 

Makes me think that maybe reading a book and seeing the sunshine does have value in it after all.... Nah! :notalk:

 

 

 

 

 

 

 

Woot! Another level! :wink:

 

 

 

 

 

 

 

 

 

 

 

(Thanks though for posting this - I'm sure it will help out some of the tip.it community.)

RSN: Greedom1 | QP 248+ | Combat 116 | Total 1920+ | Skills 95 craft, 99 farm, 88 herb, 91 mage, 85 slayer

Values? What do they mean?

 

 

It's a source code for C++, a commonly taught programming language.

 

 

 

 

 

 

 

BTW- nice code! I wanna try compiling that and using it from time to time!

 

 

 

 

 

 

 

That looks more like Java, are you sure that's not what it is? Anyways, I'm not up for checking it out and whatnot but it looks good. Do you know if it works? Have you tested it?

 

 

 

 

 

 

 

It's not Java, it's C++ for sure. Java doesn't use the :: operator.

 

 

 

 

 

 

 

Java is heavily based on C, so the syntax is very similar.

This code won't compile unless you add it inside a class declaration

 

 

 

nice job btw (didn't check it thu but i will)

could anyone post a full coding for java pls

Kylemadigan.png

Sorry, English only.

Lamest attempt at a lure ever.
No, Ive seen "selling easter egg 5m must be level 78 77 or 76 and meet at varrock bar unarmed.

:( now I'm all confuzzled. BTW don't you be dissing my TI-84... I won it by answering some Pre-Algebra level questions online....

 

 

 

 

 

 

 

Could somebody explain in words what you do to translate your xp into your level? :pray:

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.