Exemple #1
0
def runmain(address, account, password, kickflag=0):
    # 主功能体函数
    # 请在本函数中自定义需要的功能

    a = Automator(address)
    a.start()
    print('>>>>>>>即将登陆的账号为:', account, '密码:', password, '<<<<<<<', '\r\n')
    a.login_auth(account, password)  # 注意!请把账号密码写在zhanghao.txt内
    a.init_home()  # 初始化,确保进入首页
    a.sw_init()  # 初始化刷图

    a.gonghuizhijia()  # 家园一键领取
    # a.goumaimana(1)  # 购买mana 10次
    a.mianfeiniudan()  # 免费扭蛋
    # a.mianfeishilian()  # 免费十连
    a.dianzan(sortflag=1)  # 公会点赞
    # a.hanghui()  # 行会捐赠
    a.dixiacheng()  # 地下城 如果是首次使用需要跳过剧情,可以在括号中填入参数1
    # a.goumaitili(3)  # 购买3次体力
    a.shouqurenwu()  # 收取任务
    # shuatu_auth(a, account)  # 刷图控制中心,在下一次更新前建议暂停使用本函数,转为使用下面三个函数
    # a.shuatu11()  # 刷11图
    # a.shuatu10()  # 刷10图
    # a.shuatu8()  #刷8图
    # # a.shuajingyan(11) # 刷1-1经验(自带体力购买),11为当前所在主线图
    a.shouqu()  # 收取所有礼物

    if kickflag == 1:
        a.tichuhanghui()
    a.change_acc()  # 退出当前账号,切换下一个
Exemple #2
0
def runmain(address, account, password):
    # 主功能体函数
    # 请在本函数中自定义需要的功能

    a = Automator(address)
    a.start()

    # #opencv识别可视化 无法在多线程中使用
    # plt.ion()
    # fig, ax = plt.subplots(1)
    # plt.show()

    print('>>>>>>>即将登陆的账号为:', account, '密码:', password, '<<<<<<<', '\r\n')
    a.login_auth(account, password)  # 注意!请把账号密码写在zhanghao.txt内
    a.init_home()  # 初始化,确保进入首页
    a.sw_init()  # 初始化刷图

    a.gonghuizhijia()  # 家园一键领取
    a.goumaimana(1)  # 购买mana 10次
    a.mianfeiniudan()  # 免费扭蛋
    #a.mianfeishilian()  # 免费十连
    a.shouqu()  # 收取所有礼物
    a.dianzan()  # 公会点赞
    a.shouqu()  # 收取所有礼物
    a.hanghui()  # 行会捐赠
    a.dixiacheng()  # 地下城
    a.goumaitili(3)  # 购买3次体力
    a.shouqurenwu()  # 收取任务
    shuatu_auth(a, account)  # 刷图控制中心
    # a.shuajingyan(10) # 刷1-1经验(自带体力购买),10为主图
    a.shouqurenwu()  # 二次收取任务

    a.change_acc()  # 退出当前账号,切换下一个
def runmain(address, account, password):
    # 主功能体函数
    # 请在本函数中自定义需要的功能

    a = Automator(address)
    a.start()
    print('>>>>>>>即将登陆的账号为:', account, '密码:', password, '<<<<<<<', '\r\n')
    a.login_auth(account, password)  # 注意!请把账号密码写在zhanghao.txt内
    a.init_home_with_running()  # 初始化,确保进入首页
    a.sw_init()  # 初始化刷图

    a.gonghuizhijia()  # 家园一键领取
    #a.goumaimana(0)  # 购买mana 1次
    #a.mianfeiniudan()  # 免费扭蛋
    #a.mianfeishilian()  # 免费十连
    #a.shouqu()  # 收取所有礼物
    #a.dixiacheng()  # 地下城
    #a.goumaitili(3)  # 购买3次体力
    a.shouqurenwu()  # 收取任务
    #shuatu_auth(a, account)  # 刷图控制中心
    #a.hanghui()  # 行会捐赠
    #a.goumaitili(times=3)  # 购买times次体力
    #a.shuajingyan(map=3)  # 刷1-1经验,map为主图
    #a.shouqurenwu()  # 二次收取任务
    a.joinhanghui("勤劳的妖妖妖")
    #a.dianzan(1)  # 公会点赞,sortflag=1表示按战力排序
    a.hanghui()
    a.dixiacheng()

    #input("Press Enter to continue...")
    a.change_acc()  # 退出当前账号,切换下一个
