From 226892c168ea3e1a790aeef13b8b10b59513ef60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=AA=E7=B1=BD=E9=98=B3=E5=A4=96=E5=A9=86?= <2915414902@qq.com> Date: Sun, 13 Oct 2024 20:50:41 +0800 Subject: [PATCH] Add files via upload --- repo/js/EncounterPoints/main.js | 14 +++++++++++ repo/js/EncounterPoints/manifest.json | 12 ++++++++++ repo/js/LastParty/main.js | 14 +++++++++++ repo/js/LastParty/manifest.json | 12 ++++++++++ repo/js/Mail/main.js | 16 +++++++++++++ repo/js/Mail/manifest.json | 12 ++++++++++ repo/js/NextParty/main.js | 13 ++++++++++ repo/js/NextParty/manifest.json | 12 ++++++++++ repo/js/QuitGame/main.js | 8 +++++++ repo/js/QuitGame/manifest.json | 12 ++++++++++ repo/js/SalvageArtifacts/main.js | 33 ++++++++++++++++++++++++++ repo/js/SalvageArtifacts/manifest.json | 12 ++++++++++ repo/js/Shutdown/main.js | 15 ++++++++++++ repo/js/Shutdown/manifest.json | 12 ++++++++++ 14 files changed, 197 insertions(+) create mode 100644 repo/js/EncounterPoints/main.js create mode 100644 repo/js/EncounterPoints/manifest.json create mode 100644 repo/js/LastParty/main.js create mode 100644 repo/js/LastParty/manifest.json create mode 100644 repo/js/Mail/main.js create mode 100644 repo/js/Mail/manifest.json create mode 100644 repo/js/NextParty/main.js create mode 100644 repo/js/NextParty/manifest.json create mode 100644 repo/js/QuitGame/main.js create mode 100644 repo/js/QuitGame/manifest.json create mode 100644 repo/js/SalvageArtifacts/main.js create mode 100644 repo/js/SalvageArtifacts/manifest.json create mode 100644 repo/js/Shutdown/main.js create mode 100644 repo/js/Shutdown/manifest.json diff --git a/repo/js/EncounterPoints/main.js b/repo/js/EncounterPoints/main.js new file mode 100644 index 00000000..790e9609 --- /dev/null +++ b/repo/js/EncounterPoints/main.js @@ -0,0 +1,14 @@ +(async function () { + setGameMetrics(3840, 2160, 2); + keyPress("F1"); + await sleep(1600); + click(580, 680); + await sleep(1000); + click(3110, 1508); + await sleep(1000); + keyPress("Escape"); + await sleep(1500); + keyPress("Escape"); + + log.info("已领取历练点"); +})(); \ No newline at end of file diff --git a/repo/js/EncounterPoints/manifest.json b/repo/js/EncounterPoints/manifest.json new file mode 100644 index 00000000..d944d7ac --- /dev/null +++ b/repo/js/EncounterPoints/manifest.json @@ -0,0 +1,12 @@ +{ + "manifest_version": 1, + "name": "领取历练点", + "version": "1.0", + "description": "用于领取历练点", + "authors": [ + { + "name": "HZYgrandma", + } + ], + "main": "main.js", +} \ No newline at end of file diff --git a/repo/js/LastParty/main.js b/repo/js/LastParty/main.js new file mode 100644 index 00000000..6aa46305 --- /dev/null +++ b/repo/js/LastParty/main.js @@ -0,0 +1,14 @@ +(async function () { + await sleep(15000); + setGameMetrics(3840, 2160, 2); + keyPress("L"); + await sleep(4500); + click(150, 1078); + await sleep(800); + click(3200, 2050); + await sleep(1000); + keyPress("Escape"); + await sleep(1000); + + log.info("已切换至上一队"); +})(); \ No newline at end of file diff --git a/repo/js/LastParty/manifest.json b/repo/js/LastParty/manifest.json new file mode 100644 index 00000000..85dab8ea --- /dev/null +++ b/repo/js/LastParty/manifest.json @@ -0,0 +1,12 @@ +{ + "manifest_version": 1, + "name": "切换上一队", + "version": "1.0", + "description": "用于切换到上一队", + "authors": [ + { + "name": "HZYgrandma", + } + ], + "main": "main.js", +} \ No newline at end of file diff --git a/repo/js/Mail/main.js b/repo/js/Mail/main.js new file mode 100644 index 00000000..5fe21709 --- /dev/null +++ b/repo/js/Mail/main.js @@ -0,0 +1,16 @@ +(async function () { + setGameMetrics(3840, 2160, 2); + keyPress("Escape"); + await sleep(1500); + click(94, 1212); + await sleep(1500); + click(500, 2024); + await sleep(1000); + keyPress("Escape"); + await sleep(1000); + keyPress("Escape"); + await sleep(1000); + keyPress("Escape"); + + log.info("已领取邮件"); +})(); \ No newline at end of file diff --git a/repo/js/Mail/manifest.json b/repo/js/Mail/manifest.json new file mode 100644 index 00000000..73025115 --- /dev/null +++ b/repo/js/Mail/manifest.json @@ -0,0 +1,12 @@ +{ + "manifest_version": 1, + "name": "领取邮件", + "version": "1.0", + "description": "用于领取邮件", + "authors": [ + { + "name": "HZYgrandma", + } + ], + "main": "main.js", +} \ No newline at end of file diff --git a/repo/js/NextParty/main.js b/repo/js/NextParty/main.js new file mode 100644 index 00000000..463b0dc2 --- /dev/null +++ b/repo/js/NextParty/main.js @@ -0,0 +1,13 @@ +(async function () { + setGameMetrics(3840, 2160, 2); + keyPress("L"); + await sleep(4500); + click(3684, 1078); + await sleep(800); + click(3200, 2050); + await sleep(1000); + keyPress("Escape"); + await sleep(1000); + + log.info("已切换至下一队"); +})(); \ No newline at end of file diff --git a/repo/js/NextParty/manifest.json b/repo/js/NextParty/manifest.json new file mode 100644 index 00000000..e60660d4 --- /dev/null +++ b/repo/js/NextParty/manifest.json @@ -0,0 +1,12 @@ +{ + "manifest_version": 1, + "name": "切换下一队", + "version": "1.0", + "description": "用于切换到下一队", + "authors": [ + { + "name": "HZYgrandma", + } + ], + "main": "main.js", +} \ No newline at end of file diff --git a/repo/js/QuitGame/main.js b/repo/js/QuitGame/main.js new file mode 100644 index 00000000..5c94c92c --- /dev/null +++ b/repo/js/QuitGame/main.js @@ -0,0 +1,8 @@ +(async function () { + keyDown("MENU"); + keyDown("F4"); + await sleep(50); + keyUp("MENU"); + keyUp("F4"); + await sleep(1500); +})(); \ No newline at end of file diff --git a/repo/js/QuitGame/manifest.json b/repo/js/QuitGame/manifest.json new file mode 100644 index 00000000..914e4749 --- /dev/null +++ b/repo/js/QuitGame/manifest.json @@ -0,0 +1,12 @@ +{ + "manifest_version": 1, + "name": "退出游戏", + "version": "1.0", + "description": "用于退出游戏", + "authors": [ + { + "name": "HZYgrandma", + } + ], + "main": "main.js", +} \ No newline at end of file diff --git a/repo/js/SalvageArtifacts/main.js b/repo/js/SalvageArtifacts/main.js new file mode 100644 index 00000000..148f11a8 --- /dev/null +++ b/repo/js/SalvageArtifacts/main.js @@ -0,0 +1,33 @@ +(async function () { + setGameMetrics(3840, 2160, 2); + keyPress("b"); + await sleep(1500); + click(1350, 90); + await sleep(1240); + click(1310, 2030); + await sleep(1000); + click(580, 2030); + await sleep(1240); + click(250, 300); + await sleep(500); + click(250, 450); + await sleep(500); + click(250, 600); + await sleep(500); + click(250, 750); + await sleep(500); + click(700, 2030); + await sleep(1240); + click(3500, 2030); + await sleep(1240); + click(2300, 1500); + await sleep(1000); + keyPress("Escape"); + await sleep(800); + keyPress("Escape"); + await sleep(1000); + keyPress("Escape"); + await sleep(1000); + + log.info("已分解狗粮"); +})(); \ No newline at end of file diff --git a/repo/js/SalvageArtifacts/manifest.json b/repo/js/SalvageArtifacts/manifest.json new file mode 100644 index 00000000..a0fe77d2 --- /dev/null +++ b/repo/js/SalvageArtifacts/manifest.json @@ -0,0 +1,12 @@ +{ + "manifest_version": 1, + "name": "分解狗粮", + "version": "1.0", + "description": "用于分解狗粮", + "authors": [ + { + "name": "HZYgrandma", + } + ], + "main": "main.js", +} \ No newline at end of file diff --git a/repo/js/Shutdown/main.js b/repo/js/Shutdown/main.js new file mode 100644 index 00000000..01849678 --- /dev/null +++ b/repo/js/Shutdown/main.js @@ -0,0 +1,15 @@ +(async function () { + keyDown("LWIN"); + keyDown("X"); + await sleep(50); + keyUp("LWIN"); + keyUp("X"); + await sleep(3000); + keyPress("LSHIFT"); + await sleep(50); + keyPress("LCONTROL"); + await sleep(50); + keyPress("U"); + await sleep(1000); + keyPress("U"); +})(); \ No newline at end of file diff --git a/repo/js/Shutdown/manifest.json b/repo/js/Shutdown/manifest.json new file mode 100644 index 00000000..97fbdc45 --- /dev/null +++ b/repo/js/Shutdown/manifest.json @@ -0,0 +1,12 @@ +{ + "manifest_version": 1, + "name": "关闭计算机", + "version": "1.0", + "description": "用于关闭计算机", + "authors": [ + { + "name": "HZYgrandma", + } + ], + "main": "main.js", +} \ No newline at end of file