Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified tasks/GameUi/page/page_check_six_gates.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/GameUi/page/page_exploration_goto_six_gates.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tasks/SixRealms/a/a_hundun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tasks/SixRealms/a/a_ningxi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tasks/SixRealms/a/a_shenmi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tasks/SixRealms/a/a_xing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tasks/SixRealms/a/a_zhan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions tasks/SixRealms/a/image.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[
{
"itemName": "ningxi",
"imageName": "a_ningxi.png",
"roiFront": "1011,375,19,29",
"roiBack": "153,87,908,513",
"method": "Template matching",
"threshold": 0.65,
"description": "宁息"
},
{
"itemName": "hundun",
"imageName": "a_hundun.png",
"roiFront": "896,447,23,33",
"roiBack": "162,122,908,513",
"method": "Template matching",
"threshold": 0.65,
"description": "混沌re"
},
{
"itemName": "zhan",
"imageName": "a_zhan.png",
"roiFront": "207,366,22,26",
"roiBack": "156,103,908,513",
"method": "Template matching",
"threshold": 0.8,
"description": "鏖战re"
},
{
"itemName": "shenmi",
"imageName": "a_shenmi.png",
"roiFront": "465,459,20,31",
"roiBack": "151,88,908,513",
"method": "Template matching",
"threshold": 0.65,
"description": "神秘re"
},
{
"itemName": "xing",
"imageName": "a_xing.png",
"roiFront": "652,478,30,27",
"roiBack": "151,88,908,513",
"method": "Template matching",
"threshold": 0.7,
"description": "绽放之屿re"
}
]
176 changes: 102 additions & 74 deletions tasks/SixRealms/assets.py

Large diffs are not rendered by default.

13 changes: 10 additions & 3 deletions tasks/SixRealms/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,27 @@

from tasks.Component.config_scheduler import Scheduler
from tasks.Component.config_base import ConfigBase, Time
from tasks.Component.SwitchSoul.switch_soul_config import SwitchSoulConfig


class SixRealmsGate(BaseModel):
number_enable: bool = Field(default=False, description='只打门票')
# 限制时间
limit_time: Time = Field(default=Time(minute=30), description='limit_time_help')
# 限制次数
limit_count: int = Field(default=1, description='limit_count_help')


class SwitchSoulConfig(BaseModel):
enable: bool = Field(default=False, description='auto_enable_help')
# 换第一行
one_switch: str = Field(default='-1,-1', description='换第一行')
# 换第二行
two_switch: str = Field(default='-1,-1', description='换第二行')


class SixRealms(ConfigBase):
scheduler: Scheduler = Field(default_factory=Scheduler)
switch_soul_config_1: SwitchSoulConfig = Field(default_factory=SwitchSoulConfig)
switch_soul_config_2: SwitchSoulConfig = Field(default_factory=SwitchSoulConfig)
switch_soul_config: SwitchSoulConfig = Field(default_factory=SwitchSoulConfig)
six_realms_gate: SixRealmsGate = Field(default_factory=SixRealmsGate)