def runmain(address, account, password):
    # 主功能体函数
    # 请在本函数中自定义需要的功能

    a = Automator(address)
    log = log_handler.LOG()  #初始化日志
    a.start()
    print('>>>>>>>即将登陆的账号为:', account, '密码:', password, '<<<<<<<', '\r\n')
    a.login_auth(account, password)  # 注意!请把账号密码写在zhanghao.txt内
    log.Account_Login(account)
    a.init_home()  # 初始化,确保进入首页
    a.sw_init()  # 初始化刷图

    a.gonghuizhijia()  # 家园一键领取
    #a.goumaimana(1)  # 购买mana 10次
    a.mianfeiniudan()  # 免费扭蛋
    a.mianfeishilian()  # 免费十连
    a.shouqu()  # 收取所有礼物
    a.dianzan()  # 公会点赞,sortflag=1表示按战力排序
    a.dixiacheng(
        firsttime=False,
        skip=False)  # 地下城 如果是首次使用需要跳过剧情,可以修改firsttime=True;需要跳过战斗则skip=True
    a.goumaitili(3)  # 购买3次体力
    a.shouqurenwu()  # 收取任务
    ok = shuatu_auth(a, account)  # 刷图控制中心
    if ok:  # 仅当刷图被激活(即注明了刷图图号)的账号执行行会捐赠,不刷图的认为是mana号不执行行会捐赠。
        a.hanghui()  # 行会捐赠
    else:  # 刷图没有被激活的可以去刷经验
        # a.goumaitili(times=3)  # 购买times次体力
        # a.shuajingyan(map=3)  # 刷1-1经验,map为主图
        pass
    a.shouqurenwu()  # 二次收取任务

    a.change_acc()  # 退出当前账号,切换下一个
    log.Account_Logout(account)
def runmain(address, account, password):
    # 主功能体函数
    # 请在本函数中自定义需要的功能

    a = Automator(address, account)
    a.start()

    # #opencv识别可视化无法在多线程中使用
    # plt.ion()
    # fig, ax = plt.subplots(1)
    # plt.show()

    print('>>>>>>>即将登陆的账号为:', account, '密码:', password, '<<<<<<<')
    a.login_auth(account, password)  # 注意!请把账号密码写在zhanghao2.txt内
    log.Account_Login(account)
    a.init_home()  # 初始化,确保进入首页

    #a.tansuo()  # 探索
    #a.dixiachengDuanya()  # 地下城,请把队伍列表里1队设置为打boss队,2队设置为aoe队
    #a.shouqurenwu()  # 收取任务
    #a.shouqu()  # 收取所有礼物

    #print(a.baidu_ocr(394,502,442,666))
    a.change_acc()  # 退出当前账号,切换下一个
    log.Account_Logout(account)
def runmain(address, account, password):
    # 主功能体函数
    # 请在本函数中自定义需要的功能

    a = Automator(address)
    a.start()

    # #opencv识别可视化 无法在多线程中使用
    # plt.ion()
    # fig, ax = plt.subplots(1)
    # plt.show()

    print('>>>>>>>即将登陆的账号为:', account, '密码:', password, '<<<<<<<')
    a.login_auth(account, password)  # 注意!请把账号密码写在zhanghao2.txt内
    #a.init_home()  # 初始化,确保进入首页
    if a.init_home_with_running() == True:

        a.init_home_with_running()
        #a.shouqurenwu()
        #input("调试")
        a.hanghui()  # 行会捐赠
        #a.dixiacheng()
        #a.shuatu11()
        #a.shouqurenwu()
        a.change_acc()  # 退出当前账号,切换下一个

    else:
        f = open('forbid.txt', 'a')
        f.write(account)
        f.write('\n')
        f.close()
