• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ Help with exp formula

tarantonio

Old School Player
Joined
Jun 21, 2009
Messages
823
Solutions
1
Reaction score
225
I want to make an exact 2x exp formula, based on the standard tfs exp formula:

C++:
static uint64_t getExpForLevel(uint32_t level)
{
level--;
return ((50ULL * level * level * level) - (150ULL * level * level) + (400ULL * level))/3ULL;
}

where the monsters give the same exp but you need half points to advance level.

I made a lot of changes but I can't find the exact formula to give 2x exp, can anyone help me?
 
OP
tarantonio

tarantonio

Old School Player
Joined
Jun 21, 2009
Messages
823
Solutions
1
Reaction score
225
So easy when you realize:
C++:
return ((50ULL * level * level * level) - (150ULL * level * level) + (400ULL * level))/6ULL;
 
Solution
Top