JS脚本:fix:兽肉好感前往触发地点重上回原地的bug,removed:移除旧的返回七天神像切换队伍
This commit is contained in:
10
archive/Auto TP 7Statue to SwitchParty/assets/Team.json
Normal file
10
archive/Auto TP 7Statue to SwitchParty/assets/Team.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{"macroEvents":[{"type":4,"mouseX":1000,"mouseY":800,"mouseButton":"Left","time":100},
|
||||
{"type":2,"mouseX":1000,"mouseY":900,"time":150},
|
||||
{"type":2,"mouseX":1000,"mouseY":1000,"time":200},
|
||||
{"type":2,"mouseX":1000,"mouseY":1100,"time":250},
|
||||
{"type":2,"mouseX":1000,"mouseY":1200,"time":300},
|
||||
{"type":2,"mouseX":1000,"mouseY":1300,"time":350},
|
||||
{"type":2,"mouseX":1000,"mouseY":1400,"time":400},
|
||||
{"type":2,"mouseX":1000,"mouseY":1500,"time":450},
|
||||
{"type":5,"mouseX":1000,"mouseY":1500,"mouseButton":"Left","time":500}],
|
||||
"info":{"name":"","description":"","x":746,"y":620,"width":1920,"height":1080,"recordDpi":1.75}}
|
||||
56
archive/Auto TP 7Statue to SwitchParty/main.js
Normal file
56
archive/Auto TP 7Statue to SwitchParty/main.js
Normal file
@@ -0,0 +1,56 @@
|
||||
(async function () {
|
||||
async function SwitchCurrentParty() {
|
||||
setGameMetrics(3840, 2160, 2);
|
||||
await genshin.tp(2297.60, -824.45);
|
||||
await sleep(3000);
|
||||
await genshin.returnMainUi();
|
||||
await sleep(2000);
|
||||
keyPress("L");
|
||||
await sleep(4500);
|
||||
click(100, 2050);
|
||||
await sleep(800);
|
||||
|
||||
for(let i = 0; i < 2; i++){
|
||||
await keyMouseScript.runFile(`assets/Team.json`);
|
||||
await sleep(800);
|
||||
}
|
||||
|
||||
click(100, 300);
|
||||
await sleep(800);
|
||||
click(100, 2050);
|
||||
await sleep(800);
|
||||
|
||||
for(let i = 1; i < settings.n; i++){
|
||||
click(3684, 1078);
|
||||
await sleep(800);
|
||||
}
|
||||
|
||||
click(3200, 2050);
|
||||
await sleep(1000);
|
||||
keyPress("Escape");
|
||||
await sleep(1000);
|
||||
|
||||
log.info("已切换至第"+ settings.n +"队");
|
||||
}
|
||||
|
||||
if (!!settings.partyName) {
|
||||
try {
|
||||
log.info("正在传送回七天神像切换队伍");
|
||||
await genshin.tp(2297.60, -824.45);
|
||||
await sleep(3000);
|
||||
log.info("正在尝试切换至" + settings.partyName);
|
||||
await genshin.switchParty(settings.partyName);
|
||||
} catch {
|
||||
log.warn("队伍切换失败,可能处于联机模式或其他不可切换状态");
|
||||
await genshin.returnMainUi();
|
||||
}
|
||||
} else {
|
||||
if (isNaN(settings.n)) {
|
||||
log.warn("不是戈门,你连几号队伍都还没设置,你想让BetterGI切换成啥啊?赶紧去设置一下。如果不会,那就去去看看《BetterGI快速入门》,认真学习一下怎么“修改JS脚本自定义设置”吧,要是这都学不会的话还是去宛平南路600号看看");
|
||||
}else if (settings.n <= 0 || settings.n > 15){
|
||||
log.warn("不是戈门,你...你设置了个啥啊,BetterGI这也没法切啊");
|
||||
}else{
|
||||
await SwitchCurrentParty();
|
||||
}
|
||||
}
|
||||
})();
|
||||
13
archive/Auto TP 7Statue to SwitchParty/manifest.json
Normal file
13
archive/Auto TP 7Statue to SwitchParty/manifest.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "返回七天神像切换指定队伍",
|
||||
"version": "1.0",
|
||||
"description": "回七天神像(脱战&回血),再按顺序切换指定队伍",
|
||||
"authors": [
|
||||
{
|
||||
"name": "LL&起个名字好难的喵"
|
||||
}
|
||||
],
|
||||
"settings_ui": "settings.json",
|
||||
"main": "main.js"
|
||||
}
|
||||
1
archive/Auto TP 7Statue to SwitchParty/readme.md
Normal file
1
archive/Auto TP 7Statue to SwitchParty/readme.md
Normal file
@@ -0,0 +1 @@
|
||||
有新脚本替代
|
||||
13
archive/Auto TP 7Statue to SwitchParty/settings.json
Normal file
13
archive/Auto TP 7Statue to SwitchParty/settings.json
Normal file
@@ -0,0 +1,13 @@
|
||||
[
|
||||
{
|
||||
"name": "partyName",
|
||||
"type": "input-text",
|
||||
"label": "(二选一)需要切换的队伍名称"
|
||||
},
|
||||
{
|
||||
"name": "n",
|
||||
"type": "input-text",
|
||||
"label": "(二选一)需要切换的队伍序号"
|
||||
}
|
||||
|
||||
]
|
||||
Reference in New Issue
Block a user