Add files via upload

This commit is contained in:
Kupder
2024-10-27 22:03:26 +08:00
committed by GitHub
parent 5ba90c524b
commit a48e41ff66
5 changed files with 116 additions and 0 deletions

View File

@@ -0,0 +1,75 @@
(async function () {
setGameMetrics(1920, 1080, 2);
// 来自于界面配置
let sereniteaPotType = settings.sereniteaPot;
log.info('快捷道具栏需装满4个确保尘歌壶在第5位');
setGameMetrics(1920, 1080, 2);
await sleep(1000);
keyPress("B"); //打开背包
await sleep(1000);
click(1058, 48); //小道具
await sleep(500);
click(765, 190); //背包第5位诚哥壶
await sleep(500);
click(1700, 1018); //放置
await sleep(1000);
keyPress("F"); //进入诚哥壶
await sleep(10000);
if (sereniteaPotType == "璃月绿顶建筑"){
log.info("璃月绿顶建筑");
keyDown("D");
await sleep(500);
keyUp("D");
await sleep(500);
}else if(sereniteaPotType == "蒙德红顶建筑"){
log.info("蒙德红顶建筑");
keyDown("A");
await sleep(1200);
keyUp("A");
await sleep(500);
}else if(sereniteaPotType == "稻妻蓝顶建筑"){
log.info("稻妻蓝顶建筑");
keyDown("A");
await sleep(1700);
keyUp("A");
await sleep(500);
keyDown("S");
await sleep(1700);
keyUp("S");
await sleep(500);
}else if(sereniteaPotType == "须弥绿色建筑"){
log.info("须弥绿色建筑");
keyDown("D");
await sleep(1300);
keyUp("D");
await sleep(500);
}else if(sereniteaPotType == "枫丹白色建筑"){
log.info("枫丹白色建筑");
keyDown("S");
await sleep(1300);
keyUp("S");
await sleep(500);
keyDown("A");
await sleep(500);
keyUp("A");
await sleep(500);
}else{
}
keyPress("F"); //阿圆对话
await sleep(2000);
click(1081, 955); //跳过对话
await sleep(2000);
click(1383, 430); //信任等阶
await sleep(2000);
click(1081, 955); //宝钱
await sleep(2000);
click(1812, 716); //好感度
await sleep(2000);
click(1863, 48);; //返回
await sleep(5000);
click(1356, 804); //再见1
await sleep(2000);
click(1356, 804); //再见2
await sleep(1000);
})();

View File

@@ -0,0 +1,13 @@
{
"manifest_version": 1,
"name": "尘歌壶",
"version": "1.2",
"description": "自动领诚哥壶奖励",
"authors": [
{
"name": "愚溪",
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,14 @@
1、使用前将JS脚本添加到调度器右键修改JS脚本自定义配置选择宅邸的建筑类型
根据请根据宅邸类型选择自定义配置
罗浮洞、翠黛峰 默认使用“默认宅邸类型.png”左2的宅邸即璃月绿顶建筑
清琼岛 默认使用“默认宅邸类型.png”左1的宅邸即蒙德红顶建筑
绘绮庭 默认使用“默认宅邸类型.png”左3的宅邸即稻妻蓝顶建筑
妙香林 默认使用“默认宅邸类型.png”左4的宅邸即须弥绿色建筑
旋流屿 默认使用“默认宅邸类型.png”左5的宅邸即枫丹白色建筑
2、确保4个快捷道具都装备上了
3、请在平坦区域运行此脚本
V1.1修复了自定义选项与实际不匹配的BUG
V1.2完善了自定义选项,使之更符合使用习惯

View File

@@ -0,0 +1,14 @@
[
{
"name": "sereniteaPot",
"type": "select",
"label": "宅邸类型",
"options": [
"蒙德红顶建筑",
"璃月绿顶建筑",
"稻妻蓝顶建筑",
"须弥绿色建筑",
"枫丹白色建筑"
]
}
]

Binary file not shown.

After

Width:  |  Height:  |  Size: 613 KiB