Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 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
178 changes: 178 additions & 0 deletions repo/js/角色养成一条龙Pro版/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
# 角色养成一条龙Pro版 - 功能说明
## 项目简介
该项目是一个自动养成角色的脚本,它可以自动获取养成角色的材料,包括刷取天赋和武器(的秘境材料、怪物材料)、BOSS 材料,地图追踪采集区域特产与魔物材料、经验书、摩拉等。
⚠️BGI最低版本要求0.58.0
## 使用方法。
### 第一步:添加脚本到调度器
1. 订阅本脚本
2. 在将脚本添加至调度器**不要直接运行**
>
详细操作: 在软件界面,点击全自动,然后点击调度器,点击新增配置组(如果你没有看到新增配置组,可以在配置组下面右键点击,选择新增组),输入配置组名称,方便你看得懂这个配置组是干什么的(随便写个名称都可以),然后点击新建的配置组名称,点击添加,点击Js脚本,找到这个脚本勾选后,点击确认就添加成功了。

### 第二步:配置脚本设置
右键点击脚本,选择「修改 JS 自定义配置」:
# 详细配置步骤
在刚添加的配置组,将鼠标放在【脚本名称】上右键打开窗口,点击【修改脚本自定义配置】

1. **角色设置**
- 输入角色名称(老角色可使用别名,如"茜特菈莉"可用"奶奶")
- 选择角色元素类型(必须填写)
- 设置角色突破目标等级(你想升到多少级,80级=升到90级)
- 设置目标天赋等级(你想升级天赋升到多少级,格式:普攻-战技-爆发,如示例:1-10-10)
2. **武器设置**
- 设置武器突破目标等级(你想升级到多少级)
- 脚本会自动识别武器星级和当前等级
3. **队伍设置**
- 设置战斗队伍名称(用于秘境和BOSS挑战)
- 设置采集队伍名称(用于材料采集,可能需要水、雷、火、元素等元素角色和草神。)
- 如无草神,可勾选跳过草神路线
4. **其他设置**
- 选择地脉花地区(蒙德、璃月、稻妻、枫丹、纳塔、挪德卡莱)
- 可选:挑战BOSS前恢复满能量
- 必须签署霸王条款才能使用
- 检查版本更新,可选择关闭。
### 第三步:配置调度器设置
详细步骤:找到刚才创建的配置组名称,在跟添加的这个脚本的名字上方有设置2字,点击【设置】2个字,就可以打开调度器设置了。

配置组设置建议:开启地图追踪寻找配置,开启自动拾取。
设置生存位在队伍内的编号,生存位释放元素战技的时间间隔,生存位元素战绩是否长按,行走位主要行走的角色在队伍内的编号(按照你的战斗队伍角色实际情况来设置)。

