Jard_Y_Dooku Posted February 3, 2007 Share Posted February 3, 2007 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. Link to comment Share on other sites More sharing options...
Mamong Posted February 3, 2007 Share Posted February 3, 2007 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!] Link to comment Share on other sites More sharing options...
Overflow_C Posted February 3, 2007 Share Posted February 3, 2007 Nice code. Maybe you could make this into a program? Like adding the #includes and main. Klashmere F2P PURE created on New Years Link to comment Share on other sites More sharing options...
Jard_Y_Dooku Posted February 3, 2007 Author Share Posted February 3, 2007 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. Link to comment Share on other sites More sharing options...
timmay929 Posted February 3, 2007 Share Posted February 3, 2007 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 Link to comment Share on other sites More sharing options...
captianant Posted February 3, 2007 Share Posted February 3, 2007 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. Link to comment Share on other sites More sharing options...
the_drunk_dude Posted February 3, 2007 Share Posted February 3, 2007 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 Link to comment Share on other sites More sharing options...
Quasar889 Posted February 3, 2007 Share Posted February 3, 2007 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. Link to comment Share on other sites More sharing options...
Lunar_Drifter Posted February 3, 2007 Share Posted February 3, 2007 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! Link to comment Share on other sites More sharing options...
Dead_Dude4 Posted February 3, 2007 Share Posted February 3, 2007 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).' '; } ?> Link to comment Share on other sites More sharing options...
Taco Posted February 4, 2007 Share Posted February 4, 2007 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 Link to comment Share on other sites More sharing options...
Quasar889 Posted February 4, 2007 Share Posted February 4, 2007 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. Link to comment Share on other sites More sharing options...
swampjedi Posted February 4, 2007 Share Posted February 4, 2007 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 Link to comment Share on other sites More sharing options...
Rebdragon Posted February 4, 2007 Share Posted February 4, 2007 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. Link to comment Share on other sites More sharing options...
windboy Posted February 5, 2007 Share Posted February 5, 2007 hi i was wondering is it possible for you to post the java version of the codes pls. Cheers Link to comment Share on other sites More sharing options...
windboy Posted February 5, 2007 Share Posted February 5, 2007 how's the java code like? Link to comment Share on other sites More sharing options...
anonimu Posted February 6, 2007 Share Posted February 6, 2007 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. Link to comment Share on other sites More sharing options...
Nazgul740 Posted February 6, 2007 Share Posted February 6, 2007 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^^ Link to comment Share on other sites More sharing options...
Kill_Thomas9 Posted February 6, 2007 Share Posted February 6, 2007 anyone care to explain it in plain english? Link to comment Share on other sites More sharing options...
Greedom1 Posted February 6, 2007 Share Posted February 6, 2007 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? Link to comment Share on other sites More sharing options...
eyehawk78 Posted February 6, 2007 Share Posted February 6, 2007 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 Link to comment Share on other sites More sharing options...
Matok Posted February 6, 2007 Share Posted February 6, 2007 This code won't compile unless you add it inside a class declaration nice job btw (didn't check it thu but i will) Link to comment Share on other sites More sharing options...
windboy Posted February 8, 2007 Share Posted February 8, 2007 could anyone post a full coding for java pls Link to comment Share on other sites More sharing options...
xevocm8velexx Posted February 10, 2007 Share Posted February 10, 2007 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. Link to comment Share on other sites More sharing options...
Aneron Posted February 11, 2007 Share Posted February 11, 2007 :( 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: Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now