Skip to content

js:新增冰造物 NPC 点赞自动化脚本 - #3613

Open
dishangti233 wants to merge 6 commits into
babalae:mainfrom
dishangti233:add-ice-object-npc-like
Open

js:新增冰造物 NPC 点赞自动化脚本#3613
dishangti233 wants to merge 6 commits into
babalae:mainfrom
dishangti233:add-ice-object-npc-like

Conversation

@dishangti233

@dishangti233 dishangti233 commented Sep 3, 2026

Copy link
Copy Markdown

功能说明

新增 repo/js/IceObjectNpcLike,用于自动前往至冬 NPC 工位,通过两次放置冰造物获得点赞,并在每个点位结束前完成最终清理。

主要功能:

  • 收录 Point 01~09 路线,当前全部路线预计共获得 36 赞;
  • 使用 BetterGI 地图追踪和 SIFT 地图匹配前往固定工位;
  • 使用固定镜头标定与键鼠 API 完成两次放置、点赞等待、删除和退出造物界面;
  • 支持每条路线独立启用或关闭;
  • 支持按 Point 编号、高点赞优先、高收益精简三种运行模式;
  • 支持按设定的 Point 数量定期返回七天神像恢复热能;
  • 支持 Point 07 → Point 08 → Point 09 连续路线;
  • Point 08 未启用时,自动使用 Point 07 → Point 09 的完整备用路线;
  • 提供镜头、动作延迟、4K 时序补偿及路线开关等自定义配置。

实机测试

已进行完整路线测试,运行正常。

主要测试环境:

  • 1920×10802560×1440,16:9;
  • 原神水平、垂直镜头灵敏度均为默认值 3
  • 小地图锁定方向;
  • BetterGI 截图方式为 BitBlt
  • 路线使用 SIFT 地图匹配;
  • BetterGI 最低版本要求为 0.64.0

路线前置

  • Point 06、Point 07、Point 09 需要完成三个聚所任务共同第四幕“雪后曙光”;
  • Point 08 需要在完成“雪后曙光”后的现实时间第二天完成“新雪来客”;
  • 上述任务路线默认关闭,由用户根据任务进度自行启用;
  • 详细任务说明、路线用途和教程链接已写入 README.md

安全与实现说明

脚本仅使用 BetterGI 公开 JS API 和地图追踪资源:

  • 不读取游戏内存;
  • 不运行外部程序;
  • 不联网;
  • 不使用第三方依赖;
  • 不使用 KeyMouseScript 录制回放;
  • 不使用 OCR、模板匹配或点赞视觉识别。

所有 Pathing 资源的实际用途、路线依赖和设置方法均已在 README 中说明。

新增至冬冰造物 NPC 点赞自动化 JS 脚本。

冰造物放在至冬部分NPC身边范围内可以增加点赞数。

包含 Point 01~09 地图追踪、两次点赞与最终造物清理、热能恢复调度、路线独立开关、连续路线分支、按点赞量排序及镜头标定设置。
@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 2fd8e9a3-9d32-4ec2-a7bc-43ef2b102d16

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9ccdf5fa6a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

"map_match_method": "SIFT",
"map_name": "Teyvat",
"name": "point04",
"tags": [

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 统一 Point 04 的点赞标签

当默认启用 Point 04 时,main.js 会读取这里的 点赞=4 用于排序和最终统计,但 settings.json、两份 README 及提交说明均将该点标为 1 名 NPC、两次共 2 赞;因此默认路线会报告 22 而非文档声明的 20 赞,全路线会报告 36 而非 34 赞,“高点赞优先”也会把该点错误地按 4 赞排序。请按实测 NPC 数量统一路线的 description/tag 与设置和文档;若该点确为 1 人,应将标签改为 点赞=2

AGENTS.md reference: AGENTS.md:L13-L13

Useful? React with 👍 / 👎.

@A-Little-AnQi

Copy link
Copy Markdown
Collaborator

脚本用来干什么

@dishangti233

Copy link
Copy Markdown
Author

@A-Little-AnQi 您好呀,这个脚本用于自动获取至冬“冰造物”系统的 NPC 点赞。
在至冬的部分 NPC 附近放置冰造物后,NPC 会给造物点赞。一个NPC一天最多两次。
脚本通过地图追踪依次前往预设NPC的所在位置,自动完成两次冰造物放置、点赞等待、删除和最终清理,并按设定频率返回七天神像恢复热能。
目前收录9条路线,全部启用时预计共获得 36 赞,并支持路线独立开关、按点赞数排序和任务前置路线分支。

@Leeon-666

Copy link
Copy Markdown
Contributor

这个获取点赞数,真的很多人需要吗...

@dishangti233

Copy link
Copy Markdown
Author

@Leeon-666 🥺万一呢hhhhh
我就是想凑个1314点赞然后觉得手动太麻烦了hhh😂
确实这个需求看起来挺垂的🥲
可是我觉得很有意思啊~~~

@Leeon-666

Copy link
Copy Markdown
Contributor

建议按照PR #3615 的规范,把路线名称按照规范修改一下,然后Pathing目录下不要放README.md,可以和上级目录的README.md合并,README.md不要太繁杂,参考规范润色一下

@dishangti233

Copy link
Copy Markdown
Author

好的豪得,我改下~

按规范重命名 Pathing 路线并同步 info.name;
移除 Pathing 目录 README,将必要说明合并至项目 README;
拆分 main.js 模块,保留原路线坐标与执行逻辑。

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

过多设置项,几十个的数量过于夸张,请自行缩减,不要让ai做最终决定,需要自行思考保留哪些

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,我再改改

仅保留运行模式,各 Point 独立开关,镜头角度还有4K时序补偿开关。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants