{
    "SeizeEntrustTaskBeforeSwipeDown": {
        "desc": "直接滑到最底下",
        "recognition": {
            "type": "TemplateMatch",
            "param": {
                "roi": [
                    1250,
                    620,
                    16,
                    23
                ],
                "template": [
                    "SeizeEntrustTask/InDown.png"
                ]
            }
        },
        "inverse": true,
        "pre_delay": 0,
        "action": {
            "type": "Scroll",
            "param": {
                "target": [
                    763,
                    424,
                    5,
                    5
                ],
                "dy": -240
            }
        },
        "post_delay": 0
    },
    "SeizeEntrustTaskErrorTaskStop": {
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    136,
                    130,
                    87,
                    34
                ],
                "expected": [
                    "委托人信息",
                    "委託人資訊",
                    "(?i)Client\\s*Info",
                    "依頼主詳細",
                    "委派任务",
                    "委派任務",
                    "(?i)Commission",
                    "協力任務"
                ]
            }
        },
        "inverse": true,
        "action": {
            "type": "StopTask",
            "param": {}
        },
        "focus": {
            "Node.Action.Starting": "用户退出委托列表"
        }
    },
    "SeizeEntrustTaskFindTarget": {
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    {
                        "sub_name": "798w",
                        "recognition": {
                            "type": "OCR",
                            "param": {
                                "roi": [
                                    841,
                                    177,
                                    48,
                                    424
                                ],
                                "expected": [
                                    "7.98",
                                    "798",
                                    "79.8"
                                ]
                            }
                        }
                    },
                    {
                        "recognition": {
                            "type": "OCR",
                            "param": {
                                "roi": "798w",
                                "roi_offset": [
                                    -234,
                                    -39,
                                    57,
                                    17
                                ],
                                "expected": [
                                    "武陵城",
                                    "Wuling City",
                                    "무릉성"
                                ]
                            }
                        }
                    }
                ]
            }
        },
        "next": [
            "SeizeEntrustTaskFoundTarget"
        ],
        "focus": {
            "Node.Recognition.Failed": "不对不对！",
            "Node.Recognition.Starting": "再看一眼",
            "Node.Recognition.Succeeded": "对的对的！"
        }
    },
    "SeizeEntrustTaskFindTargetF1": {
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    {
                        "sub_name": "798w",
                        "recognition": {
                            "type": "OCR",
                            "param": {
                                "roi": [
                                    841,
                                    177,
                                    48,
                                    424
                                ],
                                "expected": [
                                    "7.98",
                                    "798",
                                    "79.8"
                                ]
                            }
                        }
                    },
                    {
                        "recognition": {
                            "type": "OCR",
                            "param": {
                                "roi": "798w",
                                "roi_offset": [
                                    -234,
                                    -39,
                                    57,
                                    17
                                ],
                                "expected": [
                                    "武陵城",
                                    "Wuling City",
                                    "무릉성"
                                ]
                            }
                        }
                    }
                ]
            }
        },
        "post_wait_freezes": 1000,
        "next": [
            "SeizeEntrustTaskFindTarget",
            "SeizeEntrustTaskNews"
        ],
        "focus": {
            "Node.Recognition.Succeeded": "找到武陵城7.98万订单！"
        }
    },
    "SeizeEntrustTaskFoundListOfDeliveryJobsButton": {
        "desc": "进入运送委托列表",
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    252,
                    65,
                    170,
                    55
                ],
                "expected": [
                    "运送委托列表",
                    "運送委託清單",
                    "(?i)List\\s*of\\s*Delivery\\s*Jobs",
                    "配達依頼一覧"
                ]
            }
        },
        "action": {
            "type": "Click",
            "param": {}
        },
        "next": [
            "isSeizeEntrustTaskReady"
        ],
        "focus": {
            "Node.Recognition.Succeeded": "进入运送委托列表"
        }
    },
    "SeizeEntrustTaskFoundTarget": {
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": "SeizeEntrustTaskFindTarget",
                "roi_offset": [
                    215,
                    -6,
                    93,
                    15
                ],
                "expected": [
                    "接取运送委托",
                    "接取運送委託",
                    "(?i)Accept\\s*Delivery\\s*Job",
                    "配達依頼を受ける",
                    "輸送依頼を受注",
                    "輸送依頼を受ける"
                ]
            }
        },
        "action": {
            "type": "Click",
            "param": {}
        },
        "post_wait_freezes": 200,
        "next": [
            "isSeizeEntrustTaskSuccessful",
            "isSeizeEntrustTaskNoSuccessful",
            "SeizeEntrustTaskNews"
        ],
        "focus": {
            "Node.Action.Succeeded": "点击抢单~"
        }
    },
    "SeizeEntrustTaskGoDepotNode": {
        "desc": "注意该节点受到开关控制",
        "next": [
            "isSeizeEntrustTaskInMap",
            "[JumpBack]SceneEnterMapAny"
        ],
        "focus": {
            "Node.Recognition.Succeeded": "现在准备传送到仓储节点"
        }
    },
    "SeizeEntrustTaskMain": {
        "recognition": {
            "type": "OCR",
            "param": {}
        },
        "next": [
            "SeizeEntrustTaskFoundListOfDeliveryJobsButton",
            "[JumpBack]SceneEnterMenuRegionalDevelopmentWulingDepotNode"
        ]
    },
    "SeizeEntrustTaskNews": {
        "desc": "刷新动作",
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    1075,
                    652,
                    98,
                    34
                ],
                "expected": [
                    "刷新",
                    "更新",
                    "(?i)Refresh"
                ]
            }
        },
        "action": {
            "type": "Click",
            "param": {}
        },
        "post_delay": 5000,
        "next": [
            "SeizeEntrustTaskNewsStatus1"
        ]
    },
    "SeizeEntrustTaskNewsStatus1": {
        "desc": "等待刷新完成",
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    1006,
                    525,
                    244,
                    121
                ],
                "expected": [
                    "接取运送委托",
                    "接取運送委託",
                    "(?i)Accept\\s*Delivery\\s*Job",
                    "配達依頼を受ける",
                    "填充至起送",
                    "填充到起送",
                    "(?i)Delivery",
                    "最低容量",
                    "Accept"
                ]
            }
        }
    },
    "SeizeEntrustTaskStopTask": {
        "action": {
            "type": "StopTask",
            "param": {}
        },
        "focus": {
            "Node.Action.Starting": "记得及时送货哟~"
        }
    },
    "SeizeEntrustTaskStopTask2": {
        "action": {
            "type": "StopTask",
            "param": {}
        },
        "focus": {
            "Node.Recognition.Succeeded": "没有在运送委托列表界面哦"
        }
    },
    "SeizeEntrustTaskWalkingToDepotNode": {
        "desc": "注意该节点受到开关控制",
        "enabled": false,
        "pre_delay": 0,
        "action": {
            "type": "Custom",
            "param": {
                "custom_action": "MapTrackerMove",
                "custom_action_param": {
                    "map_name": "map02_lv002",
                    "path": [
                        [
                            680,
                            737
                        ],
                        [
                            682,
                            742
                        ],
                        [
                            686,
                            750
                        ],
                        [
                            687,
                            756
                        ],
                        [
                            687,
                            771
                        ],
                        [
                            686,
                            780
                        ],
                        [
                            674,
                            787
                        ]
                    ]
                }
            }
        },
        "post_delay": 0,
        "next": [
            "SeizeEntrustTaskStopTask"
        ],
        "focus": {
            "Node.Recognition.Succeeded": "现在准备走到仓储节点"
        }
    },
    "isSeizeEntrustTaskDestinationWulingCity": {
        "desc": "滑到底后才会执行调度器，然后等待委托列表静止后再进入调度",
        "pre_wait_freezes": {
            "target": [
                29,
                166,
                1222,
                481
            ],
            "time": 2000
        },
        "next": [
            "[JumpBack]SeizeEntrustTaskFindTargetF1",
            "[JumpBack]SeizeEntrustTaskErrorTaskStop",
            "[JumpBack]SeizeEntrustTaskNews"
        ]
    },
    "isSeizeEntrustTaskExhausted": {
        "desc": "今天的运送委托已满3单，没办法继续接单，直接结束抢单",
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    1030,
                    650,
                    45,
                    40
                ],
                "expected": "3/3"
            }
        },
        "pre_delay": 0,
        "action": {
            "type": "StopTask",
            "param": {}
        },
        "post_delay": 0,
        "focus": {
            "Node.Recognition.Succeeded": "今天的运送委托已满3单"
        }
    },
    "isSeizeEntrustTaskExistOldTask": {
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    1020,
                    210,
                    200,
                    35
                ],
                "expected": [
                    "查看任务",
                    "查看任務",
                    "(?i)View\\s*Mission",
                    "任務確認",
                    "임무 확인"
                ]
            }
        },
        "pre_delay": 0,
        "action": {
            "type": "StopTask",
            "param": {}
        },
        "post_delay": 0,
        "focus": {
            "Node.Recognition.Succeeded": "手里已经有单了，结束抢单"
        }
    },
    "isSeizeEntrustTaskInMap": {
        "desc": "是否在任意地图界面",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "InMapAny"
                ]
            }
        },
        "pre_delay": 0,
        "post_delay": 0,
        "next": [
            "isSeizeEntrustTaskInWolrld",
            "[JumpBack]SceneEnterWorldWulingWulingCity5"
        ]
    },
    "isSeizeEntrustTaskInWolrld": {
        "desc": "是否在大世界",
        "recognition": {
            "type": "And",
            "param": {
                "all_of": [
                    "InWorld"
                ]
            }
        },
        "pre_delay": 0,
        "post_delay": 0,
        "next": [
            "SeizeEntrustTaskWalkingToDepotNode",
            "SeizeEntrustTaskStopTask"
        ],
        "focus": {
            "Node.Recognition.Succeeded": "已传送到锚点"
        }
    },
    "isSeizeEntrustTaskNoSuccessful": {
        "desc": "还有订单没有完成，直接结束抢单",
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    500,
                    108,
                    273,
                    29
                ],
                "expected": [
                    "当前已有其他送货任务",
                    "请完成后再接取"
                ]
            }
        },
        "action": {
            "type": "StopTask",
            "param": {}
        },
        "focus": {
            "Node.Recognition.Succeeded": "当前已有其他送货任务，请完成后再接取"
        }
    },
    "isSeizeEntrustTaskReady": {
        "desc": "判断有没有成功进入",
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    136,
                    130,
                    87,
                    34
                ],
                "expected": [
                    "委托人信息",
                    "委託人資訊",
                    "(?i)Client\\s*Info",
                    "依頼主詳細"
                ]
            }
        },
        "timeout": 3000,
        "next": [
            "isSeizeEntrustTaskExistOldTask",
            "isSeizeEntrustTaskExhausted",
            "[JumpBack]SeizeEntrustTaskBeforeSwipeDown",
            "isSeizeEntrustTaskDestinationWulingCity"
        ],
        "on_error": [
            "SeizeEntrustTaskStopTask2"
        ],
        "focus": {
            "Node.Recognition.Succeeded": "进入抢武陵城委托任务"
        }
    },
    "isSeizeEntrustTaskSuccessful": {
        "recognition": {
            "type": "OCR",
            "param": {
                "roi": [
                    540,
                    573,
                    576,
                    143
                ],
                "expected": [
                    "请尽快送达",
                    "請儘快送達",
                    "(?i)Deliver\\s*Quickly",
                    "早めに配達してください",
                    "已接取运送任务",
                    "已接取運送任務",
                    "(?i)Delivery\\s*job\\s*already\\s*accepted",
                    "配達任務を引き受けました",
                    "点击屏幕继续",
                    "按任意處繼續",
                    "Click to continue"
                ]
            }
        },
        "action": {
            "type": "Click",
            "param": {}
        },
        "next": [
            "SeizeEntrustTaskGoDepotNode",
            "SeizeEntrustTaskStopTask"
        ],
        "focus": {
            "Node.Recognition.Failed": "诶，好像失败了(｡•́︿•̀｡)",
            "Node.Recognition.Succeeded": "抢到啦！！！"
        }
    }
}
