Jump to content


Photo
Question

Calculating Steam level from amount of experience



  • Please log in to reply
1 reply to this topic

#1 HighTech

HighTech

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 28 October 2018 - 01:24 PM

Hello guys,

My bot has !check [n] command which tells how much sets you get for a certain key. I want it as well to calculate the level the buyer would get if he bought that amount of sets. For example !check 5. For 5 keys you get let's say 50 sets. That is 5000 experience. I thought about adding that to current experience of buyer and then somehow calculating which level would that be. I will appreciate any ideas and suggestions.

Thanks in advance.


Edited by HighTech, 28 October 2018 - 01:25 PM.


#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,810 posts

Posted 30 October 2018 - 01:13 AM

If it helps any, the amount of XP needed to reach the next level goes up by 100 every 10 levels. So the amount of XP you need to reach level X is 100 + (floor(X / 10) * 100).







Also tagged with one or more of these keywords: Question

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users