def runmain(address, account, password):
    # 主功能体函数
    # 请在本函数中自定义需要的功能

    a = Automator(address)
    a.start()
    print('>>>>>>>即将登陆的账号为:', account, '密码:', password, '<<<<<<<', '\r\n')
    a.login_auth(account, password)  # 注意!请把账号密码写在zhanghao.txt内
    #a.init_home()  # 初始化,确保进入首页
    if a.init_home_with_running() == True:
        a.sw_init()  # 初始化刷图

        a.gonghuizhijia()  # 家园一键领取
        #a.goumaimana(0)  # 购买mana 1次
        #a.mianfeiniudan()  # 免费扭蛋
        #a.mianfeishilian()  # 免费十连
        ##a.shouqu()  # 收取所有礼物
        #a.dianzan(1)  # 公会点赞,sortflag=1表示按战力排序
        a.shouqurenwu()  # 收取任务
        #a.goumaitili(4)  # 购买2次体力
        a.times = 6
        #shuatu_auth(a, account)  # 刷图控制中心
        a.shuatu12()
        #a.hanghui()  # 行会捐赠
        #a.goumaitili(times=3)  # 购买times次体力
        #a.shuajingyan(map=3)  # 刷1-1经验,map为主图
        a.shouqurenwu()  # 二次收取任务
        #a.dixiacheng()  # 地下城
        #input("Pause")
        a.change_acc()  # 退出当前账号,切换下一个
    else:
        f = open('forbid.txt', 'a')
        f.write(account)
        f.write('\n')
        f.close()
def runmain(address, account, password, fun, kickflag=0):
    # 主功能体函数
    # 请在本函数中自定义需要的功能

    a = Automator(address)
    a.start()
    print('>>>>>>>即将登陆的账号为:', account, '密码:', password, '<<<<<<<', '\r\n')
    a.login_auth(account, password)  # 注意!请把账号密码写在zhanghao.txt内
    a.init_home()  # 初始化,确保进入首页
    a.sw_init()  # 初始化刷图

    a.gonghuizhijia()  # 家园一键领取
    # a.goumaimana(1)  # 购买mana 10次
    a.mianfeiniudan()  # 免费扭蛋
    # a.mianfeishilian()  # 免费十连
    a.dianzan(sortflag=1)  # 公会点赞
    # a.hanghui()  # 行会捐赠
    a.dixiacheng(firsttime=False,skip=False)  # 地下城 如果是首次使用需要跳过剧情,可以修改firsttime=True;需要跳过战斗则skip=True
    # a.goumaitili(3)  # 购买3次体力
    a.shouqurenwu()  # 收取任务
    ok = shuatu_auth(a, account, fun)  # 刷图控制中心
    if ok:  # 仅当刷图被激活(即注明了刷图图号)的账号执行行会捐赠,不刷图的认为是mana号不执行行会捐赠。
        a.hanghui()  # 行会捐赠
    else:  # 刷图没有被激活的可以去刷经验
        # a.goumaitili(times=3)  # 购买times次体力
        # a.shuajingyan(map=3)  # 刷1-1经验,map为主图
        pass
    # a.shuajingyan(11) # 刷1-1经验(自带体力购买),11为当前所在主线图
    a.shouqu()  # 收取所有礼物

    if kickflag == 1:
        a.tichuhanghui()
    a.change_acc()  # 退出当前账号,切换下一个
Exemple #9
0
def runmain(address, account, password):
    # 主功能体函数
    # 请在本函数中自定义需要的功能

    a = Automator(address)
    a.start()

    # #opencv识别可视化 无法在多线程中使用
    # plt.ion()
    # fig, ax = plt.subplots(1)
    # plt.show()

    print('>>>>>>>即将登陆的账号为:', account, '密码:', password, '<<<<<<<')
    a.login_auth(account, password)  # 注意!请把账号密码写在zhanghao2.txt内
    #a.init_home()  # 初始化,确保进入首页

    a.init_home_with_running()
    #a.shouqu()
    #a.shouqurenwu()
    #a.goumaitili(times=2)  # 购买times次体力
    #a.shuajingyan(map=3)  # 刷1-1经验,map为主图
    #a.hanghui()  # 行会捐赠
    a.dixiacheng()

    a.change_acc()  # 退出当前账号,切换下一个
