Opposite Of player.getExpToLevel()

Discussion in 'Plugin Development' started by danthonywalker, Aug 5, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    danthonywalker

    Is there a method that does exactly the opposite of player.getExpToLevel()? Where instead of saying how far you are from leveling up it tells you how far you are into your current level? I need an integer amount, not the percentage amount like player.getExp() returns. If there is no such method, is there a mathematical way of doing so?
     
  2. Offline

    Chiller

    danthonywalker The getExp return a number out of 100 are you saying you want the number out of 20 or something?
     
  3. Offline

    danthonywalker

    Chiller I'm asking for an exact amount that the player is into their level. So like say their level 14, and getExpToLevel() returns 5, that means whatever method or formula of what I want returns 12 (because it takes 17 levels get get to the next level). getExp, as far as I know, returns a percentile like number, 0 to 1, but that's not what I want.
     
  4. Offline

    Chiller

    danthonywalker Ok so getExp is the percent of exp the player has so if you times that by getExpToLevel you will get the current exp for that level!
     
Thread Status:
Not open for further replies.

Share This Page