[JS]全自动地脉花4.1 (#1622)

* 更新纳塔新线路,更新readme

* 初步实现F1找花

* 修改描述
This commit is contained in:
ddaodan
2025-08-22 16:25:07 +08:00
committed by GitHub
parent 784c8cab30
commit b4ffd11186
28 changed files with 8982 additions and 7797 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,16 +1,28 @@
# BGI全自动地脉花脚本使用手册
仅支持BetterGI 0.44.7 及以上版本!
仅支持Bitblt截图方式
**仅支持BetterGI 0.44.7 及以上版本!**
**仅支持Bitblt截图方式**
目前脚本仍在更新开发阶段会有很多bug详见下方已知问题如果遇到没有提到的bug请反馈给我们非常感谢
## 配置
使用前需要对脚本以及战斗策略进行配置
在调度器新建一个配置组,将脚本添加进来
在调度器新建一个配置组,将脚本添加进来,脚本只能在配置组内使用
![](assets/image/image1.png)
![](assets/image/image2.png)
![](assets/image/image3.png)
![](assets/image/image4.png)
右键脚本选择修改js脚本自定义配置根据你的需要对脚本进行配置。
![](assets/image/image5.png)
### 配置地图追踪策略和战斗策略
点击配置组设置,打开地图追踪设置,**打开自动拾取****打开只在传送点时回复****开启允许在js中使用**和**覆盖js中的自动战斗策略**
开启战斗策略配置,**关闭自动检测战斗结束**,其他的根据你的队伍进行配置
点击配置组设置,打开地图追踪设置,**开启允许在js中使用**和**覆盖js中的自动战斗策略**,并开启战斗策略配置,**关闭自动检测战斗结束**,其他的根据你的队伍进行配置。
> 脚本不通过按L检查战斗是否结束不关闭**自动检测战斗结束**可能导致提前结束战斗!
> 战斗超时时间一定要大于或与脚本配置内的时间一样,太短会原地罚站!
![](assets/image/image6.png)
### 七天神像
在bgi设置内关闭就近七天神像指定一个七天神像如无特殊要求推荐选择须弥道成林。
在bgi设置内**关闭就近七天神像**,指定一个七天神像,如无特殊要求推荐选择须弥道成林。
> 不要开启**传送到七天神像之后是否需要移动后回血**目前这个功能Bug很多
![](assets/image/image7.png)
## 特色介绍
- **全自动运行**:配置好之后,只需要点击运行,就可以全部打完,无需任何其他操作。
- **自动寻找地脉花**:通过大地图定位地脉花位置的方式来寻找地脉花,并执行后续的路线。
@@ -30,10 +42,15 @@ wgc的bug请使用bitblt截图方式脚本只支持这个
### 路线中途跳过了一个点位
当地脉花打完后,下一个点位已经存在另一类型的地脉花,则下一朵地脉花将跳过这个点,刷新在下一个位置。
脚本会跳过这个被占用的点位。
![](assets/image/image8.png)
例如这里,摩拉花刷新在经验花的下一个位置上。
### 跑完后大地图所有自定义的标点都没了
打开大地图,点击左下角设置,开启自定义标记。
脚本非正常结束运行时会出现该问题。
## 更新日志
### 4.0
- 适配原神5.7版本更新
- 修复打开自定义标记的bug
### 3.5
- 减少部分日志输出
- 修改部分错误提示信息
@@ -701,3 +718,31 @@ wgc的bug请使用bitblt截图方式脚本只支持这个
2 | 第一波:溯流·大灵显化身<br>第二波:溯流·大灵显化身
3 | 第一波幼鳍游龙x3、鳍游龙x1、流刃勇士·掷叉猎手x1、流刃勇士·游击人x1<br>第二波鳍游龙x2、流刃勇士·掷叉猎手x1、鳍游龙武士·裂礁之涛x1
4 | 第一波幼鳍游龙x3、鳍游龙x1、鳍游龙武士·穿浪之梭x1<br>第二波幼鳍游龙x2、鳍游龙x1、流刃勇士·掷叉猎手x1、流刃勇士·游击人x1
- [] 11. 呼呼丘
**地脉花总数3**
顺序 | 怪物
--- | ---
1 | 第一波突角龙×2、幼突角龙x1、流刃勇士·掷叉猎手x1<br>第二波突角龙×2、幼突角龙x1、突角龙武士·破空轰动×1
2 | 第一波:疾叶·大灵显化身<br>第二波:疾叶·大灵显化身
3 | 第一波幼绒翼龙x3、绒翼龙x1、结羽勇士·驭空客x1<br>第二波幼绒翼龙x1、绒翼龙x2、结羽勇士·削羽人x1、结羽勇士·腾空士x1
- [] 12. 浪浪湾
**地脉花总数3**
顺序 | 怪物
--- | ---
1 | 第一波幼瞑视龙x1、瞑视龙x2、灵觉勇士·冥思者x1<br>第二波幼瞑视龙x2、瞑视龙x2、灵觉勇士·冥思者x1
2 | 第一波幼嵴锋龙x1、嵴锋龙x1、铸砂勇士·叩问人x1、铸砂勇士·投矛手x1<br>第二波幼嵴锋龙x1、嵴锋龙x2、嵴锋龙武士·碎晶打者x1
3 | 第一波秘源机兵·寻捕械x1<br>第二波秘源机兵·寻捕械x1
## 特别感谢
- 感谢 平面镜 制作的枫丹地脉花脚本,~~抄了很多代码,~~以及枫丹路线!
- 感谢 秋云 在脚本制作期间提供了很多功能实现的思路,开放了很多非常方便的方法,并修改优化了大量代码,这个脚本说是他写的也不为过!
- 感谢 起个名字好难的喵 协助脚本的开发,帮大忙了!
- 感谢 v7群群友 在正式发布前对脚本进行测试!~~虽然没收到几个反馈~~
- 感谢 测试群群友 帮忙制作了部分路线,提供用于制作线路的账号以及对脚本的测试!~~合格黑奴~~
- 感谢 辉鸭蛋 制作的BetterGI

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 KiB

View File

@@ -38,7 +38,8 @@
{ "x": 9040, "y": -2428, "name": "虹灵的净土" },
{ "x": 8258, "y": -1744, "name": "硫晶支脉下方锚点" },
{ "x": 8582, "y": -2675, "name": "溶水域七天神像" },
{ "x": 9548, "y": -1117, "name": "花羽会上方锚点" }
{ "x": 9548, "y": -1117, "name": "花羽会上方锚点" },
{ "x": 14655, "y": 559, "name": "浪浪湾左下锚点" }
]
}
}