Expand Down
36 changes: 18 additions & 18 deletions tasks/SixRealms/gate1/boss.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,35 @@
{
"itemName": "boss_fire",
"imageName": "gate1_boss_fire.png",
"roiFront": "1128,576,100,100",
"roiBack": "1091,557,156,147",
"roiFront": "1114,582,100,100",
"roiBack": "1084,559,156,147",
"method": "Template matching",
"threshold": 0.8,
"description": "大boss挑战"
"description": "大boss挑战re"
},
{
"itemName": "boss_team_lock",
"imageName": "gate1_boss_team_lock.png",
"roiFront": "1139,493,21,21",
"roiBack": "1130,487,38,43",
"roiFront": "1122,527,33,32",
"roiBack": "1116,520,43,43",
"method": "Template matching",
"threshold": 0.95,
"description": "description"
"threshold": 0.9,
"description": "lockre"
},
{
"itemName": "boss_team_unlock",
"imageName": "gate1_boss_team_unlock.png",
"roiFront": "1138,497,22,21",
"roiBack": "1127,491,40,41",
"roiFront": "1128,529,25,26",
"roiBack": "1120,520,40,41",
"method": "Template matching",
"threshold": 0.95,
"description": "description"
"threshold": 0.9,
"description": "unlockre"
},
{
"itemName": "boss_skip",
"imageName": "gate1_boss_skip.png",
"roiFront": "1131,13,100,42",
"roiBack": "1113,5,136,62",
"roiFront": "1140,39,48,27",
"roiBack": "1110,24,136,58",
"method": "Template matching",
"threshold": 0.8,
"description": "description"
Expand All @@ -56,17 +56,17 @@
{
"itemName": "boss_share",
"imageName": "gate1_boss_share.png",
"roiFront": "1090,604,70,74",
"roiBack": "1074,587,100,100",
"roiFront": "1158,619,70,74",
"roiBack": "1144,606,100,100",
"method": "Template matching",
"threshold": 0.8,
"description": "description"
"description": "boss_sharere"
},
{
"itemName": "boss_shutu",
"imageName": "gate1_boss_shutu.png",
"roiFront": "108,141,173,122",
"roiBack": "108,141,173,122",
"roiFront": "539,669,173,37",
"roiBack": "526,646,198,73",
"method": "Template matching",
"threshold": 0.8,
"description": "结算的椒图"
Expand Down
10 changes: 5 additions & 5 deletions tasks/SixRealms/gate1/click.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[
{
"itemName": "npc_fire_left",
"roiFront": "423,203,153,193",
"roiBack": "423,203,153,193",
"roiFront": "423,203,53,193",
"roiBack": "423,203,53,193",
"description": "左边的"
},
{
"itemName": "npc_fire_right",
"roiFront": "740,248,181,180",
"roiBack": "740,248,181,180",
"roiFront": "811,285,72,111",
"roiBack": "737,249,183,180",
"description": "description"
},
{
"itemName": "npc_fire_center",
"roiFront": "620,188,174,217",
"roiFront": "689,199,83,126",
"roiBack": "620,188,174,217",
"description": "中间的精英"
},
Expand Down
Binary file modified tasks/SixRealms/gate1/gate1_back_exit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/SixRealms/gate1/gate1_boss_battle_again.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/SixRealms/gate1/gate1_boss_battle_giveup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/SixRealms/gate1/gate1_boss_fire.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/SixRealms/gate1/gate1_boss_share.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/SixRealms/gate1/gate1_boss_shutu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/SixRealms/gate1/gate1_boss_skip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/SixRealms/gate1/gate1_coin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/SixRealms/gate1/gate1_exit_sixrealms.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/SixRealms/gate1/gate1_m_store.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/SixRealms/gate1/gate1_m_store_activity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/SixRealms/gate1/gate1_mconinue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/SixRealms/gate1/gate1_menter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/SixRealms/gate1/gate1_mfirst_skill.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tasks/SixRealms/gate1/gate1_mpeacock_skill.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/SixRealms/gate1/gate1_mshouzu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/SixRealms/gate1/gate1_mshouzu_select.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/SixRealms/gate1/gate1_mshuten.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tasks/SixRealms/gate1/gate1_mstart.png
Binary file modified tasks/SixRealms/gate1/gate1_mstart_confirm.png
Binary file modified tasks/SixRealms/gate1/gate1_mstart_confirm2.png
Binary file added tasks/SixRealms/gate1/gate1_peacock_skill1.png
Binary file added tasks/SixRealms/gate1/gate1_peacock_skill2.png
Binary file modified tasks/SixRealms/gate1/gate1_prepare_battle.png
Binary file modified tasks/SixRealms/gate1/gate1_select_0.png
Binary file modified tasks/SixRealms/gate1/gate1_select_1.png
Binary file modified tasks/SixRealms/gate1/gate1_select_2.png
Binary file modified tasks/SixRealms/gate1/gate1_select_3.png
Binary file modified tasks/SixRealms/gate1/gate1_skill101.png
Binary file modified tasks/SixRealms/gate1/gate1_skill_refresh.png
72 changes: 36 additions & 36 deletions tasks/SixRealms/gate1/image.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
{
"itemName": "menter",
"imageName": "gate1_menter.png",
"roiFront": "346,167,30,100",
"roiBack": "346,167,30,100",
"roiFront": "346,149,35,118",
"roiBack": "346,149,35,118",
"method": "Template matching",
"threshold": 0.8,
"description": "description"
"description": "孔雀国re"
},
{
"itemName": "mshuten",
Expand All @@ -15,16 +15,16 @@
"roiBack": "46,609,70,65",
"method": "Template matching",
"threshold": 0.8,
"description": "酒吞"
"description": "小鹿男re"
},
{
"itemName": "mshouzu_select",
"imageName": "gate1_mshouzu_select.png",
"roiFront": "544,179,199,438",
"roiBack": "544,179,199,438",
"roiFront": "777,180,199,438",
"roiBack": "777,180,199,438",
"method": "Template matching",
"threshold": 0.8,
"description": "椒图选中"
"description": "觉选中re"
},
{
"itemName": "mshouzu",
Expand All @@ -33,25 +33,25 @@
"roiBack": "43,608,73,67",
"method": "Template matching",
"threshold": 0.8,
"description": "椒图"
"description": "觉re"
},
{
"itemName": "mstart",
"imageName": "gate1_mstart.png",
"roiFront": "1136,575,100,100",
"roiFront": "1121,586,100,100",
"roiBack": "1043,527,215,167",
"method": "Template matching",
"threshold": 0.8,
"description": "开启"
"description": "第一次开启re"
},
{
"itemName": "mstart_confirm",
"imageName": "gate1_mstart_confirm.png",
"roiFront": "1136,575,100,100",
"roiFront": "1124,572,100,100",
"roiBack": "1080,548,182,150",
"method": "Template matching",
"threshold": 0.8,
"description": "description"
"description": "试炼式神选择re"
},
{
"itemName": "mstart_uncheck",
Expand All @@ -60,7 +60,7 @@
"roiBack": "543,340,38,40",
"method": "Template matching",
"threshold": 0.8,
"description": "description"
"description": "mstart_uncheckoff"
},
{
"itemName": "mstart_check",
Expand All @@ -69,7 +69,7 @@
"roiBack": "542,340,39,41",
"method": "Template matching",
"threshold": 0.8,
"description": "description"
"description": "mstart_check_off"
},
{
"itemName": "mskip",
Expand All @@ -78,16 +78,16 @@
"roiBack": "1117,28,58,36",
"method": "Template matching",
"threshold": 0.8,
"description": ""
"description": "mskip_off"
},
{
"itemName": "prepare_battle",
"imageName": "gate1_prepare_battle.png",
"roiFront": "33,640,48,54",
"roiBack": "33,640,48,54",
"roiFront": "29,638,55,66",
"roiBack": "20,630,72,81",
"method": "Template matching",
"threshold": 0.8,
"description": "左下角备战"
"description": "左下角备战re"
},
{
"itemName": "mconinue",
Expand All @@ -96,16 +96,16 @@
"roiBack": "1121,578,100,100",
"method": "Template matching",
"threshold": 0.8,
"description": "继续执行"
"description": "继续执行re"
},
{
"itemName": "mfirst_skill",
"imageName": "gate1_mfirst_skill.png",
"roiFront": "255,577,141,39",
"roiBack": "206,550,227,100",
"roiFront": "259,554,141,39",
"roiBack": "209,523,227,100",
"method": "Template matching",
"threshold": 0.8,
"description": "选第一个柔风"
"description": "极道轰炸选择re"
},
{
"itemName": "m_store",
Expand All @@ -114,7 +114,7 @@
"roiBack": "1103,576,100,100",
"method": "Template matching",
"threshold": 0.8,
"description": "唤息"
"description": "唤息re"
},
{
"itemName": "back_exit",
Expand All @@ -123,7 +123,7 @@
"roiBack": "0,0,100,100",
"method": "Template matching",
"threshold": 0.8,
"description": "左上角退出"
"description": "左上角退出re"
},
{
"itemName": "m_store_activity",
Expand All @@ -132,16 +132,16 @@
"roiBack": "1107,573,100,100",
"method": "Template matching",
"threshold": 0.8,
"description": "可以购买的幻息"
"description": "可以购买的幻息off"
},
{
"itemName": "mstart_confirm2",
"imageName": "gate1_mstart_confirm2.png",
"roiFront": "1154,581,74,85",
"roiFront": "1146,570,84,101",
"roiBack": "1079,535,196,177",
"method": "Template matching",
"threshold": 0.8,
"description": "description"
"description": "式神阵容选择re"
},
{
"itemName": "island_tag_flag",
Expand All @@ -150,24 +150,24 @@
"roiBack": "543,601,100,100",
"method": "Template matching",
"threshold": 0.8,
"description": "动画完了就有这个东西"
"description": "动画完了就有这个东西off"
},
{
"itemName": "exit_sixrealms",
"imageName": "gate1_exit_sixrealms.png",
"roiFront": "507.5,308,100,100",
"roiBack": "507.5,308,100,100",
"roiFront": "503,306,84,75",
"roiBack": "494,297,100,90",
"method": "Template matching",
"threshold": 0.8,
"description": "暂时离开六道之门"
"description": "暂时离开六道之门re"
},
{
"itemName": "select_shikigami_and_confirm",
"imageName": "gate1_select_shikigami_and_confirm.png",
"roiFront": "499,238,151,57",
"roiBack": "479,213,199,113",
"itemName": "mpeacock_skill",
"imageName": "gate1_mpeacock_skill.png",
"roiFront": "219,601,95,43",
"roiBack": "167,584,192,86",
"method": "Template matching",
"threshold": 0.8,
"description": "选择一个式神加入征伐队伍"
"description": "选择绽放之舞re"
}
]
9 changes: 9 additions & 0 deletions tasks/SixRealms/gate1/ocr.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
"keyword": "",
"description": "有多少钱"
},
{
"itemName": "sixrealms_number",
"roiFront": "1151,23,59,33",
"roiBack": "1151,23,59,33",
"mode": "Digit",
"method": "Default",
"keyword": "",
"description": "六道门票"
},
{
"itemName": "skill_refresh",
"roiFront": "1172,684,100,31",
Expand Down
Loading