11
repo.json
11
repo.json
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"time": "20241125212331",
|
||||
"time": "20241125212123",
|
||||
"url": "https://github.com/babalae/bettergi-scripts-list/archive/refs/heads/main.zip",
|
||||
"file": "repo.json",
|
||||
"indexes": [
|
||||
@@ -8538,6 +8538,15 @@
|
||||
"description": "自动伐木~|~前往并自动伐木",
|
||||
"tags": []
|
||||
},
|
||||
{
|
||||
"name": "Autopermission",
|
||||
"type": "directory",
|
||||
"hash": "b12820598212771beec9265ae499102c680a9d16",
|
||||
"version": "1.0",
|
||||
"author": "½",
|
||||
"description": "自动设置权限~|~设置进入世界的权限,默认锁门",
|
||||
"tags": []
|
||||
},
|
||||
{
|
||||
"name": "Back",
|
||||
"type": "directory",
|
||||
|
||||
31
repo/js/Autopermission/main.js
Normal file
31
repo/js/Autopermission/main.js
Normal file
@@ -0,0 +1,31 @@
|
||||
(async function () {
|
||||
|
||||
setGameMetrics(1920, 1080, 1.5)
|
||||
|
||||
log.info("请确保执行脚本时处于主界面");
|
||||
|
||||
keyPress("VK_F2")
|
||||
await sleep(500);
|
||||
click(330,1010) //点击世界权限
|
||||
await sleep(500);
|
||||
let domainName = settings.domainName;
|
||||
|
||||
switch (domainName) {
|
||||
case "直接加入":
|
||||
click(330, 910);
|
||||
log.info("权限设置为【直接加入】");
|
||||
break;
|
||||
case "不允许加入":
|
||||
click(330, 850); // 不允许
|
||||
log.info("权限设置为【不允许加入】");
|
||||
break;
|
||||
case "确认后可加入":
|
||||
click(330, 960); // 确认后
|
||||
log.info("权限设置为【确认后可加入】");
|
||||
break;
|
||||
default:
|
||||
click(330, 850); // 不允许
|
||||
log.info("锁门");
|
||||
break;
|
||||
}
|
||||
})();
|
||||
13
repo/js/Autopermission/manifest.json
Normal file
13
repo/js/Autopermission/manifest.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "自动设置权限",
|
||||
"version": "1.0",
|
||||
"description": "设置进入世界的权限,默认锁门",
|
||||
"authors": [
|
||||
{
|
||||
"name": "½"
|
||||
}
|
||||
],
|
||||
"settings_ui": "settings.json",
|
||||
"main": "main.js"
|
||||
}
|
||||
12
repo/js/Autopermission/settings.json
Normal file
12
repo/js/Autopermission/settings.json
Normal file
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"name": "domainName",
|
||||
"type": "select",
|
||||
"label": "设置权限",
|
||||
"options": [
|
||||
"直接加入",
|
||||
"确认后可加入",
|
||||
"不允许加入"
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user