-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from Kupder/main
js脚本:尘歌壶每日领取宝钱和经验
- Loading branch information
Showing
5 changed files
with
120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
(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("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); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"manifest_version": 1, | ||
"name": "诚哥壶", | ||
"version": "1.0", | ||
"description": "自动领诚哥壶奖励", | ||
"authors": [ | ||
{ | ||
"name": "愚溪", | ||
} | ||
], | ||
"settings_ui": "settings.json", | ||
"main": "main.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
1、使用前将JS脚本添加到调度器,右键修改JS脚本自定义配置,选择洞天形态 | ||
|
||
若未更改宅邸类型,可直接选择当前洞天形态。 | ||
罗浮洞、翠黛峰 默认使用“默认宅邸类型.png”左1的宅邸; | ||
清琼岛 默认使用“默认宅邸类型.png”左2的宅邸; | ||
绘绮庭 默认使用“默认宅邸类型.png”左3的宅邸; | ||
妙香林 默认使用“默认宅邸类型.png”左4的宅邸; | ||
旋流屿 默认使用“默认宅邸类型.png”左5的宅邸; | ||
|
||
2、确保4个快捷道具都装备上了 | ||
3、请在平坦区域运行此脚本 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[ | ||
{ | ||
"name": "sereniteaPot", | ||
"type": "select", | ||
"label": "洞天形态", | ||
"options": [ | ||
"罗浮洞", | ||
"翠黛峰", | ||
"清琼岛", | ||
"绘绮庭", | ||
"妙香林", | ||
"旋流屿" | ||
] | ||
} | ||
] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.