@CalebEvans1/

Pokecord Chat Calculator

Python

Use me to see how many chats you need to send to get to lvl 100 on a pokemon

fork
loading
Files
  • main.py
  • accesses.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import time

def GetExpLevel (level):
  return 275+((level-1)*25)

def CalcToLvl100 (level, exp, top):
  exp -= exp
  while level < top:
    exp += GetExpLevel(level)
    level += 1
  return exp

yee = open("accesses.txt", 'a')
yee.write(str(time.time()))
yee.close()

print("Do note, this is very rng dependant.\nHowever, if you need over 1000 posts,\nit should be close to spot-on.")
print("The Pokecord bot does have basic (time-based) spam protection.\n5 seconds should be between every post.")
print("The bot gives on average 135 exp per post.")
CurExp = int(input("Exp from p!info: "))
CurLvl = int(input("Current level from p!info: "))
Toll = int(input("Level you want to reach (up to 100): "))
print("Calculating...")
print("You need {0} exp to lvl {1}.".format(CalcToLvl100(CurLvl,CurExp,Toll),Toll))
print("This will be acheived over {0} posts.".format(str(int(CalcToLvl100(CurLvl,CurExp,Toll)/134)+1)))
print("Which will take {0} hours.".format(str(((int(CalcToLvl100(CurLvl,CurExp,Toll)/134)+1)*5)/3600)))