Merge branch 'babalae:main' into main
This commit is contained in:
20
repo.json
20
repo.json
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"time": "20241020221653",
|
"time": "20241022012520",
|
||||||
"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": [
|
||||||
@@ -4584,6 +4584,24 @@
|
|||||||
"description": "关闭计算机~|~用于关闭计算机",
|
"description": "关闭计算机~|~用于关闭计算机",
|
||||||
"tags": []
|
"tags": []
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "Switch roles",
|
||||||
|
"type": "directory",
|
||||||
|
"hash": "5e7a09e72e055956c2e2ffa370e9efba747c65e9",
|
||||||
|
"version": "1.0",
|
||||||
|
"author": "LL",
|
||||||
|
"description": "切换角色~|~用于切换角色",
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Switch teams",
|
||||||
|
"type": "directory",
|
||||||
|
"hash": "3542e15dc96914ac9ef6f7ef9b304fc1795d9138",
|
||||||
|
"version": "1.0",
|
||||||
|
"author": "LL",
|
||||||
|
"description": "切换队伍~|~按顺序切换至队伍",
|
||||||
|
"tags": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Wait 10s",
|
"name": "Wait 10s",
|
||||||
"type": "directory",
|
"type": "directory",
|
||||||
|
|||||||
8
repo/js/Switch roles/main.js
Normal file
8
repo/js/Switch roles/main.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
(async function () {
|
||||||
|
setGameMetrics(3840, 2160, 2);
|
||||||
|
|
||||||
|
keyPress(settings.n);
|
||||||
|
await sleep(1000);
|
||||||
|
|
||||||
|
log.info("已切换至角色"+ settings.n);
|
||||||
|
})();
|
||||||
13
repo/js/Switch roles/manifest.json
Normal file
13
repo/js/Switch roles/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"
|
||||||
|
}
|
||||||
14
repo/js/Switch roles/settings.json
Normal file
14
repo/js/Switch roles/settings.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "n",
|
||||||
|
"type": "select",
|
||||||
|
"label": "角色序号",
|
||||||
|
"options": [
|
||||||
|
"1",
|
||||||
|
"2",
|
||||||
|
"3",
|
||||||
|
"4",
|
||||||
|
"5"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
10
repo/js/Switch teams/assets/Team.json
Normal file
10
repo/js/Switch teams/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}}
|
||||||
29
repo/js/Switch teams/main.js
Normal file
29
repo/js/Switch teams/main.js
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
(async function () {
|
||||||
|
setGameMetrics(3840, 2160, 2);
|
||||||
|
keyPress("L");
|
||||||
|
await sleep(4500);
|
||||||
|
click(100, 2050);
|
||||||
|
await sleep(800);
|
||||||
|
|
||||||
|
for(let i = 0; i < 3; 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/Switch teams/manifest.json
Normal file
13
repo/js/Switch teams/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/Switch teams/settings.json
Normal file
7
repo/js/Switch teams/settings.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "n",
|
||||||
|
"type": "input-text",
|
||||||
|
"label": "队伍序号"
|
||||||
|
}
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user