View File

@@ -0,0 +1,61 @@
{
"info": {
"name": "纳塔11-呼呼丘-1",
"bgi_version": "0.45.0",
"type": "collect",
"order": 0,
"tags": [],
"enable_monster_loot_split": false,
"map_name": "Teyvat",
"map_match_method": "",
"items": [],
"authors": [],
"version": "1.0",
"description": "",
"last_modified_time": 1754200248662
},
"config": {
"realtime_triggers": {
"AutoPick": true
}
},
"farming_info": {
"allow_farming_count": false,
"normal_mob_count": 0,
"elite_mob_count": 0,
"primary_target": "",
"duration_seconds": 0,
"elite_details": "",
"total_mora": 0
},
"positions": [
{
"id": 1,
"x": 14167.1015625,
"y": 627.6220703125,
"action": "",
"move_mode": "walk",
"type": "teleport",
"point_ext_params": {
"misidentification": {
"type": [
"unrecognized"
],
"handling_mode": "previousDetectedPoint",
"arrival_time": 0
},
"description": "",
"enable_monster_loot_split": false
}
},
{
"id": 2,
"x": 14248.3935546875,
"y": 581.4296875,
"action": "",
"move_mode": "dash",
"action_params": "",
"type": "target"
}
]
}

View File

@@ -0,0 +1,96 @@
{
"info": {
"name": "纳塔11-呼呼丘-2-rerun",
"bgi_version": "0.45.0",
"type": "collect",
"order": 0,
"tags": [],
"enable_monster_loot_split": false,
"map_name": "Teyvat",
"map_match_method": "",
"items": [],
"authors": [],
"version": "1.0",
"description": "",
"last_modified_time": 1755420849921
},
"config": {
"realtime_triggers": {
"AutoPick": true
}
},
"farming_info": {
"allow_farming_count": false,
"normal_mob_count": 0,
"elite_mob_count": 0,
"primary_target": "",
"duration_seconds": 0,
"elite_details": "",
"total_mora": 0
},
"positions": [
{
"id": 1,
"x": 14293.380859375,
"y": 625.375,
"type": "teleport",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 2,
"x": 14283.80078125,
"y": 612.1923828125,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": 14280.4912109375,
"y": 607.46630859375,
"type": "path",
"move_mode": "jump",
"action": "",
"action_params": ""
},
{
"id": 4,
"x": 14272.5673828125,
"y": 534.9931640625,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 5,
"x": 14303.0166015625,
"y": 475.6171875,
"action": "",
"move_mode": "dash",
"action_params": "",
"type": "path"
},
{
"id": 6,
"x": 14309.2685546875,
"y": 462.38916015625,
"action": "stop_flying",
"move_mode": "fly",
"action_params": "",
"type": "path"
},
{
"id": 7,
"x": 14309.2685546875,
"y": 462.38916015625,
"action": "",
"move_mode": "walk",
"action_params": "",
"type": "target"
}
]
}

