js:AutoStoryLoader 1.4 (#1987)

This commit is contained in:
xoipz
2025-09-25 03:18:06 +08:00
committed by GitHub
parent 292c39ef69
commit b2afa50667
4 changed files with 25 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
(async function () {
// 版本和编译信息
const VERSION = "1.3";
const BUILD_TIME = "2025.09.20";
const VERSION = "1.4";
const BUILD_TIME = "2025.09.24";
// 定义识别对象
const paimonMenuRo = RecognitionObject.TemplateMatch(
@@ -492,6 +492,23 @@ const isInMainUI = () => {
自动任务: async (step, context) => {
await StepProcessor.processAutoTask(step);
},
战斗: async (step, context) => {
await dispatcher.runTask(new SoloTask("AutoFight"));
},
暂停: async (step, context) => {
log.warn("即将暂停脚本的运行请在10秒内手动暂停并完成接下来任务按下解除暂停键继续运行");
await sleep(1000);
log.warn("即将暂停脚本的运行请在10秒内手动暂停并完成接下来任务按下解除暂停键继续运行");
await sleep(1000);
log.warn("即将暂停脚本的运行请在10秒内手动暂停并完成接下来任务按下解除暂停键继续运行");
if(step.data)
{
log.warn('作者提示:{data}',step.data);
}
await sleep(10000);
},
},
// 注册新的步骤处理器
@@ -927,6 +944,8 @@ const isInMainUI = () => {
return false;
}
} catch (jsonError) {
log.error("是不是用了馋馋你们,馋馋你们用不了!!!这个星野怎么这么坏");
log.error("或者JSON错误: {error}", jsonError.message);
throw jsonError;
}
return processSteps;

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "自动剧情加载器",
"version": "1.3",
"version": "1.4",
"tags": ["剧情","任务"],
"description": "剧情自动加载器一键挂机过剧情:自动寻路、对话、战斗(需任务脚本支持),脚本拖进调度器就能跑,仅提供技术框架,完全体须搭配需任务脚本使用,详情见说明文档",
"authors": [

View File

@@ -2,7 +2,7 @@
{
"name": "disclaimer_accepted",
"type": "checkbox",
"label": "我同意不传播、不跳脸",
"label": "我同意不传播、不跳脸、不商用!!!",
"default": false
},
{
@@ -17,10 +17,10 @@
"label": "可执行剧情列表",
"options": [
"刷新剧情列表",
"新建文件夹-铛铛铛,大危机(风马牛)",
"馋馋你们-5.x主线 第五章 第五幕",
"馋馋你们-6.0主线 第一章 雪浪与苍林之舞",
"馋馋你们-6.0主线 第二章 尘与灯的挽歌",
"馋馋你们-6.0活动铛铛铛,大危机",
"馋馋你们-用不了馋馋你们,这个星野怎么这么坏"
],
"default": "刷新剧情列表"