Skip to content

Commit

Permalink
output
Browse files Browse the repository at this point in the history
  • Loading branch information
cndaqiang committed Dec 27, 2023
1 parent 08c2e7c commit 72881a9
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 12 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ python -u object.py (n-1) n
- IOS(测试通过 15.8,16.2)

## WZRY部分代码说明
### 备注
- 5v5和模拟战共用金币上限(0/4100), 六国远征、武道大会的金币不受前面限制
- 如何快速获取货币:
- - 六国远征、武道大会速度最快
- - 触摸形式的5v5人机耗时但是金币也远大于
- - 模拟战也出现过即使最后一名,金币也很多的情况
- 模拟战等模式账户之前没有进行过/新赛季, 自己提前操作一下, 避免有变动


### 文件控制
控制文件`txt`不参与仓库同步

Expand Down
10 changes: 9 additions & 1 deletion WZRY.node.临时初始化.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,12 @@
#self.每日礼包()
#self.武道大会()
#self.六国远征()
#self.Tool.removefile(self.临时初始化FILE)
#self.Tool.removefile(self.临时初始化FILE)

#临时调整对战模式
#self.进入大厅()
#self.对战模式="模拟战"
#self.对战模式="5v5匹配"

#特殊活动
#王者营地的图标变化
36 changes: 25 additions & 11 deletions object.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,11 +913,10 @@ def __init__(self, prefix="", APPID="com.tencent.gamehelper.smoba"):
self.APPID = APPID
self.prefix = prefix+"王者营地:"
self.IOS = "smobagamehelper" in self.APPID
self.个人界面图标 = Template(r"tpl1699872206513.png", record_pos=(0.376, 0.724), resolution=(540, 960))
self.战绩图标 = Template(r"tpl1699873801012.png", record_pos=(0.187, 0.726), resolution=(540, 960), threshold=0.9)
if self.营地活动:
self.个人界面图标 = Template(r"tpl1703259800661.png", record_pos=(0.372, 0.728), resolution=(540, 960))
self.战绩图标 = Template(r"tpl1703259792669.png", record_pos=(0.176, 0.728), resolution=(540, 960))
self.个人界面图标_默认 = Template(r"tpl1699872206513.png", record_pos=(0.376, 0.724), resolution=(540, 960))
self.战绩图标_默认 = Template(r"tpl1699873801012.png", record_pos=(0.187, 0.726), resolution=(540, 960), threshold=0.9)
self.个人界面图标_活动 = Template(r"tpl1703259800661.png", record_pos=(0.372, 0.728), resolution=(540, 960))
self.战绩图标_活动 = Template(r"tpl1703259792669.png", record_pos=(0.176, 0.728), resolution=(540, 960))
self.每日福利图标 = Template(r"tpl1699872219891.png", record_pos=(-0.198, -0.026), resolution=(540, 960))
if self.IOS:
self.每日福利图标 = Template(r"tpl1700272452555.png", record_pos=(-0.198, -0.002), resolution=(640, 1136))
Expand All @@ -927,6 +926,21 @@ def RUN(self):
if not start_app(self.APPID):
TimeECHO(self.prefix+"营地无法打开,返回")
return False
#
if exists(self.个人界面图标_默认):
if not exists(self.个人界面图标_活动):
self.营地活动 = False
else:
TimeECHO(self.prefix+"没有检测到营地界面_默认版")
return False
else:
if exists(self.个人界面图标_活动):
self.营地活动 = True
else:
TimeECHO(self.prefix+"没有检测到营地界面_活动版")
return False
self.个人界面图标 = self.个人界面图标_活动 if self.营地活动 else self.个人界面图标_默认
self.战绩图标 = self.战绩图标_活动 if self.营地活动 else self.战绩图标_默认
# 营地货币目前仅支持ios领取
if not self.IOS:
self.体验服礼物()
Expand Down Expand Up @@ -1112,7 +1126,7 @@ class wzry_task:
# 需要传递中文时,由于精简后无法输入中文,在shell中建
# redroid_arm64:/mnt/sdcard/Download # touch 诗语江南s4tpxWGu.txt

def __init__(self, 移动端, 对战模式, shiftnode=0, debug=False, 限时组队时间=10):
def __init__(self, 移动端="android", 对战模式="5v5匹配", shiftnode=0, debug=False, 限时组队时间=10):
self.移动端 = 移动端
self.mynode = self.移动端.mynode
self.totalnode = self.移动端.totalnode
Expand Down Expand Up @@ -1794,7 +1808,7 @@ def 进行人机匹配(self, times=1):
#
if "模拟战" in self.对战模式:
if 队友确认5v5匹配:
TimeErr(self.prefix+":模拟战误入5v5,创建touch同步文件")
TimeErr(self.prefix+":模拟战误入5v5?")
if self.组队模式:
self.Tool.touch同步文件()
return
Expand Down Expand Up @@ -2887,13 +2901,13 @@ def 判断对战中_模拟战(self, 处理=False):
#
#
# 下面开始处理对战
self.Tool.LoopTouch(钱袋子, "钱袋子", loop=10)
self.Tool.LoopTouch(刷新金币, "刷新金币", loop=10)
self.Tool.LoopTouch(钱袋子, "初次钱袋子", loop=10)
self.Tool.LoopTouch(刷新金币, "初次刷新金币", loop=10)
self.Tool.timelimit(timekey="endgame", limit=60*20, init=True)
while self.判断对战中_模拟战(False):
TimeECHO(self.prefix+"处理对战中")
self.Tool.LoopTouch(钱袋子, "钱袋子", loop=10) # 点击结束后,应该变成X号
self.Tool.LoopTouch(刷新金币, "刷新金币", loop=10)
self.Tool.LoopTouch(钱袋子, "LOOP钱袋子", loop=10) # 点击结束后,应该变成X号
self.Tool.LoopTouch(刷新金币, "LOOP刷新金币", loop=10)
if not exists(关闭钱袋子) and not exists(钱袋子):
return False
if self.Tool.timelimit(timekey="endgame", limit=60*20, init=False):
Expand Down

0 comments on commit 72881a9

Please sign in to comment.