JS脚本:返回神像切换指定队伍,但warn带点孙吧口气 (#312)
* update repo.json * JS脚本:返回神像切换指定队伍,但warn带点孙吧口气 * update repo.json
This commit is contained in:
11
repo.json
11
repo.json
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"time": "20250207134037",
|
"time": "20250208002528",
|
||||||
"url": "https://github.com/babalae/bettergi-scripts-list/archive/refs/heads/main.zip",
|
"url": "https://github.com/babalae/bettergi-scripts-list/archive/refs/heads/main.zip",
|
||||||
"file": "repo.json",
|
"file": "repo.json",
|
||||||
"indexes": [
|
"indexes": [
|
||||||
@@ -23976,6 +23976,15 @@
|
|||||||
"description": "自动领取委托或派遣~|~自动传送到枫丹并领取每日委托或探索派遣,两个都要请运行两次,建议搭配领取历练点使用",
|
"description": "自动领取委托或派遣~|~自动传送到枫丹并领取每日委托或探索派遣,两个都要请运行两次,建议搭配领取历练点使用",
|
||||||
"tags": []
|
"tags": []
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "Auto TP 7Statue to SwitchTeams",
|
||||||
|
"type": "directory",
|
||||||
|
"hash": "659020e42dac5e37fafc8e8875bfda34005438b2",
|
||||||
|
"version": "1.0",
|
||||||
|
"author": "LL&起个名字好难的喵",
|
||||||
|
"description": "返回七天神像切换指定队伍~|~回七天神像(脱战&回血),再按顺序切换指定队伍",
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "AutoArtifacts_A_B_Extra",
|
"name": "AutoArtifacts_A_B_Extra",
|
||||||
"type": "directory",
|
"type": "directory",
|
||||||
|
|||||||
10
repo/js/Auto TP 7Statue to SwitchTeams/assets/Team.json
Normal file
10
repo/js/Auto TP 7Statue to SwitchTeams/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}}
|
||||||
39
repo/js/Auto TP 7Statue to SwitchTeams/main.js
Normal file
39
repo/js/Auto TP 7Statue to SwitchTeams/main.js
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
(async function () {
|
||||||
|
setGameMetrics(3840, 2160, 2);
|
||||||
|
await genshin.tp(2297.60, -824.45);
|
||||||
|
|
||||||
|
if (isNaN(settings.n)) {
|
||||||
|
log.warn("不是戈门,你连几号队伍都还没设置,你想让BetterGI切换成啥啊?赶紧去设置一下。如果不会,那就去去看看《BetterGI快速入门》,认真学习一下怎么“修改JS脚本自定义设置”吧,要是这都学不会的话还是去宛平南路600号看看");
|
||||||
|
}else if (settings.n <= 0 || settings.n > 15){
|
||||||
|
log.warn("不是戈门,你...你设置了个啥啊,BetterGI这也没法切啊");
|
||||||
|
}else{
|
||||||
|
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 +"队");
|
||||||
|
}
|
||||||
|
|
||||||
|
})();
|
||||||
13
repo/js/Auto TP 7Statue to SwitchTeams/manifest.json
Normal file
13
repo/js/Auto TP 7Statue to SwitchTeams/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"
|
||||||
|
}
|
||||||
7
repo/js/Auto TP 7Statue to SwitchTeams/settings.json
Normal file
7
repo/js/Auto TP 7Statue to SwitchTeams/settings.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "n",
|
||||||
|
"type": "input-text",
|
||||||
|
"label": "队伍序号"
|
||||||
|
}
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user