JS脚本:周本一条龙 (#1344)
This commit is contained in:
BIN
repo/js/周本一条龙/assets/box.png
Normal file
BIN
repo/js/周本一条龙/assets/box.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1018 B |
BIN
repo/js/周本一条龙/assets/paimon_menu.png
Normal file
BIN
repo/js/周本一条龙/assets/paimon_menu.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
BIN
repo/js/周本一条龙/assets/team1.png
Normal file
BIN
repo/js/周本一条龙/assets/team1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 542 B |
BIN
repo/js/周本一条龙/assets/team2.png
Normal file
BIN
repo/js/周本一条龙/assets/team2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 637 B |
1
repo/js/周本一条龙/assets/weeklyBoss1.txt
Normal file
1
repo/js/周本一条龙/assets/weeklyBoss1.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2025-07-14T00:31:54.692Z
|
||||||
1
repo/js/周本一条龙/assets/weeklyBoss10.txt
Normal file
1
repo/js/周本一条龙/assets/weeklyBoss10.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2025-06-20T01:05:51.480Z
|
||||||
1
repo/js/周本一条龙/assets/weeklyBoss11.txt
Normal file
1
repo/js/周本一条龙/assets/weeklyBoss11.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2025-07-14T00:46:28.393Z
|
||||||
1
repo/js/周本一条龙/assets/weeklyBoss12.txt
Normal file
1
repo/js/周本一条龙/assets/weeklyBoss12.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2025-07-14T00:38:22.021Z
|
||||||
1
repo/js/周本一条龙/assets/weeklyBoss13.txt
Normal file
1
repo/js/周本一条龙/assets/weeklyBoss13.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2025-06-20T01:05:51.480Z
|
||||||
1
repo/js/周本一条龙/assets/weeklyBoss14.txt
Normal file
1
repo/js/周本一条龙/assets/weeklyBoss14.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2025-06-20T01:05:51.480Z
|
||||||
1
repo/js/周本一条龙/assets/weeklyBoss2.txt
Normal file
1
repo/js/周本一条龙/assets/weeklyBoss2.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2025-07-14T01:16:36.740Z
|
||||||
1
repo/js/周本一条龙/assets/weeklyBoss3.txt
Normal file
1
repo/js/周本一条龙/assets/weeklyBoss3.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2025-06-20T01:05:51.480Z
|
||||||
1
repo/js/周本一条龙/assets/weeklyBoss4.txt
Normal file
1
repo/js/周本一条龙/assets/weeklyBoss4.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2025-07-10T07:11:27.005Z
|
||||||
1
repo/js/周本一条龙/assets/weeklyBoss5.txt
Normal file
1
repo/js/周本一条龙/assets/weeklyBoss5.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2025-07-10T07:22:55.711Z
|
||||||
1
repo/js/周本一条龙/assets/weeklyBoss6.txt
Normal file
1
repo/js/周本一条龙/assets/weeklyBoss6.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2025-06-20T01:05:51.480Z
|
||||||
1
repo/js/周本一条龙/assets/weeklyBoss7.txt
Normal file
1
repo/js/周本一条龙/assets/weeklyBoss7.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2025-06-20T01:05:51.480Z
|
||||||
1
repo/js/周本一条龙/assets/weeklyBoss8.txt
Normal file
1
repo/js/周本一条龙/assets/weeklyBoss8.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2025-07-10T13:17:51.013Z
|
||||||
1
repo/js/周本一条龙/assets/weeklyBoss9.txt
Normal file
1
repo/js/周本一条龙/assets/weeklyBoss9.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2025-06-20T01:05:51.480Z
|
||||||
93
repo/js/周本一条龙/assets/前往狼王.json
Normal file
93
repo/js/周本一条龙/assets/前往狼王.json
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
{
|
||||||
|
"info": {
|
||||||
|
"name": "未命名路径",
|
||||||
|
"type": "collect",
|
||||||
|
"author": "柒叶子",
|
||||||
|
"version": "1.0",
|
||||||
|
"description": "前往狼王",
|
||||||
|
"bgi_version": "0.35.1"
|
||||||
|
},
|
||||||
|
"positions": [
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"action": "",
|
||||||
|
"move_mode": "walk",
|
||||||
|
"type": "teleport",
|
||||||
|
"x": -251.5966796875,
|
||||||
|
"y": 2256.586181640625,
|
||||||
|
"action_params": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 2,
|
||||||
|
"x": -239.8662109375,
|
||||||
|
"y": 2235.255859375,
|
||||||
|
"type": "path",
|
||||||
|
"move_mode": "dash",
|
||||||
|
"action": "",
|
||||||
|
"action_params": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 3,
|
||||||
|
"x": -243.6318359375,
|
||||||
|
"y": 2219.89599609375,
|
||||||
|
"type": "path",
|
||||||
|
"move_mode": "dash",
|
||||||
|
"action": "",
|
||||||
|
"action_params": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 4,
|
||||||
|
"x": -250.318359375,
|
||||||
|
"y": 2200.3515625,
|
||||||
|
"type": "path",
|
||||||
|
"move_mode": "fly",
|
||||||
|
"action": "",
|
||||||
|
"action_params": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 5,
|
||||||
|
"x": -263.7783203125,
|
||||||
|
"y": 2142.494140625,
|
||||||
|
"type": "path",
|
||||||
|
"move_mode": "dash",
|
||||||
|
"action": "",
|
||||||
|
"action_params": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 6,
|
||||||
|
"x": -266.06640625,
|
||||||
|
"y": 2100.711669921875,
|
||||||
|
"type": "path",
|
||||||
|
"move_mode": "dash",
|
||||||
|
"action": "",
|
||||||
|
"action_params": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 7,
|
||||||
|
"x": -273.099609375,
|
||||||
|
"y": 2053.126220703125,
|
||||||
|
"type": "path",
|
||||||
|
"move_mode": "walk",
|
||||||
|
"action": "",
|
||||||
|
"action_params": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 8,
|
||||||
|
"x": -276.521484375,
|
||||||
|
"y": 2028.33837890625,
|
||||||
|
"type": "path",
|
||||||
|
"move_mode": "fly",
|
||||||
|
"action": "stop_flying",
|
||||||
|
"action_params": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 9,
|
||||||
|
"x": -280.3447265625,
|
||||||
|
"y": 1999.419921875,
|
||||||
|
"type": "target",
|
||||||
|
"move_mode": "dash",
|
||||||
|
"action": "",
|
||||||
|
"action_params": ""
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
72
repo/js/周本一条龙/main.js
Normal file
72
repo/js/周本一条龙/main.js
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
eval(file.readTextSync("utils.js"));
|
||||||
|
(async function () {
|
||||||
|
|
||||||
|
function validateChallengeTime(challengeTime) {
|
||||||
|
|
||||||
|
|
||||||
|
// 检查是否为正数
|
||||||
|
if (challengeTime <= 0) {
|
||||||
|
throw new Error('challengeTime 必须是一个正数');
|
||||||
|
}
|
||||||
|
|
||||||
|
// 检查是否小于60
|
||||||
|
if (challengeTime >= 60) {
|
||||||
|
throw new Error('challengeTime 必须小于60');
|
||||||
|
}
|
||||||
|
|
||||||
|
// 检查小数点位数是否不多于两位
|
||||||
|
const decimalPart = challengeTime.toString().split('.')[1];
|
||||||
|
if (decimalPart && decimalPart.length > 2) {
|
||||||
|
throw new Error('challengeTime 的小数点位数不能多于两位');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
validateChallengeTime(settings.challengeTime);
|
||||||
|
|
||||||
|
if(!settings.unfairContractTerms) throw new Error('未签署霸王条款,无法使用');
|
||||||
|
|
||||||
|
//执行不同的周本
|
||||||
|
switch (settings.monsterName) {
|
||||||
|
case "北风狼":
|
||||||
|
await utils.weeklyBoss1();
|
||||||
|
break;
|
||||||
|
case "风魔龙":
|
||||||
|
await utils.weeklyBoss2();
|
||||||
|
break;
|
||||||
|
case "公子":
|
||||||
|
await utils.weeklyBoss3();
|
||||||
|
break;
|
||||||
|
case "若陀龙王":
|
||||||
|
await utils.weeklyBoss4();
|
||||||
|
break;
|
||||||
|
case "女士":
|
||||||
|
await utils.weeklyBoss5();
|
||||||
|
break;
|
||||||
|
case "雷神":
|
||||||
|
await utils.weeklyBoss6();
|
||||||
|
break;
|
||||||
|
case "散兵":
|
||||||
|
await utils.weeklyBoss7();
|
||||||
|
break;
|
||||||
|
case "阿佩普":
|
||||||
|
await utils.weeklyBoss8();
|
||||||
|
break;
|
||||||
|
case "吞星之鲸":
|
||||||
|
await utils.weeklyBoss9();
|
||||||
|
break;
|
||||||
|
case "仆人":
|
||||||
|
await utils.weeklyBoss10();
|
||||||
|
break;
|
||||||
|
case "源焰之主":
|
||||||
|
await utils.weeklyBoss11();
|
||||||
|
break;
|
||||||
|
case "门扉前的弈局":
|
||||||
|
await utils.weeklyBoss12();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
})();
|
||||||
14
repo/js/周本一条龙/manifest.json
Normal file
14
repo/js/周本一条龙/manifest.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"manifest_version": 1,
|
||||||
|
"name": "周本一条龙",
|
||||||
|
"version": "3.0",
|
||||||
|
"description": "https://www.bilibili.com/video/BV1F2uvz3E4K/?vd_source=9dfaf88af48ecc0ff95a41f1145af7a2",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "柒叶子",
|
||||||
|
"link": "https://github.com/511760049"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"settings_ui": "settings.json",
|
||||||
|
"main": "main.js"
|
||||||
|
}
|
||||||
41
repo/js/周本一条龙/readme.txt
Normal file
41
repo/js/周本一条龙/readme.txt
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
|
||||||
|
配置组设置注意事项
|
||||||
|
1、开启地图追踪行走配置
|
||||||
|
2、关闭自动拾取
|
||||||
|
3、开启战斗配置
|
||||||
|
4、战斗策略选择"根据队伍自动选择"
|
||||||
|
5、关闭自动拾取
|
||||||
|
|
||||||
|
JS配置注意事项
|
||||||
|
1、必须同时填写复活料理和恢复料理,才能正常复活
|
||||||
|
2、战斗脚本中最好每个角色只上场一次,避免复活检测失效
|
||||||
|
3、单轮战斗时长是指战斗脚本运行一轮所需要的时间,填写战斗时长可以精确到小数点后两位,我最常用的周本队大约是13.5秒
|
||||||
|
4、战斗中只有四类料理可以生效,重复使用相同类型的料理会覆盖掉上一个,四类料理分别为攻击类、防御类、药剂类、冒险类
|
||||||
|
5、需要勾选最后的用户协议才能正常运行
|
||||||
|
|
||||||
|
部分周本需要额外开盾,请将队伍中的护盾角色放在一号位!!!
|
||||||
|
|
||||||
|
各周本注意事项:
|
||||||
|
"北风狼":避免使用风系和冰系的角色
|
||||||
|
|
||||||
|
"风魔龙":无
|
||||||
|
|
||||||
|
"公子":压力大时推荐护盾类料理
|
||||||
|
|
||||||
|
"若陀龙王":boss伤害较高,强烈建议填写护盾类料理
|
||||||
|
|
||||||
|
"女士":必须携带火后台才能挑战成功
|
||||||
|
|
||||||
|
"雷神":存在必杀机制,建议填写复活料理
|
||||||
|
|
||||||
|
"散兵":存在必杀机制,建议填写复活料理
|
||||||
|
|
||||||
|
"阿佩普":二阶段击杀小怪的时候,可能遇到草盾怪物,建议使用优先使用火后台,
|
||||||
|
|
||||||
|
"吞星之鲸":无
|
||||||
|
|
||||||
|
"仆人":压力大时推荐护盾类料理,火抗药剂
|
||||||
|
|
||||||
|
"源焰之主":BOSS存在侵蚀机制,角色容易蒸发,关卡难度较大,强烈建议额外使用生命类料理和火抗药剂并填写复活料理
|
||||||
|
|
||||||
|
"门扉前的弈局":存在必杀机制,建议填写复活料理。此外boss开局可能进入撞棋子的模式,导致无法造成伤害,强烈建议开启满能量模式并吃点攻击料理,争取第一轮带走 boss避免挑战失败。
|
||||||
64
repo/js/周本一条龙/settings.json
Normal file
64
repo/js/周本一条龙/settings.json
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "monsterName",
|
||||||
|
"type": "select",
|
||||||
|
"label": "周本Boss名称",
|
||||||
|
"options": [
|
||||||
|
"北风狼",
|
||||||
|
"风魔龙",
|
||||||
|
"公子",
|
||||||
|
"若陀龙王",
|
||||||
|
"女士",
|
||||||
|
"雷神",
|
||||||
|
"散兵",
|
||||||
|
"阿佩普",
|
||||||
|
"吞星之鲸",
|
||||||
|
"仆人",
|
||||||
|
"源焰之主",
|
||||||
|
"门扉前的弈局"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "challengeTime",
|
||||||
|
"type": "input-text",
|
||||||
|
"label": "请输入战斗脚本一轮所运行的时间"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "teamName",
|
||||||
|
"type": "input-text",
|
||||||
|
"label": "请输入挑战队伍名称"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "foodName",
|
||||||
|
"type": "input-text",
|
||||||
|
"label": "请输入料理名称,多食物用法(攻击-药剂-防御)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "resurgenceFoodName",
|
||||||
|
"type": "input-text",
|
||||||
|
"label": "请输入复活料理名称 "
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "recoveryFoodName",
|
||||||
|
"type": "input-text",
|
||||||
|
"label": "请输入回血料理名称 "
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "energyMax",
|
||||||
|
"type": "checkbox",
|
||||||
|
"label": "挑战前是否恢复满能量",
|
||||||
|
"default": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "fightMode",
|
||||||
|
"type": "checkbox",
|
||||||
|
"label": "战斗模式(忽略刷新周期和体力值)",
|
||||||
|
"default": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "unfairContractTerms",
|
||||||
|
"type": "checkbox",
|
||||||
|
"label": "签署霸王条款开启使用,出了事跟作者无关",
|
||||||
|
"default": false
|
||||||
|
}
|
||||||
|
]
|
||||||
9386
repo/js/周本一条龙/utils.js
Normal file
9386
repo/js/周本一条龙/utils.js
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user