下面进行战斗配置,开启战斗配置,选择战斗策略(可以选择根据队伍自动选择或者手动选择你的战斗队伍的策略
开启自动检测战斗结束(点击展开箭头,开启更快检测战斗结束,如果你队伍没有芙宁娜,或者没有远程索敌,可以开启旋转寻找敌人位置)
聚材料动作跟据你的战斗队伍是否有万叶/琴选择开启,如果没有万叶,请开启扫描掉落物光柱,如果队伍练度较低请将自动战斗超时延长。
### 运行前置要求

运行前请确保已订阅以下地图追踪脚本:

- 地区特产的所有路径脚本
- 敌人与魔物的所有路径脚本
## 注意事项。
2. 使用前请先订阅敌人与魔物,地方区域特产的所有地图追踪路径。
3. 目前暂不支持多个角色培养。如需培养多个角色,请在调度器再次添加脚本进行修改【新添加】的脚本自定义配置。
4. ⚠️地下地图需要使用TemplateMatch匹配方式,否则地图追踪路径可能会出错,非JS脚本问题,请前往设置,下滑动找到通用功能设置区域里的,地图追踪优先使用的特征匹配方式,如果为SIFT,请更改为TemplateMatch,注意重启BGI后才会生效。
5. 水下地图,请不要使用纳维莱特等,角色颜色和海底颜色蓝色相同的角色。
6. 首次运行出现ReadTextSync 异常: "Could not find file '\BetterGI\User\JsScript\角色养成一条龙Pro版\data\run\_data\completed\_tasks.json'."的报错为正常现象,后续其他文件config.json,script_cooldown_record.json也会同样出现,无需理会,脚本会自动创建文件。
7. 如果检查版本更新时间过长可以修改脚本自定义配置,取消勾选,跳过检查版本更新。


## 更新日志

2.1.1:版本更新
1. 新增:版本更新检查,重组文件结构,提升地图追踪材料采稳定性:添加弹窗识别并关闭弹窗方法 `handlePopupByOCR()`,和异常路径检测与过滤机制
2. 天赋武器秘境根据树脂计算可执行次数
3. 新增异常路径自动检测与过滤机制,自动标记并跳过执行时间超过9分钟的路径脚本
4. 统一重构OCR识别逻辑,引入 Utils.ocrRecognizeWithRetry 方法替代原有直接OCR调用
5. 增强角色页面打开验证机制,添加3次重试逻辑
6. 优化脚本执行时间记录和日志输出
7. 修复自动秘境角色阵亡,复活后不再继续刷材料的bug。

2.1.0:新增挪德卡莱BOSS蕴光月守宫,修复本体自动秘境名称不为空时使用本体的自动秘境名称。新增自动识别:Boss材料名称,天赋秘境,武器秘境,不再需要手动输入。

1.7.0:新增挪德卡莱两只BOSS,超重型陆巡舰·机动战垒和深黯魇语之主,不过地图追踪有些问题,前往BOSS的过程采用了键鼠脚本的方式,可能会有小问题

## 核心功能

### 1. 智能角色识别与材料计算

- **自动识别角色信息**
- 当前角色等级和突破状态
- 武器等级、星级和突破状态
- 天赋等级(普通攻击、元素战技、元素爆发)
- 命座天赋加成自动识别与修正
- **背包材料自动检测**
- 地方特产数量(如琉璃百合等)
- 魔物材料数量(如丘丘人面具等)
- 武器突破材料数量(两种敌人材料)
- BOSS材料数量
- 天赋书数量
- 武器秘境材料数量
- 经验书数量
- 摩拉数量
- **智能材料需求计算**
- 根据当前等升级到目标等级自动计算所需材料
- 中途使用材料不影响计算结果
- 实时更新材料缺口

### 2. 自动材料刷取系统

- **天赋书刷取**
- 自动前往对应天赋秘境
- 检查秘境开启状态
- 智能计算所需次数
- **武器材料刷取**
- 自动前往武器秘境
- 支持多种武器秘境类型
- 智能计算所需次数
- **BOSS材料刷取**
- 自动前往挑战指定BOSS
- 支持40+种BOSS(包括挪德卡莱新BOSS)
- 自动能量恢复选项

### 3. 地图追踪材料采集

- **地方特产采集**
- 自动执行地图追踪脚本
- 支持草神路线选择/跳过
- 智能冷却管理
- **敌人与魔物采集**
- 自动执行角色升级所需魔物材料地图追踪
- 支持多种魔物类型
- 队伍自动切换
- 冷却时间管理
- **武器魔物材料刷取**
- 两种武器材料分别刷取
- 自动战斗队伍切换
- 冷却时间管理

### 4. 地脉花智能管理

- **经验书地脉花(启示之花)**
- 根据经验缺口自动计算刷取次数(经验书数量足够,不会刷取)
- 考虑世界等级掉落差异
- 树脂消耗优化
- **摩拉地脉花(藏金之花)**
- 自动计算摩拉总需求(摩拉数量足够,不会刷取)
- 包括角色突破、升级、天赋、武器等所有摩拉消耗
- 智能分配刷取次数

### 5. 高级功能特性

- **冷却时间管理**
- 不同材料类型独立冷却
- 自动清理过期记录
- 断点续传支持
- **任务记录系统**
- 已完成任务自动记录
- 避免重复刷取
- 智能跳过已完成项目
- **多账号支持**
- UID识别与隔离
- 独立冷却记录
- 配置文件分离
- **智能通知系统**
- 完成任务通知
- 异常情况提醒
- 材料缺口提示

### 运行逻辑

1. **角色识别阶段**
- 自动识别角色、武器、天赋等级
- 检测背包材料数量
- 计算材料缺口
2. **材料刷取阶段**
- 检查体力是否充足
- 按优先级刷取天赋书、武器材料、BOSS材料
- 副本未开启自动跳过
- 材料刷满后发送通知
3. **材料采集阶段**
- 前往指定地点
- 按类型执行采集脚本
- 智能冷却管理
- 断点续传
4. **地脉花管理阶段**
- 计算经验和摩拉缺口
- 自动刷取地脉花
- 根据当前树脂剩余数量计算刷取次数

##
Binary file added repo/js/角色养成一条龙Pro版/assets/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 repo/js/角色养成一条龙Pro版/assets/box.png
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
{
"info": {
"name": "歌裴莉娅的葬送前往",
"type": "collect",
"authors": [
{
"name": "Tool_tingsu",
"links": ""
}
],
"version": "1.0",
"description": "",
"map_name": "Teyvat",
"bgi_version": "0.45.0",
"tags": [],
"last_modified_time": 1753791762596,
"enable_monster_loot_split": false
},
"positions": [
{
"id": 1,
"x": 3602.185546875,
"y": 3529.386474609375,
"type": "teleport",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 2,
"x": 3617.0234375,
"y": 3515.871337890625,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": 3633.8837890625,
"y": 3500.517578125,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 4,
"x": 3646.794921875,
"y": 3487.844482421875,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 5,
"x": 3661.6240234375,
"y": 3472.979248046875,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 6,
"x": 3685.3115234375,
"y": 3472.762939453125,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 7,
"x": 3699.0478515625,
"y": 3486.41015625,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 8,
"x": 3712.1982421875,
"y": 3499.31689453125,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 9,
"x": 3726.9365234375,
"y": 3513.27685546875,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 10,
"x": 3742.3486328125,
"y": 3528.9443359375,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 11,
"x": 3758.2509765625,
"y": 3545.006103515625,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 12,
"x": 3773.4033203125,
"y": 3560.517822265625,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 13,
"x": 3787.8408203125,
"y": 3571.67578125,
"type": "target",
"move_mode": "walk",
"action": "combat_script",
"action_params": "keypress(F),wait(3),click,wait(2),keypress(F),wait(6)"
}
]
}
Loading