Valek Posted December 31, 2010 Author Share Posted December 31, 2010 I was wondering if anyone knew where I would find the experience and level code in the source. I am looking in the server source code and can't seem to be able to find it.CTRL + F hasn't been nice to me in this case, I keep ending up with "Option Explicit" code as opposed to "Experience"Any help would be appreciated and I will continue to look. Thanks :) Link to comment Share on other sites More sharing options...
Robin Posted December 31, 2010 Share Posted December 31, 2010 GetPlayerNextLevel Link to comment Share on other sites More sharing options...
Valek Posted December 31, 2010 Author Share Posted December 31, 2010 Thanks :) found it.EDIT: Is there a constant for experience as well? (as it was with 2.7)Example:Level 2: 5000Level 3: 6000Level 4: 7000ETC Link to comment Share on other sites More sharing options...
Robin Posted December 31, 2010 Share Posted December 31, 2010 No. It's a formula. Link to comment Share on other sites More sharing options...
Valek Posted December 31, 2010 Author Share Posted December 31, 2010 @Robin:> No. It's a formula.Okay, I think I see how it works..```GetPlayerNextLevel = (50 / 3) * ((GetPlayerLevel(Index) + 1) ^ 3 - (6 * (GetPlayerLevel(Index) + 1) ^ 2) + 17 * (GetPlayerLevel(Index) + 1) - 12)```Can you break it down for me a little bit?I see that it is running the function "GetPlayerNextLevel" I am not really sure on the logic of the formula though..'is it "50" because that is the max level a player can attain in my game. I feel so dumb. :( Link to comment Share on other sites More sharing options...
Robin Posted December 31, 2010 Share Posted December 31, 2010 I have no idea, I was high when I wrote that. Chances are I stole the experience formula from WoW or Tibia. Link to comment Share on other sites More sharing options...
Valek Posted December 31, 2010 Author Share Posted December 31, 2010 @Robin:> I have no idea, I was high when I wrote that. Chances are I stole the experience formula from WoW or Tibia.okay, well I will have to figure it out then I suppose haha :) Link to comment Share on other sites More sharing options...
Robin Posted December 31, 2010 Share Posted December 31, 2010 Pretty much all the maths in Origins is a public formula from another game like WoW or it's been written by Fabio, Rodriguez or Derg. They're my maths guys. I can't do maths at all because of my discalculia. Link to comment Share on other sites More sharing options...
chuchoide Posted December 31, 2010 Share Posted December 31, 2010 You can use the Exp INI Sys by Ballie, it can be found in Source Code Tuts. Link to comment Share on other sites More sharing options...
Robin Posted December 31, 2010 Share Posted December 31, 2010 Fairly pointless when a formula can be changed to have any sort of level progression a level list can. Much easier to update as well. Link to comment Share on other sites More sharing options...
Valek Posted December 31, 2010 Author Share Posted December 31, 2010 @Chuchoide:> You can use the Exp INI Sys by Ballie, it can be found in Source Code Tuts.Its compatible with EO? I didn't know that. - I will check it out. Thanks!EDIT: ya Robin, I agree it would be a faster update. But since I don't understand the logic of the forumla I will be at a loss. My only option will probably be to use the INI sys by Ballie. Link to comment Share on other sites More sharing options...
Robin Posted December 31, 2010 Share Posted December 31, 2010 Just make your own formula. Link to comment Share on other sites More sharing options...
Valek Posted December 31, 2010 Author Share Posted December 31, 2010 @Robin:> Just make your own formula.Between you and me, I don't have dyscalculia and I still can't write forumla's. I am reading a few VB6 E-books *flips to math based pages* 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