• 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!

TFS 1.X+ TFS 1.3 Level Up Reward insted of EXP upon finishing a task?

Mr Noxi

Noxus Otserver
Joined
May 13, 2010
Messages
272
Solutions
3
Reaction score
94
Location
Sweden
Hey

So i have a task system that rewards player by item/exp bla bla bla,

my question is if its possible to instead of adding Experience as reward to add a full lvl up insted?

What i mean by full level is exampel if player is lvl 100 with 50% left to lvl 101 and gets a "Full lvl" he will be lvl 101 with 50% left to 102.

Thankss! :)
 
Yes.

Take the experience required to get from your current level 0% to 100%.

Do the same for the next level.

Get your current experience, and calculate your current percentage.

Use that percentage to determine how much experience the next level will provide.

Finally, add the percentage experience for next level to the experience required to currently level you.

Then add it all as one experience change.

Make sure to ignore any experience modifiers, so that the player doesn't accidentally get more then you intended to give.
 
Back
Top