View File

@@ -0,0 +1,115 @@
{
"info": {
"name": "纳塔11-呼呼丘-3-rerun",
"bgi_version": "0.45.0",
"type": "collect",
"order": 0,
"tags": [],
"enable_monster_loot_split": false,
"map_name": "Teyvat",
"map_match_method": "",
"items": [],
"authors": [],
"version": "1.0",
"description": "",
"last_modified_time": 1755421146849
},
"config": {
"realtime_triggers": {
"AutoPick": true
}
},
"farming_info": {
"allow_farming_count": false,
"normal_mob_count": 0,
"elite_mob_count": 0,
"primary_target": "",
"duration_seconds": 0,
"elite_details": "",
"total_mora": 0
},
"positions": [
{
"id": 1,
"x": 14293.380859375,
"y": 625.375,
"type": "teleport",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 2,
"x": 14283.80078125,
"y": 612.1923828125,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": 14280.4912109375,
"y": 607.46630859375,
"type": "path",
"move_mode": "jump",
"action": "",
"action_params": ""
},
{
"id": 4,
"x": 14272.5673828125,
"y": 534.9931640625,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 5,
"x": 14312.9580078125,
"y": 526.28955078125,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 6,
"x": 14384.095703125,
"y": 504.865234375,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 7,
"x": 14393.341796875,
"y": 486.62646484375,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 8,
"x": 14390.443359375,
"y": 470.20263671875,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
"action_params": "",
"locked": false
},
{
"id": 9,
"x": 14390.443359375,
"y": 470.20263671875,
"type": "target",
"move_mode": "walk",
"action": "",
"action_params": ""
}
]
}

View File

@@ -0,0 +1,61 @@
{
"info": {
"name": "纳塔12-浪浪湾-1",
"bgi_version": "0.45.0",
"type": "collect",
"order": 0,
"tags": [],
"enable_monster_loot_split": false,
"map_name": "Teyvat",
"map_match_method": "",
"items": [],
"authors": [],
"version": "1.0",
"description": "",
"last_modified_time": 1754569850355
},
"config": {
"realtime_triggers": {
"AutoPick": true
}
},
"farming_info": {
"allow_farming_count": false,
"normal_mob_count": 0,
"elite_mob_count": 0,
"primary_target": "",
"duration_seconds": 0,
"elite_details": "",
"total_mora": 0
},
"positions": [
{
"id": 1,
"x": 14733.1484375,
"y": 724.59521484375,
"action": "",
"move_mode": "walk",
"type": "teleport",
"point_ext_params": {
"misidentification": {
"type": [
"unrecognized"
],
"handling_mode": "previousDetectedPoint",
"arrival_time": 0
},
"description": "",
"enable_monster_loot_split": false
}
},
{
"id": 2,
"x": 14799.513671875,
"y": 631.3671875,
"type": "target",
"move_mode": "dash",
"action": "",
"action_params": ""
}
]
}

View File

