def round3():
    ## 主力队向上1格
    pot2_2()
    Delay(0, 1)
    pot3_2()
    Delay(18, 19)
    CombatWindow.Combat_EndClear()
    ## 狗粮队1向上1格
    pot1_2()
    Delay(0, 1)
    pot2_2()
    Delay(1, 2)
    ## 狗粮队2向上1格
    Headquarters_2()
    Delay(0, 1)
    pot1_2()
    Delay(2, 3)
    CombatWindow.Choose_Cancel()
    ## 部署狗粮队3
    Headquarters_2()
    Delay(1, 2)
    CombatWindow.Deploy_Confirm()
    ## 第三回合结束
    CombatWindow.Round_End()

    # 等待
    Delay(21, 23)
    CombatWindow.Combat_EndClear()
    Delay(6, 7)
Exemple #2
0
def round3():
    CombatWindow.Round_End()
    Delay(21, 22)
    CombatWindow.Combat_EndClear()
    Delay(3, 4)
    # 检测是否进入战斗
    matching = image.match('e:/code/girls_frontline_script/images/round_end.png', image.capture_screen())
    # 进入战斗
    if (matching[0] < 100000000):
        Delay(11, 12)
        CombatWindow.Combat_EndClear()
    Delay(6, 7)
def round1():
    # 点击主力队2次
    Headquarters_1()
    Delay(1, 2)
    Headquarters_1()
    Delay(1, 2)
    # 补充弹药
    CombatWindow.Supply()
    # 移动到左下机场
    pot1_1()
    # 战斗
    Delay(16, 18)
    CombatWindow.Combat_EndClear()

    # 部署守家队伍
    # 取消选择
    CombatWindow.Choose_Cancel()
    # 点击指挥部
    Headquarters_2()
    Delay(1, 2)
    # 点击确定,部署梯队
    CombatWindow.Deploy_Confirm()
    # 点击守家队2次
    Headquarters_2()
    Delay(1, 2)
    Headquarters_2()
    Delay(1, 2)
    # 补充弹药
    CombatWindow.Supply()
    # 结束回合
    CombatWindow.Round_End()
    Delay(4, 5)
    # 检测是否进入下一回合
    matching = image.match(
        'e:/code/girls_frontline_script/images/round_end.png',
        image.capture_screen())
    # 未进入下一回合
    if (matching[0] < 100000000):
        Delay(22, 23)
        CombatWindow.Combat_EndClear()
        Delay(6, 7)

    # 检测是否进入下一回合
    matching = image.match(
        'e:/code/girls_frontline_script/images/round_end.png',
        image.capture_screen())
    # 未进入下一回合
    if (matching[0] < 100000000):
        Delay(22, 23)
        CombatWindow.Combat_EndClear()
        Delay(6, 7)
def round4():
    ## 补充弹药
    pot3_2()
    Delay(0, 1)
    pot2_2()
    Delay(1, 2)
    click(randint(453, 664), randint(509, 573))
    Delay(1, 2)
    pot1_2()
    Delay(1, 2)
    click(randint(406, 611), randint(591, 658))
    Delay(1, 2)
    Headquarters_2()
    Delay(1, 2)
    click(randint(386, 594), randint(670, 733))
    Delay(1, 2)
    Headquarters_2()
    Delay(2, 3)
    CombatWindow.Supply()
    # 返回
    pot1_2()
    Delay(1, 2)
    click(randint(406, 611), randint(591, 658))
    Delay(1, 2)
    pot2_2()
    Delay(1, 2)
    click(randint(453, 664), randint(509, 573))
    Delay(1, 2)
    pot3_2()
    Delay(1, 2)
    click(randint(533, 735), randint(445, 508))
    Delay(1, 2)
    ## 主力队向上1格
    pot4_2()
    Delay(18, 19)
    CombatWindow.Combat_EndClear()
    Delay(6, 7)
    ## 狗粮队1向上1格
    pot2_2()
    Delay(0, 1)
    pot3_2()
    Delay(1, 2)
    ## 第四回合结束
    CombatWindow.Round_End()

    # 等待
    Delay(21, 23)
    CombatWindow.Combat_EndClear()
    Delay(6, 7)
def round6():
    ## 补给
    pot5_6()
    Delay(1, 2)
    pot5_6()
    Delay(1, 2)
    CombatWindow.Supply()
    ## 计划模式
    CombatWindow.PlanMode()
    pot7_6()
    Delay(0, 1)
    pot8_6()
    Delay(0, 1)
    CombatWindow.Choose_Cancel()
    pot6_6()
    Delay(0, 1)
    pot9_6()
    Delay(0, 1)
    CombatWindow.Plan_Confirm()
    Delay(65, 67)
    ## 第六回合结束
    CombatWindow.Round_End()

    # 等待
    Delay(21, 23)
    CombatWindow.Combat_EndClear()
    Delay(6, 7)
Exemple #6
0
def round1():
    # 主力队补充弹药
    Headquarters()
    Delay(1, 2)
    Headquarters()
    Delay(1, 2)
    CombatWindow.Supply()
    # 前进
    pot1_1()
    Delay(2, 3)
    CombatWindow.Choose_Cancel()
    # 部署守家队并补充弹药
    Headquarters()
    Delay(1, 2)
    CombatWindow.Deploy_Confirm()
    Headquarters()
    Delay(1, 2)
    Headquarters()
    Delay(1, 2)
    CombatWindow.Supply()
    # 结束回合
    CombatWindow.Round_End()
    Delay(19, 20)
    # 检测是否进入下一回合
    matching = image.match('e:/code/girls_frontline_script/images/round_end.png', image.capture_screen())
    # 未进入下一回合
    if (matching[0] < 100000000):
        Delay(15, 16)
        CombatWindow.Combat_EndClear()
        Delay(6, 7)
def round2():
    # 守家梯队撤退
    Headquarters_2()
    Delay(1, 2)
    Headquarters_2()
    Delay(1, 2)
    CombatWindow.Retreat()
    # 选择主力队
    pot1_2()
    Delay(1, 2)
    # 检测小飞机
    matching = image.match(
        'e:/code/girls_frontline_script/images/Combat/34n_fly.png',
        image.capture_screen())
    if (matching[0] > 20000000):
        CombatWindow.Fairy_release()
    pot2_2()
    Delay(18, 19)
    CombatWindow.Combat_EndClear()
    pot2_2()
    Delay(1, 2)
    # 检测小飞机
    matching = image.match(
        'e:/code/girls_frontline_script/images/Combat/34n_fly.png',
        image.capture_screen())
    if (matching[0] > 20000000):
        CombatWindow.Fairy_release()
    pot3_2()
    Delay(18, 19)
    CombatWindow.Combat_EndClear()
    pot3_2()
    Delay(1, 2)
    # 检测boss
    matching = image.match(
        'e:/code/girls_frontline_script/images/34n_boss.png',
        image.capture_screen())
    # boss出现
    if (matching[0] > 20000000):
        pot4_2()
    else:
        pot5_2()
        Delay(1, 2)
        pot6_2()
    Delay(19, 20)
    CombatWindow.Combat_EndClear()
    # 撤退
    CombatWindow.Combat_Terminate()
Exemple #8
0
def round2():
    # 主力队上前
    pot1_1()
    Delay(1, 2)
    pot2_1()
    Delay(2, 3)
    # 检测是否进入战斗
    matching = image.match('e:/code/girls_frontline_script/images/round_end.png', image.capture_screen())
    # 进入战斗
    if (matching[0] < 100000000):
        Delay(13, 14)
        CombatWindow.Combat_EndClear()
    # 部署狗粮
    Headquarters()
    Delay(1, 2)
    pot1_1()
    Delay(2, 3)
    CombatWindow.Choose_Cancel()
    Headquarters()
    Delay(1, 2)
    CombatWindow.Deploy_Confirm()
    # 交换
    Headquarters()
    Delay(1, 2)
    pot1_1()
    Delay(1, 2)
    click(randint(685, 861), randint(560, 623))
    Delay(2, 3)
    CombatWindow.Choose_Cancel()
    CombatWindow.PlanMode()
    pot2_1()
    Delay(1, 2)
    Airport()
    Delay(1, 2)
    CombatWindow.Choose_Cancel()
    pot1_1()
    Delay(1, 2)
    pot3_1()
    Delay(1, 2)
    CombatWindow.Plan_Confirm()
    Delay(67, 68)
def round5():
    ## 计划模式
    CombatWindow.PlanMode()
    pot4_2()
    Delay(0, 1)
    pot5_2()
    Delay(0, 1)
    CombatWindow.Choose_Cancel()
    pot3_2()
    Delay(0, 1)
    pot6_2()
    Delay(0, 1)
    CombatWindow.Plan_Confirm()
    Delay(50, 52)
    # 打开妖精
    CombatWindow.Fairy_AUTO()
    ## 第五回合结束
    CombatWindow.Round_End()

    # 等待
    Delay(21, 23)
    CombatWindow.Combat_EndClear()
    Delay(6, 7)