Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO] Experience/Level module?


Valek
 Share

Recommended Posts

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

@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

@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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...