def main(): global todos nox = App.open("Nox App Player") with Region(nox.window()): lib.login() lib.checkOK() lib.checkSkip() lib.reset() if todos["temple"] or todos["summoning"]: todos = dungeons.run(todos) lib.reset() if exists("1515159000793.png"): click("1515159012057.png") if todos["sub"]: if exists("1515079317950.png"): print("claiming reward") click("1515079317950.png") todos = weeklys.sub(todos) if todos["daily"]: lib.reset() if exists("1514888901019-1.png"): click("1514888901019-1.png") if exists("1515047937858.png"): click("1515047937858.png") todos = acceptDailys(todos) if not todos["sub"] and not todos["temple"] and not todos["summoning"]: lib.reset() todos = weeklys.run(todos)
def main(): global todos nox = App.open("Nox App Player") with Region(nox.window()): lib.checkOK() lib.checkSkip() lib.reset() todos = dungeons.run(todos)
def main(): nox = App.open("Nox App Player") with Region(nox.window()): lib.checkOK() lib.reset() if not exists("1514949313948.png"): print("looking for auto") if exists("1514955626442.png"): print("hitting auto") click("1514955626442.png")
def main(): global todos nox = App.open("Nox App Player") with Region(nox.window()): if todos["sub"]: lib.checkOK() lib.checkSkip() lib.reset() if exists("1515079317950.png"): print("claiming reward") click("1515079317950.png") todos = weeklys.sub(todos)
def run(todos): nox = App.open("Nox App Player") with Region(nox.window()): if not exists("1515140799080.png", 0) and not exists( "1515142056473.png", 0): return todos if exists("1515140799080.png", 0): print("clicking party button") click("1515140799080.png") if exists("1515140814786.png"): print("search for party") click("1515140814786.png") if exists("1515140834248.png"): print("auto join") click("1515140841821.png") if exists("1515142089421.png"): print("auto join from autojoining party menu") click("1515142097928.png") if exists("1515142048219.png"): print("auto join from auto join screen") click("1515142056473.png") if todos['temple']: if exists("1515140878528.png"): print("temple") click("1515140885522.png") wait(2) if exists("1515140907216.png"): click("1515140907216.png") click("1515140943771.png") click("1515140956348.png") if exists("1515144177462.png"): todos['temple'] = False lib.checkOK() if todos['summoning']: if exists("1515141671416.png"): print("summoning") click("1515141671416.png") wait(2) if exists("1515141688796.png"): click("1515141688796.png") click("1515141704203.png") click("1515140956348.png") if exists("1515144177462.png"): todos['summoning'] = False lib.checkOK() return todos
def sub(todos): nox = App.open("Nox App Player") with Region(nox.window()): if exists("1515319729876.png") and not exists("1515156791885.png"): print("finished with subs") todos["sub"] = False return todos if exists("1515078806613.png"): print("clicking quest available") click("1515078819634.png") if exists("1515078870435.png"): print("clicking fulfill") click("1515078889568.png") lib.checkOK() wait(3) if exists("1515078927940.png"): print("starting quest") click("1515078935414.png") lib.checkWalk() return todos
def runQuest(): c = 1 while not reward.exists("1514880563893.png"): print("in loop" + str(c)) c = c + 1 lib.checkOK() lib.checkSkip() if quest.exists("1514882132041.png"): print("clicking to accept quest") quest.click("1514867316210.png") lib.checkSkip() lib.checkWalk() print("checking accept") if exists("1514880148209.png"): click("1514880160477.png") print("accepting quest") lib.checkSkip() return
def acceptDailys(todos): nox = App.open("Nox App Player") with Region(nox.window()): print("checking dailys") r = Region(310, 298, 1069, 558) while r.exists("1515047471207.png"): print("claiming dailys reward") r.click("1515047486964.png") wait(2) while r.exists("1515047512032.png"): if exists("1515048738582.png"): print("finished with quests") lib.checkOK() return print("starting quest") r.click("1515047522216.png") wait(2) if exists("1515154167562.png"): todos["daily"] = False print("finished todos") lib.checkOK() return todos return todos
import quests import lib import weeklys from org.sikuli.natives import Vision Vision.setParameter("MinTargetSize", 3) nox = App.open("Nox App Player") while True: with Region(nox.window()): lib.login() lib.checkOK() lib.checkSkip() quests.run()