click(NoxResources.BUTTON_PRIZE) wheel(Pattern("1599973746387.png").targetOffset(227,-209), Button.WHEEL_DOWN, 15) wait(5) for dmpp in dmpps: click(dmpp) wait(1) click("1596590612922.png") waitVanish("1596590612922.png", 60) import sys.argv appname = 'QUICKPREPARE' Settings.MoveMouseDelay = 0.1 drive = DriveApis("DMPAuto", CommonDMLib.getCredentials()) sheets = SpreadSheetApis("DMPAuto", CommonDMLib.getCredentials()) twitterIds = None try: if len(sys.argv) > 1 and sys.argv[1] == "1": ref = CommonDMLib.checkPrepareGameTradeDraft(); else: ref = input("[Quick]Enter Ref") if not CommonDMLib.isRefAvailable(sheets, ref): CommonDMLib.sendMessagetoSlack("ERROR", EnvSettings.mentionUser, 'Preparing was stopped. Ref:' + str(ref) + "is not available now.", appname) exit() if not CommonDMLib.isNoxOn(): print "MAIN is off"
appname = 'DAILY' Settings.MoveMouseDelay = 0.1 Settings.DelayBeforeDrag = 0.5 mode = EnvSettings.RUN_MODE MAX_RETRY_COUNT = 10 #Pre-processing Start App(EnvSettings.AppPath).close() App(EnvSettings.AndAppPath).close() if CommonDMLib.isNewVersionAvailable(): exit(50) CommonDMLib.deleteIdentifiers() CommonDMLib.downloadDeckCodes() sheets = SpreadSheetApis("DMPAuto", CommonDMLib.getCredentials()) drive = DriveApis("DMPAuto", CommonDMLib.getCredentials()) #Pre-processing End def finishMissions(instance, statisticsData, sheets): CommonDMLib.sendMessagetoSlack( "DEBUG", mentionUser, 'Account' + str(instance) + ' was completed.', appname) CommonDMLib.closeMission(NoxResources) CommonDMLib.getPresent(NoxResources) CommonDMLib.getMissionRewards(NoxResources) if CommonDMLib.getBeginnerRewards(NoxResources): CommonDMLib.openCardPack(NoxResources) if datetime.now().day == 16: # or datetime.now().day == 16: for openCardListLoop in range(100): if len(findAny(NoxResources.ICON_CARD)) > 0:
apo = "apo.png" ####################Settings#################### TARGET_DMP = 4500 DECK_BLIZZARD = {"NAME":"Blizzard", "SR" : [blizard], "VR" : [spark,apo,court], "COLOR" : ["1603262159403.png", "1603262167793.png"]} DECK_LANCER = {"NAME":"Lancer", "SR" : [lancer,para], "VR" : [vision,surfer,spark], "COLOR" : ["1603262159403.png","1599975832115.png"]} DECK_SAPPIRE = {"NAME":"Bolmeteus Sappire", "SR" : [sapphire,sabaki,lostsoul], "VR" : [extreme,surfer,daemonhand], "COLOR" : ["1599975832115.png","1599975856377.png","1599975849850.png"]} DECK_BALOM = {"NAME":"Balom", "SR" : [dolbalom,dolbalomSec,lostsoul,sabaki], "VR" : [surfer,daemonhand], "COLOR" : ["1599975832115.png","1599975856377.png","1599975849850.png"]} TARGET_DECKS = [DECK_LANCER] ####################Settings#################### appname = 'RESET' mentionUser = EnvSettings.mentionUser Settings.MoveMouseDelay = 0.1 DMApp = App(EnvSettings.NoxAppPath) sheets = SpreadSheetApis("DMPAuto", CommonDMLib.getCredentials()) drive = DriveApis("DMPAuto", CommonDMLib.getCredentials()) #resources OK = Pattern("OK.png").similar(0.90) OK2 = Pattern("OK2.png").similar(0.80) tutorial = "tutorial.png" retry = "retry.png" def countCard(target): x1 = Pattern("x1.png").similar(0.85) x2 = Pattern("x2.png").similar(0.92) x3 = Pattern("x3.png").similar(0.91) x4 = Pattern("x4.png").similar(0.90)