-
Notifications
You must be signed in to change notification settings - Fork 2
/
GetTotalMeso.py
61 lines (48 loc) · 1.94 KB
/
GetTotalMeso.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import os, sys, Terminal, Character, GameState, Login
# GetTotalMeseo.py
# Author: Comicals
# 10/16/18
startslot = 0
maxMeso = 29999999999
def LineEdit(line, value):
if Terminal.GetLineEdit(line) != value:
Terminal.SetLineEdit(line, value)
def CheckBox(set, value):
if Terminal.GetCheckBox(set) != value:
Terminal.SetCheckBox(set, value)
def CheckAccountMeso(max):
totalMeso = 0
while int(Terminal.GetLineEdit("LoginChar")) < max:
if GameState.IsInGame():
if Character.GetMeso() < maxMeso:
f.write(Character.GetName()+": "+str(Character.GetMeso())+"\n")
totalMeso = totalMeso + Character.GetMeso()
print(Character.GetName(), "did not have max meso", Character.GetMeso())
time.sleep(3)
LineEdit("LoginChar", str(int(Terminal.GetLineEdit("LoginChar"))+1))
Terminal.Logout()
else:
f.write(Character.GetName()+": "+str(Character.GetMeso())+"\n")
totalMeso = totalMeso + Character.GetMeso()
print(Character.GetName(), "has meso" ,Character.GetMeso())
time.sleep(3)
LineEdit("LoginChar", str(int(Terminal.GetLineEdit("LoginChar"))+1))
Terminal.Logout()
else:
print("Not in game, waiting character to login", flush = True)
time.sleep(10)
CheckBox("Auto Login", False)
return totalMeso
if GameState.GetLoginStep() == 2:
max = Login.GetCharCount()
LineEdit("LoginChar", str(startslot))
CheckBox("LoginChar", False)
CheckBox("Auto Login", True)
f = open("MESO_"+Login.GetChar(0).name+".txt", "a")
totalMeso = CheckAccountMeso(max)
print("total meso :", totalMeso)
f.write("\n Total meso: "+str(totalMeso))
f.close()
else:
print("must be in character screen to start the script")
CheckBox("Auto Login", False)