@@ -0,0 +1,79 @@
{
"info": {
"name": "纳塔12-浪浪湾-2",
"bgi_version": "0.45.0",
"type": "collect",
"order": 0,
"tags": [],
"enable_monster_loot_split": false,
"map_name": "Teyvat",
"map_match_method": "",
"items": [],
"authors": [],
"version": "1.0",
"description": "",
"last_modified_time": 1754570057671
},
"config": {
"realtime_triggers": {
"AutoPick": true
}
},
"farming_info": {
"allow_farming_count": false,
"normal_mob_count": 0,
"elite_mob_count": 0,
"primary_target": "",
"duration_seconds": 0,
"elite_details": "",
"total_mora": 0
},
"positions": [
{
"id": 1,
"x": 14733.1484375,
"y": 724.59521484375,
"action": "",
"move_mode": "walk",
"type": "teleport",
"point_ext_params": {
"misidentification": {
"type": [
"unrecognized"
],
"handling_mode": "previousDetectedPoint",
"arrival_time": 0
},
"description": "",
"enable_monster_loot_split": false
}
},
{
"id": 2,
"x": 14747.8076171875,
"y": 718.25244140625,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": 14761.67578125,
"y": 731.71044921875,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 4,
"x": 14801.615234375,
"y": 740.56103515625,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
}
]
}

View File

@@ -0,0 +1,106 @@
{
"info": {
"name": "纳塔12-浪浪湾-3-rerun",
"bgi_version": "0.45.0",
"type": "collect",
"order": 0,
"tags": [],
"enable_monster_loot_split": false,
"map_name": "Teyvat",
"map_match_method": "",
"items": [],
"authors": [],
"version": "1.0",
"description": "",
"last_modified_time": 1755421416247
},
"config": {
"realtime_triggers": {
"AutoPick": true
}
},
"farming_info": {
"allow_farming_count": false,
"normal_mob_count": 0,
"elite_mob_count": 0,
"primary_target": "",
"duration_seconds": 0,
"elite_details": "",
"total_mora": 0
},
"positions": [
{
"id": 1,
"x": 14733.1484375,
"y": 724.59521484375,
"action": "",
"move_mode": "walk",
"type": "teleport",
"point_ext_params": {
"misidentification": {
"type": [
"unrecognized"
],
"handling_mode": "previousDetectedPoint",
"arrival_time": 0
},
"description": "",
"enable_monster_loot_split": false
}
},
{
"id": 2,
"x": 14747.8076171875,
"y": 718.25244140625,
"action": "",
"move_mode": "dash",
"action_params": "",
"type": "path"
},
{
"id": 3,
"x": 14761.67578125,
"y": 731.71044921875,
"action": "",
"move_mode": "dash",
"action_params": "",
"type": "path"
},
{
"id": 4,
"x": 14801.615234375,
"y": 740.56103515625,
"action": "",
"move_mode": "dash",
"action_params": "",
"type": "path"
},
{
"id": 5,
"x": 14838.0146484375,
"y": 787.849609375,
"action": "",
"move_mode": "walk",
"action_params": "",
"type": "path"
},
{
"id": 6,
"x": 14866.775390625,
"y": 806.671875,
"action": "stop_flying",
"move_mode": "fly",
"action_params": "2000",
"type": "path"
},
{
"id": 7,
"x": 14870.0927734375,
"y": 807.755859375,
"action": "",
"move_mode": "walk",
"action_params": "",
"type": "target"
}
]
}

View File

@@ -0,0 +1,61 @@
{
"info": {
"name": "纳塔11-呼呼丘-1",
"bgi_version": "0.45.0",
"type": "collect",
"order": 0,
"tags": [],
"enable_monster_loot_split": false,
"map_name": "Teyvat",
"map_match_method": "",
"items": [],
"authors": [],
"version": "1.0",
"description": "",
"last_modified_time": 1754200248662
},
"config": {
"realtime_triggers": {
"AutoPick": true
}
},
"farming_info": {
"allow_farming_count": false,
"normal_mob_count": 0,
"elite_mob_count": 0,
"primary_target": "",
"duration_seconds": 0,
"elite_details": "",
"total_mora": 0
},
"positions": [
{
"id": 1,
"x": 14167.1015625,
"y": 627.6220703125,
"action": "",
"move_mode": "walk",
"type": "teleport",
"point_ext_params": {
"misidentification": {
"type": [
"unrecognized"
],
"handling_mode": "previousDetectedPoint",
"arrival_time": 0
},
"description": "",
"enable_monster_loot_split": false
}
},
{
"id": 2,
"x": 14248.3935546875,
"y": 581.4296875,
"action": "",
"move_mode": "dash",
"action_params": "",
"type": "target"
}
]
}

