February 3, 200719 yr 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.
February 3, 200719 yr 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. [Tip.It Mod][Retired][Add your Steam name here!]
February 3, 200719 yr Nice code. Maybe you could make this into a program? Like adding the #includes and main. Klashmere F2P PURE created on New Years
February 3, 200719 yr 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.
February 3, 200719 yr What?? I have no idea what all that mumbo jumbo is saying. 122 Combat : 99 Hits : 99 Attack : 99 Strength97/99 Defence : 99 Fletching : 99 Woodcutting
February 3, 200719 yr 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! Sodb ForumStop thinking. It's Runescape.
February 3, 200719 yr 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
February 3, 200719 yr 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.
February 3, 200719 yr 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? Retired Tip.It Mod || Admin and Founder of Caesar 3 Mod Squad! All are welcome!
February 3, 200719 yr 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).' '; } ?>
February 4, 200719 yr 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
February 4, 200719 yr 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.
February 4, 200719 yr 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. My Goals and Achievements
February 4, 200719 yr 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.
February 5, 200719 yr hi i was wondering is it possible for you to post the java version of the codes pls. Cheers
February 6, 200719 yr 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.
February 6, 200719 yr 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... New sigzor^^
February 6, 200719 yr 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?
February 6, 200719 yr 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. Website Updates & Corrections | Website Discussion
February 6, 200719 yr This code won't compile unless you add it inside a class declaration nice job btw (didn't check it thu but i will)
February 10, 200719 yr 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.
February 11, 200719 yr :( 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