Skip to content
Closed
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
31 changes: 23 additions & 8 deletions repo/js/自动购买商品/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
| 璃月-璃月港 | 东升 | 盐、胡椒、洋葱、牛奶、番茄、卷心菜、土豆、小麦、稻米、虾仁、豆腐、杏仁 | - | - | 杂货店 |
| 璃月-璃月港 | 卯师傅 | 鱼肉、螃蟹 | 竹笋、莲蓬、松茸、蘑菇、胡萝卜、白萝卜、绝云椒椒 | 面粉、糖、香肠、火腿 | |
| 璃月-璃月港 | 老孙 | 鱼肉、螃蟹、虾仁 | - | - | |
| 璃月-璃月港 | 老高 | 鱼肉、鱼肉2 | - | - | |
| 璃月-璃月港 | 老高 | 鱼肉 | - | - | |
| 璃月-璃月港 | 长顺 | 土豆 | 石珀、电气水晶 | 糖、奶酪 | |
| 璃月-璃月港 | 琳琅 | - | - | 游医的药壶、游医的枭羽、游医的方巾、游医的银莲、游医的怀钟 | 狗粮商人 |
| 璃月-璃月港 | 张顺 | - | - | 幸运儿之杯、幸运儿鹰羽、幸运儿银冠、幸运儿绿花、幸运儿沙漏 | 狗粮商人 |
Expand Down Expand Up @@ -265,31 +265,46 @@ A: 游戏内的刷新时间是**每天凌晨4点**。脚本会考虑这个时间
## 📅 更新日志
<details>

### v3.6.1
- **新增**
- 商人交互选项识别,为了解决到达目标追踪点后除目标NPC外还存在其他对话对象导致交互错误的问题
- **优化**
- 商店对话选项智能化:`布纳马`、`杜拉夫`、`齐良诺夫` 等有特殊选项的NPC不再以固定 F 次数交互,而是循环识别对话内容,持续 F 交互直到出现目标选项
- 未能进入对话时自动跳过该商人并继续下一个,不进行无效的购买尝试
- 调整商人`璃月-璃月港-老高`、`至冬-至冬堡-齐良诺夫`路径
- 合并`鱼肉` 商品识别图片,`璃月-璃月港-老高`商品列表同步更新,并对旧名做了兼容处理
- 优化了uid识别逻辑,降低了复杂性
- **修复**
- 修复了一处 fakeLog 问题

### v3.6.0
- **优化“带括号商品”无法识别的问题**
针对 `「四方八方之网」`、`「皮拉米达的夜莺」` 等名称带有书名号(「」)的商品,此前若用户在配置中未加括号,脚本会因匹配失败而报错或跳过购买。
- 针对 `「四方八方之网」`、`「皮拉米达的夜莺」` 等名称带有书名号(「」)的商品,此前若用户在配置中未加括号,脚本会因匹配失败而报错或跳过购买。
本次更新后,**脚本会自动忽略商品名称中的「」括号**。无论您填写的是 `四方八方之网` 还是 `「四方八方之网」`,脚本均能准确识别并正常购买,不再受括号格式困扰。
- **调整**
调整商品图片识别阈值,从0.85改至0.8
- 调整商品图片识别阈值,从0.85改至0.8

### v3.5.10
- **优化**
- **优化**
- 调整商人`璃月-璃月港-阿山婆`路径

### v3.5.9
- **优化**
- **优化**
- 调整商人`蒙德-蒙德城-天使的馈赠-查尔斯`路径
- 调整商品`冰钩钩果汁`图片

### v3.5.8
- **新增**:适配ABGI进度显示日志,脚本运行过程中输出更详细的进度信息,方便追踪执行状态。
- **优化**:修改「至冬-至冬堡-齐良诺夫」路线,避开角色彩蛋刷新位置,减少因NPC乱入导致的购买失败。
- **新增**
- 适配ABGI进度显示日志,脚本运行过程中输出更详细的进度信息,方便追踪执行状态。
- **优化**
- 修改「至冬-至冬堡-齐良诺夫」路线,避开角色彩蛋刷新位置,减少因NPC乱入导致的购买失败。

### v3.5.7
- **新增**
- 新增了4项至冬新物品素材
- 新增了5条至冬新路线:`至冬-至冬堡-格里戈里`、`至冬-至冬堡-齐良诺夫`、`至冬-至冬堡-雅罗斯拉夫`、`至冬-至冬堡-老庭院餐厅-布图琳娜`、`至冬-曙光车站-哲列兹诺夫`
- 修改了一项拼写问题:卯师父->卯师傅;并解决了可能因更名引发的bug问题
- **调整**
- 修改了一项拼写问题:卯师父->卯师傅;并解决了可能因更名引发的bug问题