View File

@@ -0,0 +1,60 @@
{
"info": {
"name": "纳塔11-呼呼丘-2",
"bgi_version": "0.45.0",
"type": "collect",
"order": 0,
"tags": [],
"enable_monster_loot_split": false,
"map_name": "Teyvat",
"map_match_method": "",
"items": [],
"authors": [],
"version": "1.0",
"description": "",
"last_modified_time": 1754200241832
},
"config": {
"realtime_triggers": {
"AutoPick": true
}
},
"farming_info": {
"allow_farming_count": false,
"normal_mob_count": 0,
"elite_mob_count": 0,
"primary_target": "",
"duration_seconds": 0,
"elite_details": "",
"total_mora": 0
},
"positions": [
{
"id": 1,
"x": 14303.0166015625,
"y": 475.6171875,
"action": "",
"move_mode": "dash",
"action_params": "",
"type": "path"
},
{
"id": 2,
"x": 14309.2685546875,
"y": 462.38916015625,
"action": "stop_flying",
"move_mode": "fly",
"action_params": "",
"type": "path"
},
{
"id": 3,
"x": 14309.2685546875,
"y": 462.38916015625,
"action": "",
"move_mode": "walk",
"action_params": "",
"type": "target"
}
]
}

View File

@@ -0,0 +1,42 @@
{
"info": {
"name": "纳塔11-呼呼丘-3",
"bgi_version": "0.45.0",
"type": "collect",
"order": 0,
"tags": [],
"enable_monster_loot_split": false,
"map_name": "Teyvat",
"map_match_method": "",
"items": [],
"authors": [],
"version": "1.0",
"description": "",
"last_modified_time": 1754200188083
},
"config": {
"realtime_triggers": {
"AutoPick": true
}
},
"farming_info": {
"allow_farming_count": false,
"normal_mob_count": 0,
"elite_mob_count": 0,
"primary_target": "",
"duration_seconds": 0,
"elite_details": "",
"total_mora": 0
},
"positions": [
{
"id": 1,
"x": 14390.443359375,
"y": 470.20263671875,
"type": "target",
"move_mode": "dash",
"action": "",
"action_params": ""
}
]
}

View File

@@ -0,0 +1,61 @@
{
"info": {
"name": "纳塔12-浪浪湾-1",
"bgi_version": "0.45.0",
"type": "collect",
"order": 0,
"tags": [],
"enable_monster_loot_split": false,
"map_name": "Teyvat",
"map_match_method": "",
"items": [],
"authors": [],
"version": "1.0",
"description": "",
"last_modified_time": 1754569850355
},
"config": {
"realtime_triggers": {
"AutoPick": true
}
},
"farming_info": {
"allow_farming_count": false,
"normal_mob_count": 0,
"elite_mob_count": 0,
"primary_target": "",
"duration_seconds": 0,
"elite_details": "",
"total_mora": 0
},
"positions": [
{
"id": 1,
"x": 14733.1484375,
"y": 724.59521484375,
"action": "",
"move_mode": "walk",
"type": "teleport",
"point_ext_params": {
"misidentification": {
"type": [
"unrecognized"
],
"handling_mode": "previousDetectedPoint",
"arrival_time": 0
},
"description": "",
"enable_monster_loot_split": false
}
},
{
"id": 2,
"x": 14799.513671875,
"y": 631.3671875,
"type": "target",
"move_mode": "dash",
"action": "",
"action_params": ""
}
]
}

View File