Exemple #10
0
def runmain(address, account, password):

    a = Automator(address)
    a.start()

    print('>>>>>>>即将登陆的账号为:', account, '密码:', password, '<<<<<<<')
    a.login_auth(account, password)  # 注意!请把账号密码写在zhanghao2.txt内
    a.init_home()  # 初始化,确保进入首页

    while True:  # 首页锁定
        screen_shot_ = a.d.screenshot(format="opencv")
        if a.is_there_img(screen_shot_, 'img/liwu.jpg'):
            break
        a.d.click(100, 505)
        time.sleep(1)  # 保证回到首页
    while True:
        screen_shot_ = a.d.screenshot(format="opencv")
        if a.is_there_img(screen_shot_, 'img/zhuxianguanqia.jpg'):
            break
        a.d.click(480, 513)
    while True:
        screen_shot_ = a.d.screenshot(format="opencv")
        if a.is_there_img(screen_shot_, 'img/zhuxianguanqia.jpg'):
            a.d.click(562, 253)
            continue
        break
    time.sleep(3)
    while True:
        screen_shot_ = a.d.screenshot(format="opencv")
        if a.is_there_img(screen_shot_, 'img/normal.jpg'):
            break
        a.d.click(704, 84)
    #初始化至主线关卡结束

    a.shoushuazuobiao(313, 341)  # 1-3
    a.shoushuazuobiao(379, 240, 1)  #1-4
    a.shoushuazuobiao(481, 286)  # 1-5
    a.shoushuazuobiao(545, 381, 1)  # 1-6
    a.shoushuazuobiao(607, 304)  # 1-7
    a.shoushuazuobiao(620, 209)  # 1-8
    a.shoushuazuobiao(747, 243)  # 1-9
    a.qianghua()
    a.shoushuazuobiao(824, 348, 1)  # 1-10 虽然没有繁琐教程,但解锁东西过多,还是去用函数
    a.shoushuazuobiao(129, 413, 1)  # 2-1
    a.shoushuazuobiao(255, 413, 1)  # 2-2
    a.qianghua()
    a.shoushuazuobiao(379, 379)  # 2-3
    a.shoushuazuobiao(332, 269)  # 2-4
    a.shoushuazuobiao(237, 206, 1)  # 2-5
    a.shoushuazuobiao(353, 161)  # 2-6
    a.shoushuazuobiao(453, 231)  # 2-7
    a.shoushuazuobiao(479, 316, 1)  # 2-8
    a.shoushuazuobiao(602, 380)  # 2-9 装备危险 602 375 -> 527,380
    a.shoushuazuobiao(646, 371)  # 2-10
    a.shoushuazuobiao(757, 344)  # 2-11
    a.shoushuazuobiao(745, 229, 1)  # 2-12
    a.shoushuazuobiao(138, 188, 1)  # 3-1

    a.change_acc()  # 退出当前账号,切换下一个
def invitemain(address, account, password, inviteUID):
    # 邀请入会函数,请不要更改本函数中的功能
    a = Automator(address)
    a.start()
    print('>>>>>>>即将登陆的账号为:', account, '密码:', password, '<<<<<<<', '\r\n')
    a.login_auth(account, password)  # 注意!请把账号密码写在zhanghao.txt内
    a.init_home()
    a.yaoqinghanghui(inviteUID)
    a.change_acc()  # 退出当前账号,切换下一个
def acceptmain(address, account, password):
    # 接受入会邀请函数,请不要更改本函数中的功能
    a = Automator(address)
    a.start()
    print('>>>>>>>即将登陆的账号为:', account, '密码:', password, '<<<<<<<', '\r\n')
    a.login_auth(account, password)  # 注意!请把账号密码写在zhanghao.txt内
    a.init_home()
    a.jieshouhanghui()
    a.change_acc()  # 退出当前账号,切换下一个
Exemple #13
0
def runmain(address, account, password):
    # 主功能体函数
    # 请在本函数中自定义需要的功能

    a = Automator(address)
    a.start()

    print('>>>>>>>即将登陆的账号为:', account, '密码:', password, '<<<<<<<')
    a.login_auth(account, password)  # 注意!请把账号密码写在zhanghao2.txt内
    a.lockingRunning()
    a.init_home()  # 初始化,确保进入首页
    a.change_acc()  # 退出当前账号,切换下一个
Exemple #14
0
def runmain(address, account, password, clubname):
    # 主功能体函数
    # 请在本函数中自定义需要的功能

    a = Automator(address)
    a.start()
    print('>>>>>>>即将登陆的账号为:', account, '密码:', password, '<<<<<<<', '\r\n')
    a.login_auth(account, password)  # 注意!请把账号密码写在zhanghao.txt内
    a.init_home()  # 初始化,确保进入首页

    a.joinhanghui(clubname)  #加入行会

    a.change_acc()  # 退出当前账号,切换下一个
