Esempio n. 1
0
 def __GetWorld(self, LineEditID):
     if Terminal.GetComboBox('LoginServer') == 0:
         return
     elif Terminal.GetComboBox('LoginServer') == 1:
         IDToName = {
             0: 'RebootNA',
             1: 'GRAZED',
             2: 'MYBCKN',
             3: 'MYBCKN',
             4: 'GRAZED',
             5: 'GRAZED',
             6: 'GRAZED',
             7: 'GRAZED',
             8: 'GRAZED',
             9: 'MYBCKN',
             10: 'MYBCKN',
             11: 'MYBCKN',
             12: 'MYBCKN',
             13: 'Khroa',
             14: 'Windia',
             15: 'Khroa',
             16: 'Bera',
             17: 'Scania'
         }
         return IDToName[LineEditID].lower()
     elif Terminal.GetComboBox('LoginServer') == 2:
         IDToName = {0: 'Luna', 1: 'RebootEU'}
         return IDToName[LineEditID].lower()
Esempio n. 2
0
 def __LogGM(self):
     try:
         worldStatus = ast.literal_eval(
             self.__ReadGMLogs())[self.__GetWorld(
                 Terminal.GetComboBox('LoginWorld'))]
         worldsToCheck = ast.literal_eval(
             self.__ReadWorldsToLogOut())[self.__GetWorld(
                 Terminal.GetComboBox('LoginWorld'))]
         if worldStatus == 'online' and bool(worldsToCheck):
             Terminal.SetCheckBox('Auto Login', False)
             Terminal.Logout()
         if worldStatus == 'offline' and bool(worldsToCheck):
             Terminal.SetCheckBox("Auto Login", True)
     except:
         pass
Esempio n. 3
0
 def __LogGM(self):
     GMLogs = self.__ReadGMLogs()
     world = Terminal.GetComboBox('LoginWorld')
     worldStatus = ast.literal_eval(GMLogs)['worlds'][self.__GetWorld(
         world)]['status']
     worldsToCheck = self.__ReadWorldsToLogOut()[self.__GetWorld(world)]
     if worldStatus == 'online' and bool(worldsToCheck):
         Terminal.SetCheckBox('Auto Login', False)
         if GameState.IsInGame():
             Terminal.Logout()
     if worldStatus == 'offline' and bool(worldsToCheck):
         Terminal.SetCheckBox("Auto Login", True)
def NobodyAllows():
    if Terminal.GetComboBox("HackingOpt") != 0:
        Terminal.SetComboBox("HackingOpt", 0)
SCLib.StartVars()
if SCLib.GetVar("ChuchuDone") is None:
    SCLib.PersistVar("ChuchuDone", False)
if SCLib.GetVar("DreamDone") is None:
    SCLib.PersistVar("DreamDone", False)
if SCLib.GetVar("SpiritDone") is None:
    SCLib.PersistVar("SpiritDone", False)
if SCLib.GetVar("DDCoinDone") is None:
    SCLib.PersistVar("DDCoinDone", False)
if SCLib.GetVar("DDCoin") is None:
    SCLib.PersistVar("DDCoin", Inventory.GetItemCount(4310227))
if SCLib.GetVar("SpiritCoin") is None:
    SCLib.PersistVar("SpiritCoin", Inventory.GetItemCount(4310235))
if SCLib.GetVar("defaultEva") is None:
    SCLib.PersistVar("defaultEva", Terminal.GetComboBox("HackingOpt"))
    
options = ['General FMA', 'Full Map Attack', 'Grenade Kami', 'Mob Falldown', 'Kami Vac', 'bot/kanna_kami', 'bot/si_no_wait', 'Skill Injection', 'Auto Attack']
for option in options:
    if SCLib.GetVar(option) is None:
        SCLib.PersistVar(option, Terminal.GetCheckBox(option))
    else:
        SCLib.UpdateVar(option, Terminal.GetCheckBox(option))

SCHotkey.StartHotkeys(100)
def KillPersistVarThred():
	print("Restarting SCLib variables")
	SCLib.StopVars()
	time.sleep(1)

SCHotkey.RegisterKeyEvent(HotKey, KillPersistVarThred) #F10
Esempio n. 6
0
    print("Initialize variables for {0}".format(CharName))
    SCLib.PersistVar("DailyDate" + CharName, time.gmtime().tm_mday)
    SCLib.PersistVar("VJDone" + CharName, False)
    SCLib.PersistVar("ChuchuDone" + CharName, False)
    SCLib.PersistVar("DreamDone" + CharName, False)
    SCLib.PersistVar("SpiritDone" + CharName, False)
    SCLib.PersistVar("DDCoinDone" + CharName, False)
    SCLib.PersistVar("MorassDone" + CharName, False)
    SCLib.PersistVar("ChuchuRun" + CharName, 0)
    SCLib.PersistVar("DreamRun" + CharName, 0)
    SCLib.PersistVar("SpiritRun" + CharName, 0)
    SCLib.PersistVar("ChuchuSymbol" + CharName, 0)
    SCLib.PersistVar("DDCoin" + CharName, Inventory.GetItemCount(4310227))
    SCLib.PersistVar("SpiritCoin" + CharName, Inventory.GetItemCount(4310235))
    SCLib.PersistVar("defaultEva" + CharName,
                     Terminal.GetComboBox("HackingOpt"))
    SCLib.PersistVar("Completed" + CharName, False)
    SCLib.PersistVar("startingMap" + CharName, Field.GetID())
elif SCLib.GetVar("DailyDate" + CharName) != time.gmtime().tm_mday:
    print("Daily has been reset. Reset daily status")
    SCLib.UpdateVar("DailyDate" + CharName, time.gmtime().tm_mday)
    SCLib.UpdateVar("VJDone" + CharName, False)
    SCLib.UpdateVar("ChuchuDone" + CharName, False)
    SCLib.UpdateVar("DreamDone" + CharName, False)
    SCLib.UpdateVar("MorassDone" + CharName, False)
    SCLib.UpdateVar("SpiritDone" + CharName, False)
    SCLib.UpdateVar("DDCoinDone" + CharName, False)
    SCLib.UpdateVar("ChuchuRun" + CharName, 0)
    SCLib.UpdateVar("DreamRun" + CharName, 0)
    SCLib.UpdateVar("SpiritRun" + CharName, 0)
    SCLib.PersistVar("ChuchuSymbol" + CharName, 0)