diff --git a/repo.json b/repo.json index e0e7c48a..1b0c8d2c 100644 --- a/repo.json +++ b/repo.json @@ -1,5 +1,5 @@ { - "time": "20250207134037", + "time": "20250208002528", "url": "https://github.com/babalae/bettergi-scripts-list/archive/refs/heads/main.zip", "file": "repo.json", "indexes": [ @@ -23976,6 +23976,15 @@ "description": "自动领取委托或派遣~|~自动传送到枫丹并领取每日委托或探索派遣,两个都要请运行两次,建议搭配领取历练点使用", "tags": [] }, + { + "name": "Auto TP 7Statue to SwitchTeams", + "type": "directory", + "hash": "659020e42dac5e37fafc8e8875bfda34005438b2", + "version": "1.0", + "author": "LL&起个名字好难的喵", + "description": "返回七天神像切换指定队伍~|~回七天神像(脱战&回血),再按顺序切换指定队伍", + "tags": [] + }, { "name": "AutoArtifacts_A_B_Extra", "type": "directory", diff --git a/repo/js/Auto TP 7Statue to SwitchTeams/assets/Team.json b/repo/js/Auto TP 7Statue to SwitchTeams/assets/Team.json new file mode 100644 index 00000000..4d39bc7b --- /dev/null +++ b/repo/js/Auto TP 7Statue to SwitchTeams/assets/Team.json @@ -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}} \ No newline at end of file diff --git a/repo/js/Auto TP 7Statue to SwitchTeams/main.js b/repo/js/Auto TP 7Statue to SwitchTeams/main.js new file mode 100644 index 00000000..485c44cb --- /dev/null +++ b/repo/js/Auto TP 7Statue to SwitchTeams/main.js @@ -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 +"队"); + } + +})(); \ No newline at end of file diff --git a/repo/js/Auto TP 7Statue to SwitchTeams/manifest.json b/repo/js/Auto TP 7Statue to SwitchTeams/manifest.json new file mode 100644 index 00000000..cebb55a1 --- /dev/null +++ b/repo/js/Auto TP 7Statue to SwitchTeams/manifest.json @@ -0,0 +1,13 @@ +{ + "manifest_version": 1, + "name": "返回七天神像切换指定队伍", + "version": "1.0", + "description": "回七天神像(脱战&回血),再按顺序切换指定队伍", + "authors": [ + { + "name": "LL&起个名字好难的喵" + } + ], + "settings_ui": "settings.json", + "main": "main.js" +} \ No newline at end of file diff --git a/repo/js/Auto TP 7Statue to SwitchTeams/settings.json b/repo/js/Auto TP 7Statue to SwitchTeams/settings.json new file mode 100644 index 00000000..17cb02b0 --- /dev/null +++ b/repo/js/Auto TP 7Statue to SwitchTeams/settings.json @@ -0,0 +1,7 @@ +[ + { + "name": "n", + "type": "input-text", + "label": "队伍序号" + } +] \ No newline at end of file