Exemple #15
0
def runmain(address, account, password):
    # 主功能体函数,可以在本函数中自定义需要的功能
    # 但是在这个py文件里不需要自定义,因为这是专门用来做捐赠工作的

    a = Automator(address, account)
    log = log_handler.LOG()  # 初始化日志
    a.start()
    print('>>>>>>>即将执行捐赠的账号为:', account, '密码:', password, '<<<<<<<', '\r\n')

    a.login_auth(account, password)  # 注意!请把账号密码写在zhanghao.txt内
    log.Account_Login(account)
    a.init_home()  # 初始化,确保进入首页
    a.sw_init()  # 初始化刷图
    a.hanghui()  # 行会捐赠
    a.change_acc()  # 退出当前账号,切换下一个
    log.Account_Logout(account)
Exemple #16
0
def runmain(address, account, password):
    # 主功能体函数
    # 请在本函数中自定义需要的功能

    a = Automator(address)
    a.start()

    # #opencv识别可视化 无法在多线程中使用
    # plt.ion()
    # fig, ax = plt.subplots(1)
    # plt.show()

    print('>>>>>>>即将登陆的账号为:', account, '密码:', password, '<<<<<<<')
    a.login_auth(account, password)  # 注意!请把账号密码写在zhanghao2.txt内
    a.init_home()  # 初始化,确保进入首页

    a.hanghui()  # 行会捐赠

    a.change_acc()  # 退出当前账号,切换下一个
Exemple #17
0
def runmain(address, account, password, work_no, shuatucl=""):
    #主功能体函数
    #请在本函数中自定义需要的功能
    work_no = int(str(work_no))
    a = Automator(address)
    # a.start()

    #opencv识别可视化 无法在多线程中使用
    # plt.ion()
    # fig, ax = plt.subplots(1)
    # # plt.show()

    print('>>>>>>>即将登陆的账号为:', account, '密码:', password, '<<<<<<<')
    a.login_auth(account, password)  #注意!请把账号密码写在zhanghao2.txt内
    a.init_home()  #初始化,确保进入首页
    a.shuatucl = shuatucl
    for x in a.config['work'][work_no]:
        if ('(' in x):
            text = "a." + x
        else:
            text = "a." + x + "()"

        print(text)
        eval(text)
    # a.shouqurenwu()#收取任务
    # a.gonghuizhijia()  #家园一键领取
    # a.mianfeiniudan() # 免费扭蛋
    # a.shouqu()  # 收取所有礼物
    # a.dianzan()  # 公会点赞
    # a.shouqu()# 收取所有礼物

    # a.shuatu()
    # a.hanghui()#行会捐赠

    # a.dixiacheng()#地下城
    # a.goumaitili()#购买3次体力
    # a.shuatu()#刷全部10图3次
    # a.shuajingyan() # 刷1-1经验(自带体力购买)
    # a.shouqurenwu()  # 二次收取任务

    a.change_acc()  #退出当前账号,切换下一个
def runmain(address, account, password):
    # 主功能体函数,可以在本函数中自定义需要的功能
    # 但是在这个py文件里不需要自定义,因为这是专门用来做捐赠工作的

    a = Automator(address)
    log = log_handler.LOG()  #初始化日志
    a.start()
    print('>>>>>>>即将执行的账号为:', account, '密码:', password, '<<<<<<<', '\r\n')

    zhuangbeihao = shuatu_auth(a,
                               account)  # 刷图控制中心,此处仅仅只用来判断是不是装备号,如果是装备号也不会刷图
    if zhuangbeihao:  # 仅注明了刷图图号的账号执行行会捐赠
        a.login_auth(account, password)  # 注意!请把账号密码写在zhanghao.txt内
        log.Account_Login(account)
        a.init_home()  # 初始化,确保进入首页
        a.sw_init()  # 初始化刷图
        a.hanghui()  # 行会捐赠
        a.change_acc()  # 退出当前账号,切换下一个
    else:  #不是送装备的号什么也不干,也不用登陆
        pass

    log.Account_Logout(account)