@@ -0,0 +1,79 @@
{
"info": {
"name": "纳塔12-浪浪湾-2",
"bgi_version": "0.45.0",
"type": "collect",
"order": 0,
"tags": [],
"enable_monster_loot_split": false,
"map_name": "Teyvat",
"map_match_method": "",
"items": [],
"authors": [],
"version": "1.0",
"description": "",
"last_modified_time": 1754570057671
},
"config": {
"realtime_triggers": {
"AutoPick": true
}
},
"farming_info": {
"allow_farming_count": false,
"normal_mob_count": 0,
"elite_mob_count": 0,
"primary_target": "",
"duration_seconds": 0,
"elite_details": "",
"total_mora": 0
},
"positions": [
{
"id": 1,
"x": 14733.1484375,
"y": 724.59521484375,
"action": "",
"move_mode": "walk",
"type": "teleport",
"point_ext_params": {
"misidentification": {
"type": [
"unrecognized"
],
"handling_mode": "previousDetectedPoint",
"arrival_time": 0
},
"description": "",
"enable_monster_loot_split": false
}
},
{
"id": 2,
"x": 14747.8076171875,
"y": 718.25244140625,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": 14761.67578125,
"y": 731.71044921875,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 4,
"x": 14801.615234375,
"y": 740.56103515625,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
}
]
}

View File

@@ -0,0 +1,69 @@
{
"info": {
"name": "纳塔12-浪浪湾-3",
"bgi_version": "0.45.0",
"type": "collect",
"order": 0,
"tags": [],
"enable_monster_loot_split": false,
"map_name": "Teyvat",
"map_match_method": "",
"items": [],
"authors": [],
"version": "1.0",
"description": "",
"last_modified_time": 1754570352636
},
"config": {
"realtime_triggers": {
"AutoPick": true
}
},
"farming_info": {
"allow_farming_count": false,
"normal_mob_count": 0,
"elite_mob_count": 0,
"primary_target": "",
"duration_seconds": 0,
"elite_details": "",
"total_mora": 0
},
"positions": [
{
"id": 1,
"x": 14838.0146484375,
"y": 787.849609375,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 2,
"x": 14866.775390625,
"y": 806.671875,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
"action_params": "2000"
},
{
"id": 3,
"x": 14870.587890625,
"y": 808.66650390625,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 4,
"x": 14870.0927734375,
"y": 807.755859375,
"type": "target",
"move_mode": "walk",
"action": "",
"action_params": ""
}
]
}

File diff suppressed because it is too large Load Diff

View File

