Exemplo n.º 1
0
def getenemy():
    if mubanpipei.template_demo("map") == (0, 0):
        return (1700, 870)
    global bossflag
    getpic.getpic()
    xy = mubanpipei.template_demo("boss")
    if xy != (0, 0):
        if bossflag == 0:
            moveCurPos(1500, 940)
            clickLeftCur()
        bossflag = 1
        return xy
    elif bossflag == 1:
        mouse_randmove()
        print("搜索BOSS")
        return getenemy()
    el = mubanpipei.template_demo("elite")
    if el != (0, 0):
        print("elite")
        return (el[0], el[1] + 80)
    el = mubanpipei.template_demo("elite2")
    if el != (0, 0):
        print("elite2")
        return (el[0], el[1] + 80)
    el = mubanpipei.template_demo("elite3")
    if el != (0, 0):
        print("elite3")
        return (el[0], el[1] + 80)
    el = mubanpipei.template_demo("elite4")
    if el != (0, 0):
        print("elite4")
        return (el[0], el[1] + 80)
    xys = [
        mubanpipei.template_demo("hangkong"),
        mubanpipei.template_demo("yunshu"),
        mubanpipei.template_demo("zhencha"),
        mubanpipei.template_demo("zhuli")
    ]
    for i in xys:
        if i != (0, 0):
            return i
    mouse_randmove()
    return getenemy()
Exemplo n.º 2
0
        mubanpipei.template_demo("zhencha"),
        mubanpipei.template_demo("zhuli")
    ]
    for i in xys:
        if i != (0, 0):
            return i
    mouse_randmove()
    return getenemy()


time.sleep(3)
winsound.Beep(600, 500)
winsound.Beep(600, 500)
while 1:
    getpic.getpic()
    if mubanpipei.template_demo("worldmap2") != (0, 0):  #进入关卡
        #moveCurPos(1430,770)
        #clickLeftCur()
        randomClick((1267, 412, 1483, 459))
        time.sleep(2)
        #moveCurPos(1380,700)
        #clickLeftCur()
        randomClick((1277, 695, 1494, 754))
        time.sleep(2)
        #moveCurPos(1550,850)
        #clickLeftCur()
        randomClick((1420, 800, 1670, 870))
        time.sleep(5)
        bossflag = 0
        winsound.Beep(400, 500)
        print("进入关卡")
Exemplo n.º 3
0
    clickLeftCur()
    time.sleep(0.5)
    clickLeftCur()
    time.sleep(0.5)
    clickLeftCur()
    time.sleep(0.5)
    clickLeftCur()
    time.sleep(0.5)
    clickLeftCur()
    time.sleep(0.5)
    #moveCurPos(1540,910)
    #clickLeftCur()
    randomClick((1454,872,1643,886))
while 1:
    getpic.getpic()
    if mubanpipei.template_demo("junhe") != (0,0):#进入关卡
        if ftimes[0]>0:
            ftimes[0] = ftimes[0] -1
            moveCurPos(1707,463)
        elif ftimes[1]>0:
            ftimes[1] = ftimes[1]-1
            moveCurPos(1795,613)
        elif ftimes[2]>0:
            ftimes[2] = ftimes[2]-1
            moveCurPos(1738,771)
        else:
            exit()
        clickLeftCur()
        time.sleep(2)
        randomClick((1420,800,1670,870))
        time.sleep(2)