Esempio n. 1
0
    def init(printCoords: bool = False) -> None:
        """Initialize Window class variables.
        Helper.init() should go at the very top of any script, straight after imports.
        """
        rect = Window.init()
        w = rect[2] - rect[0]
        h = rect[3] - rect[1]

        cds = Inputs.pixel_search(coords.TOP_LEFT_COLOR, 0, 0, w, h)
        if cds is None:
            raise RuntimeError("Game window not found. Maybe it's minimized?")
        Window.setPos(*cds)

        # Sometimes the very first click is ignored, this makes sure the first click is unimportant.
        Inputs.click(*coords.WASTE_CLICK)

        if printCoords: print(f"Top left found at: {Window.x}, {Window.y}")
Esempio n. 2
0
    def init(printCoords: bool = False) -> None:
        """Initialize Window class variables.
        Helper.init() should go at the very top of any script, straight after imports.
        """
        rects = Window.init()
        for window_id, rect in rects.items():
            if printCoords: print(f"Scanning window id: {window_id}")
            w = rect[2] - rect[0]
            h = rect[3] - rect[1]
            Window.id = window_id
            cds = Inputs.pixel_search(coords.TOP_LEFT_COLOR, 0, 0, w, h)
            if cds:
                Window.setPos(*cds)
                break
        if cds is None:
            raise RuntimeError(
                "Game window not found. Maybe it's minimized or the game is not fully visible?"
            )
        # Sometimes the very first click is ignored, this makes sure the first click is unimportant.
        Inputs.click(*coords.WASTE_CLICK)

        if printCoords: print(f"Top left found at: {Window.x}, {Window.y}")
Esempio n. 3
0

#    print("Going into Sleep till 30 mins up?")
#    print(str(f.rt_to_seconds()) + " < end")

    if rt > end:
        f.do_rebirth()
        time.sleep(1)
        rt = f.rt_to_seconds()
    return

w = Window()
i = Inputs()
nav = Navigation()
feature = Features()
#ngui = NGUI(nav)

Window.x, Window.y = i.pixel_search(coords.TOP_LEFT_COLOR, 0, 0, 400, 600)
nav.menu("inventory")

u = UpgradeEM(37500, 37500, 1, 1, 3)
r3unlocked = False

print(f"Top left found at: {w.x}, {w.y}")

tracker = Tracker(30)

while True:  # main loop
    speedrun(30, feature)
    tracker.progress()
Esempio n. 4
0
    tracker.progress()
    u.em()
    tracker.adjustxp()
    f.speedrun_bloodpill()
    while time.time() < end:
        time.sleep(0.1)

    return


w = Window()
i = Inputs()
nav = Navigation()
feature = Features()

Window.x, Window.y = i.pixel_search(ncon.TOP_LEFT_COLOR, 0, 0, 400, 600)
nav.menu("inventory")

u = Upgrade(37500, 37500, 2, 2, 3)

print(w.x, w.y)
tracker = Tracker(3)
#c = Challenge(tracker)
#print(c.check_challenge())

#feature.bb_ngu(4e8, [1, 2, 3, 4, 5, 6, 7, 8, 9], 1.05)
#feature.speedrun_bloodpill()
while True:  # main loop
    #feature.boost_equipment()
    #feature.ygg()
    #feature.snipe(0, 120, bosses=False)