@@ -80,6 +80,7 @@ async function initialize() {
"breadthFirstPathSearch.js",
"executePathsUsingNodeData.js",
"findLeyLineOutcrop.js",
"findLeyLineOutcropByBook.js",
"loadSettings.js",
"locateLeyLineOutcrop.js",
"processLeyLineOutcrop.js",
@@ -117,7 +118,11 @@ async function prepareForLeyLineRun() {
async function runLeyLineChallenges() {
while (currentRunTimes < settings.timesValue) {
// 寻找地脉花位置
await findLeyLineOutcrop(settings.country, settings.leyLineOutcropType);
if (settings.useAdventurerHandbook) {
await findLeyLineOutcropByBook(settings.country, settings.leyLineOutcropType);
} else {
await findLeyLineOutcrop(settings.country, settings.leyLineOutcropType);
}
// 查找并执行对应的策略
const foundStrategy = await executeMatchingStrategy();

View File

@@ -1,38 +1,37 @@
{
"manifest_version": 1,
"name": "全自动地脉花",
"version": "4.0.1",
"tags": [
"地脉花"
],
"bgi_version": "0.44.7",
"description": "基于OCR图像识别的全自动刷取地脉花。\n💡更多信息请查看在线手册https://hcnsvf0s8d0s.feishu.cn/wiki/Tb1twpThLi7UlykqcYOcuccTnjJ \n\n----------注意事项----------\n●仅支持BetterGI 0.44.7 及以上版本!\n●部分地脉花因特殊原因不支持全自动具体的点位请在手册中查看。\n●树脂使用的优先级2倍原粹树脂 > 浓缩树脂 > 原粹树脂。\n●运行时会传送到七天神像设置中设置的七天神像需要关闭七天神像设置中的“是否就近七天神像恢复血量”并指定七天神像。\n●战斗策略注意调度器设置中地图追踪行走配置里的“允许在JsSpript中使用”和“覆盖JS中的自动战斗配置”只有在都打开的情况下脚本才会使用下面的战斗配置否则会使用独立任务中的战斗策略。战斗超时时间不能大于脚本自定义配置中的时间。\n\n如果遇到问题请先参照手册中的方法进行解决。",
"authors": [
{
"name": "ddaodan",
"links": "https://github.com/ddaodan"
},
{
"name": "平面镜",
"links": "https://github.com/Flatmirrr"
},
{
"name": "秋云",
"links": "https://github.com/physligl"
},
{
"name": "起个名字好难的喵",
"links": "https://github.com/MisakaAldrich"
},
{
"name": "火山",
"links": "https://github.com/RRRR623"
},
{
"name": "寒烟",
"links": "https://github.com/214-hanyan"
}
],
"settings_ui": "settings.json",
"main": "main.js"
}
"manifest_version": 1,
"name": "全自动地脉花",
"version": "4.1",
"tags": ["地脉花"],
"bgi_version": "0.44.7",
"description": "基于OCR图像识别的全自动刷取地脉花。\n💡更多信息请查看在线手册https://hcnsvf0s8d0s.feishu.cn/wiki/Tb1twpThLi7UlykqcYOcuccTnjJ \n\n----------注意事项----------\n●仅支持BetterGI 0.44.7 及以上版本!\n●部分地脉花因特殊原因不支持全自动具体的点位请在手册中查看。\n●树脂使用的优先级2倍原粹树脂 > 浓缩树脂 > 原粹树脂。\n●运行时会传送到七天神像设置中设置的七天神像需要关闭七天神像设置中的“是否就近七天神像恢复血量”并指定七天神像。\n●战斗策略注意调度器设置中地图追踪行走配置里的“允许在JsSpript中使用”和“覆盖JS中的自动战斗配置”只有在都打开的情况下脚本才会使用下面的战斗配置否则会使用独立任务中的战斗策略。战斗超时时间不能大于脚本自定义配置中的时间。\n\n如果遇到问题请先参照手册中的方法进行解决。",
"authors": [
{
"name": "ddaodan",
"links": "https://github.com/ddaodan"
},
{
"name": "平面镜",
"links": "https://github.com/Flatmirrr"
},
{
"name": "秋云",
"links": "https://github.com/physligl"
},
{
"name": "起个名字好难的喵",
"links": "https://github.com/MisakaAldrich"
},
{
"name": "火山",
"links": "https://github.com/RRRR623"
},
{
"name": "寒烟",
"links": "https://github.com/214-hanyan"
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -58,7 +58,7 @@
{
"name": "useAdventurerHandbook",
"type": "checkbox",
"label": "是否使用冒险之证寻找地脉花开发中】"
"label": "是否使用冒险之证寻找地脉花\n开发中,请勿使用!",
},
{
"name": "isNotification",
@@ -77,3 +77,4 @@
}
]

View File

@@ -0,0 +1,41 @@
/**
* 通过冒险之证查找地脉花位置 - 制作中
* @param {string} country - 国家名称
* @param {string} type - 地脉花类型
* @returns {Promise<void>}
*/this.findLeyLineOutcropByBook =
async function (country, type) {
log.info("使用冒险之证寻找地脉花");
//确保运行时位于主界面
keyPress("F1");
await sleep(1000);
click(300,550); //点击讨伐
await sleep(1000);
click(500, 200); //点击筛选
await sleep(1000);
click(500, 500); //点击其他
await sleep(1000);
if (type === "蓝花(经验书)") {
click(700, 350); //点击经验花
} else {
click(500, 350); //点击摩拉花
}
await sleep(1000);
click(1300, 800); //点击推荐
await sleep(1000);
let captureRegion = captureGameRegion();
let resList = captureRegion.findMulti(RecognitionObject.ocrThis);
for (let i = 0; i < resList.count; i++) {
let res = resList[i];
if (res.text.includes(country)) {
res.click();
}
}
await sleep(1000);
click(1500, 850);
click(1500, 850); //点击追踪,连点两次防止点不到
await sleep(1000);
//获取地脉花位置
const center = genshin.getPositionFromBigMap();
log.info(`找到地脉花的坐标:(${center.x}, ${center.y})`);
}