### v3.5.64
- 调整商品图片识别阈值
Expand Down
Binary file removed repo/js/自动购买商品/assets/images/Exit.png
Binary file not shown.
Binary file modified repo/js/自动购买商品/assets/images/鱼肉.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 removed repo/js/自动购买商品/assets/images/鱼肉2.png
Binary file not shown.
2 changes: 1 addition & 1 deletion repo/js/自动购买商品/assets/npcs.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
"page": 1,
"time": "day",
"path": "assets/path/璃月-璃月港-老高.json",
"_1d_foods": ["鱼肉","鱼肉2"],
"_1d_foods": ["鱼肉"],
"tags": ["璃月", "璃月港", "老高"]
},
"长顺": {
Expand Down
63 changes: 27 additions & 36 deletions repo/js/自动购买商品/assets/path/璃月-璃月港-老高.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
{
"info": {
"authors": [
{
"links": "",
"name": "听雨♪"
"name": "蜜柑魚"
}
],
"bgiVersion": "0.35.1",
"bgi_version": "0.45.0",
"description": "",
"enable_monster_loot_split": false,
"last_modified_time": 1763060301398,
"last_modified_time": 1788696686847,
"map_match_method": "",
"map_name": "Teyvat",
"name": "老高",
"name": "璃月-璃月港-老高",
"tags": [],
"type": "collect",
"version": "1.0"
Expand All @@ -32,82 +32,73 @@
"action": "",
"action_params": "",
"id": 2,
"move_mode": "run",
"move_mode": "dash",
"type": "path",
"x": 247.5,
"y": -664.5
"x": 254.2285,
"y": -655.7949
},
{
"action": "",
"action_params": "",
"id": 3,
"move_mode": "run",
"move_mode": "dash",
"type": "path",
"x": 214.5,
"y": -661.5
"x": 254.2813,
"y": -629.1934
},
{
"action": "",
"action_params": "",
"id": 4,
"move_mode": "run",
"move_mode": "dash",
"type": "path",
"x": 192.5,
"y": -682
"x": 222.6611,
"y": -615.9551
},
{
"action": "",
"action": "stop_flying",
"action_params": "",
"id": 5,
"move_mode": "run",
"move_mode": "fly",
"type": "path",
"x": 162.5,
"y": -681
"x": 182.0068,
"y": -600.6699
},
{
"action": "",
"action_params": "",
"id": 6,
"move_mode": "run",
"move_mode": "walk",
"type": "path",
"x": 157.5000949141504,
"y": -630.375
"x": 169.2012,
"y": -603.125
},
{
"action": "",
"action_params": "",
"id": 7,
"move_mode": "walk",
"type": "path",
"x": 139.99022999999943,
"y": -608.2969000000003
"x": 161.6416,
"y": -594.8813
},
{
"action": "",
"action_params": "",
"id": 8,
"move_mode": "walk",
"type": "path",
"x": 161.6416015625,
"y": -594.88134765625
},
{
"action": "",
"action_params": "",
"id": 9,
"move_mode": "walk",
"type": "target",
"x": 158.751953125,
"y": -586.27294921875
"x": 158.752,
"y": -586.2729
},
{
"action": "combat_script",
"action_params": "w(0.3),wait(0.2)",
"id": 10,
"id": 9,
"move_mode": "walk",
"type": "orientation",
"x": 161.0419921875,
"y": -584.2685546875
"x": 161.042,
"y": -584.2686
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"bgi_version": "0.45.0",
"description": "",
"enable_monster_loot_split": false,
"last_modified_time": 1788042558021,
"last_modified_time": 1788720510037,
"map_match_method": "SIFT",
"map_name": "Teyvat",
"name": "至冬-至冬堡-齐良诺夫",
Expand Down Expand Up @@ -45,18 +45,27 @@
"action_params": "",
"id": 3,
"move_mode": "walk",
"type": "path",
"x": 6856.4893,
"y": 9634.7383
},
{
"action": "",
"action_params": "",
"id": 4,
"move_mode": "walk",
"type": "target",
"x": 6854.1953,
"y": 9636.1826
"x": 6854.7539,
"y": 9634.5029
},
{
"action": "combat_script",
"action_params": "w(0.3),wait(0.8)",
"id": 4,
"action_params": "w(0.3),wait(0.3),j,w(0.3),wait(1.5)",
"id": 5,
"move_mode": "walk",
"type": "orientation",
"x": 6853.1973,
"y": 9634.8359
"x": 6847.7227,
"y": 9633.6924
}
]
}
Loading