地图追踪:香辛果新增30个 (#631)

* 完善归档路径

* 地图追踪:香辛果新增30个
This commit is contained in:
起个名字好难的喵
2025-04-22 23:24:07 +08:00
committed by GitHub
parent a2277ae6ad
commit d69f6e5bc6
125 changed files with 714 additions and 0 deletions

View 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}}

View File

@@ -0,0 +1,56 @@
(async function () {
async function SwitchCurrentParty() {
setGameMetrics(3840, 2160, 2);
await genshin.tp(2297.60, -824.45);
await sleep(3000);
await genshin.returnMainUi();
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 +"队");
}
if (!!settings.partyName) {
try {
log.info("正在传送回七天神像切换队伍");
await genshin.tp(2297.60, -824.45);
await sleep(3000);
log.info("正在尝试切换至" + settings.partyName);
await genshin.switchParty(settings.partyName);
} catch {
log.warn("队伍切换失败,可能处于联机模式或其他不可切换状态");
await genshin.returnMainUi();
}
} else {
if (isNaN(settings.n)) {
log.warn("不是戈门你连几号队伍都还没设置你想让BetterGI切换成啥啊赶紧去设置一下。如果不会那就去去看看《BetterGI快速入门》认真学习一下怎么“修改JS脚本自定义设置”吧要是这都学不会的话还是去宛平南路600号看看");
}else if (settings.n <= 0 || settings.n > 15){
log.warn("不是戈门,你...你设置了个啥啊BetterGI这也没法切啊");
}else{
await SwitchCurrentParty();
}
}
})();

View File

@@ -0,0 +1,13 @@
{
"manifest_version": 1,
"name": "返回七天神像切换指定队伍",
"version": "1.0",
"description": "回七天神像(脱战&回血),再按顺序切换指定队伍",
"authors": [
{
"name": "LL&起个名字好难的喵"
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1 @@
有新脚本替代

View File

@@ -0,0 +1,13 @@
[
{
"name": "partyName",
"type": "input-text",
"label": "(二选一)需要切换的队伍名称"
},
{
"name": "n",
"type": "input-text",
"label": "(二选一)需要切换的队伍序号"
}
]

View File

@@ -0,0 +1,28 @@
{
"info": {
"name": "枫丹凯瑟琳",
"type": "collect",
"author": "½",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"x": 4509.96044921875,
"y": 3630.826904296875,
"action": "",
"move_mode": "walk",
"type": "teleport"
},
{
"id": 2,
"x": 4495.000794515572,
"y": 3639.75,
"action": "",
"move_mode": "walk",
"type": "path"
}
]
}

View File

@@ -0,0 +1,60 @@
{
"info": {
"name": "璃月凯瑟琳",
"type": "collect",
"author": "½",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"x": 267.958984375,
"y": -665.10888671875,
"action": "",
"move_mode": "walk",
"type": "teleport"
},
{
"id": 2,
"x": 258.3662109375,
"y": -663.82177734375,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 246.689453125,
"y": -662.83740234375,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 233.8564453125,
"y": -661.95849609375,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 219.0625,
"y": -657.271484375,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 203.84765625,
"y": -659.7158203125,
"type": "path",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -0,0 +1,36 @@
{
"info": {
"name": "稻妻凯瑟琳",
"type": "collect",
"author": "½",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -4402.556640625,
"y": -3053.041015625
},
{
"id": 2,
"x": -4408.984375,
"y": -3068.2470703125,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": -4418.185546875,
"y": -3086.4326171875,
"type": "path",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -0,0 +1,20 @@
{
"info": {
"name": "纳塔凯瑟琳",
"type": "collect",
"author": "½",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"action": "force_tp",
"move_mode": "walk",
"type": "teleport",
"x": 9046.666015625,
"y": -1855.35791015625
}
]
}

View File

@@ -0,0 +1,44 @@
{
"info": {
"name": "蒙德凯瑟琳",
"type": "collect",
"author": "½",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"x": -867.6884765625,
"y": 2281.365966796875,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"id": 2,
"x": -882.1455078125,
"y": 2262.399658203125,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": -893.3056640625,
"y": 2249.19482421875,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": -914.3564453125,
"y": 2233.071044921875,
"type": "path",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -0,0 +1,68 @@
{
"info": {
"name": "须弥凯瑟琳",
"type": "collect",
"author": "½",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"x": 2786.97265625,
"y": -503.10498046875,
"type": "teleport",
"move_mode": "walk",
"action": ""
},
{
"id": 2,
"x": 2787.900390625,
"y": -494.41162109375,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": 2786.150390625,
"y": -486.7470703125,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": 2781.1748046875,
"y": -483.95751953125,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 5,
"x": 2774.4716796875,
"y": -480.65478515625,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 6,
"x": 2771.126953125,
"y": -476.7919921875,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 7,
"x": 2765.76953125,
"y": -476.0498046875,
"type": "path",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -0,0 +1,30 @@
(async function () {
// 所有的代码必须由 async function 包裹
async function AutoPath(locationName) {
log.info(`前往 ${locationName}`);
try {
let filePath = `assets/${locationName}.json`;
await pathingScript.runFile(filePath);
} catch (error) {
log.error(`执行 ${locationName} 路径时发生错误`);
}
await sleep(2000);
if (locationName == "纳塔凯瑟琳") {
keyDown("w");
await sleep(4500);
keyUp("w");
keyDown("d");
await sleep(2000);
keyUp("d");
}
}
let filePath;
if (settings.selectValue === undefined)
filePath = "枫丹凯瑟琳"
else
filePath = settings.selectValue;
log.info("开始执行路径脚本");
await AutoPath(filePath);
})();

View File

@@ -0,0 +1,13 @@
{
"manifest_version": 1,
"name": "自动找凯瑟琳",
"version": "1.2",
"description": "去找凯瑟琳(基于路径追踪)",
"authors": [
{
"name": "½"
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,16 @@
[
{
"name": "selectValue", // 变量名在js内使用 settings.变量名 获取对应的配置值
"type": "select", // 类型
"label": "选项框", // 显示标签
"options": [ //选项
"蒙德凯瑟琳",
"璃月凯瑟琳",
"稻妻凯瑟琳",
"须弥凯瑟琳",
"枫丹凯瑟琳",
"纳塔凯瑟琳"
]
}
]

12
archive/js/Back/main.js Normal file
View File

@@ -0,0 +1,12 @@
(async function () {
for (var i=0;i<3;i++)
{
keyPress("VK_ESCAPE");
await sleep(1000);
}
keyPress("VK_RETURN");
await sleep(500);
keyPress("VK_ESCAPE");
await sleep(500);
log.info("已返回主界面");
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "返回主界面",
"version": "1.0",
"description": "强制返回主界面",
"authors": [
{
"name": "LL"
}
],
"main": "main.js"
}

View File

@@ -0,0 +1,10 @@
(async function () {
setGameMetrics(1920, 1080, 2); // 设置游戏窗口大小和DPI
keyPress("F");
await sleep(1000);
click(1497, 1024);
await sleep(1000);
log.info("已开始钓鱼");
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "开始钓鱼",
"version": "1.0",
"description": "开始钓鱼",
"authors": [
{
"name": "龙弗山权",
}
],
"main": "main.js",
}

View File

@@ -0,0 +1,23 @@
(async function () {
setGameMetrics(1920, 1080, 2);
keyPress("F");
log.info("按下F键");
await sleep(1000);
log.info("等待1秒");
click(960, 540);
log.info("点击坐标(960, 540)(屏幕中心)");
await sleep(1500);
log.info("等待1.5秒");
click(1380, 425);
log.info("点击坐标(1380, 425)(领取「每日委托」奖励)");
await sleep(1000);
log.info("等待1秒");
click(960, 540);
log.info("点击坐标(960, 540)(屏幕中心)");
await sleep(3000);
log.info("等待3秒");
click(960, 960);
log.info("点击坐标(960, 960)(关闭奖励弹出页面)");
log.info("结束");
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "领取每日委托奖励",
"version": "1.3",
"description": "用于领取每日委托奖励",
"authors": [
{
"name": "鹤望兰"
}
],
"main": "main.js"
}

View File

@@ -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("已领取历练点");
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "领取历练点",
"version": "1.0",
"description": "用于领取历练点",
"authors": [
{
"name": "HZYgrandma",
}
],
"main": "main.js",
}

View File

@@ -0,0 +1,14 @@
(async function () {
setGameMetrics(1920, 1080, 2); // 设置游戏窗口大小和DPI
log.info(`退出钓鱼,为下个钓点做准备`);
await keyPress("Escape");
await sleep(1000);
click(1010, 756);
await sleep(1000);
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "结束钓鱼",
"version": "1.0",
"description": "结束钓鱼",
"authors": [
{
"name": "龙弗山权",
}
],
"main": "main.js",
}

View File

@@ -0,0 +1,16 @@
(async function () {
setGameMetrics(1920, 1080, 2); // 设置游戏窗口大小和DPI
keyPress("F");
await sleep(3000);
click(960, 540);
await sleep(1500);
click(1400, 580);
await sleep(1000);
click(160, 1010);
await sleep(1000);
click(1160, 1020);
await sleep(1000);
keyPress("Escape");
log.info("已领取每日委托奖励");
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "重新探索派遣",
"version": "1.1",
"description": "用于重新探索派遣",
"authors": [
{
"name": "鹤望兰",
}
],
"main": "main.js",
}

View File

@@ -0,0 +1,6 @@
(async function () {
// settings 的对象内容来自于 settings.json 文件生成的动态配置页面
log.info('等待{time}秒', settings.t)
timeset=1000*settings.t
await sleep(timeset);
})();

View File

@@ -0,0 +1,13 @@
{
"manifest_version": 1,
"name": "只是等待一下",
"version": "1.0",
"description": "只用于等待,方便在调度器为不同性能的设备配置等待",
"authors": [
{
"name": "HZYgrandma",
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,7 @@
[
{
"name": "t",
"type": "input-text",
"label": "等待时间(单位:秒)"
}
]

View File

@@ -0,0 +1,36 @@
(async function () {
timeset=1000*settings.t
domainName = settings.domainName
switch (domainName) {
case "前W":
keyDown("w")
await sleep(timeset);
keyUp("w")
log.info("前W移动{time}秒", settings.t)
break;
case "后S":
keyDown("s")
await sleep(timeset);
keyUp("s")
log.info("后S移动{time}秒", settings.t)
break;
case "左A":
keyDown("a")
await sleep(timeset);
keyUp("a")
log.info("左A移动{time}秒", settings.t)
break;
case "右D":
keyDown("d")
await sleep(timeset);
keyUp("d")
log.info("右D移动{time}秒", settings.t)
break;
default:
log.info("未检测到设置,你需要到设置里设置移动方向");
break;
}
await sleep(timeset);
})();

View File

@@ -0,0 +1,13 @@
{
"manifest_version": 1,
"name": "只是移动一下",
"version": "1.0",
"description": "用于自定义移动",
"authors": [
{
"name": "½"
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,18 @@
[
{
"name": "domainName",
"type": "select",
"label": "方向",
"options": [
"前W",
"后S",
"左A",
"右D"
]
},
{
"name": "t",
"type": "input-text",
"label": "等待时间(单位:秒)"
}
]

View File

@@ -0,0 +1,5 @@
(async function () {
// settings 的对象内容来自于 settings.json 文件生成的动态配置页面
await genshin.tp(settings.x, settings.y);
await sleep(1000);
})();

View File

@@ -0,0 +1,14 @@
{
"manifest_version": 1,
"name": "只是传送一下",
"version": "1.0",
"description": "BetterGI自带脚本只用于传送。方便在调度器配合键鼠脚本使用",
"authors": [
{
"name": "huiyadanli",
"link": "https://github.com/huiyadanli"
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,12 @@
[
{
"name": "x",
"type": "input-text",
"label": "X"
},
{
"name": "y",
"type": "input-text",
"label": "Y"
}
]

View File

@@ -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("已切换至上一队");
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "切换上一队",
"version": "1.0",
"description": "用于切换到上一队",
"authors": [
{
"name": "HZYgrandma",
}
],
"main": "main.js",
}

109
archive/js/Login/main.js Normal file
View File

@@ -0,0 +1,109 @@
(async function () {
//特殊字符键盘映射集
const map = {
'(': '9',
')': '0',
'`': 'VK_OEM_3',
'!': '1',
'@': '2',
'#': '3',
'$': '4',
'%': '5',
'^': '6',
'&': '7',
'*': '8',
'_': 'VK_SUBTRACT',
'-': 'VK_SUBTRACT',
'+': 'VK_ADD',
'=': 'VK_ADD',
'|': 'VK_SEPARATOR',
'{': 'VK_OEM_4',
'}': 'VK_OEM_6',
'[': 'VK_OEM_4',
']': 'VK_OEM_6',
':': 'VK_OEM_1',
';': 'VK_OEM_1',
'\'': 'VK_OEM_7',
'"': 'VK_OEM_7',
'<': 'VK_OEM_COMMA',
'>': 'VK_OEM_PERIOD',
',': 'VK_OEM_COMMA',
'.': 'VK_OEM_PERIOD',
'?': 'VK_OEM_2',
};
function replaceUsingMap(input) {
return map[input] || input; // 如果找到映射,返回对应的值;否则返回原值
}
setGameMetrics(1920, 1080, 2);
await sleep(3000);
//同意用户协议
click(698, 610);
await sleep(1000);
//点击用户名输入框
click(800, 400);
await sleep(1000);
//输入用户名
log.info("输入用户名");
let username = settings.username;
let usernameList = username.split('');
usernameList.forEach(element => {
charCode = element.charCodeAt(0);
let arr = [40,41,33,64,35,36,37,94,38,42,95,43,124,123,125,58,34,60,62,63];
if(charCode > 64 && charCode < 91 || arr.includes(charCode)==1){
element=replaceUsingMap(element);
keyDown("SHIFT");
keyPress(element);
keyUp("SHIFT");
}else{
element=replaceUsingMap(element);
keyPress(element);
}
});
log.info("用户名={xx}",username)
await sleep(3000);
//点击用户名输入框
click(800, 500);
await sleep(1000);
//输入密码
log.info("输入密码")
let password = settings.password;
let passwordList = password.split('');
passwordList.forEach(element => {
charCode = element.charCodeAt(0);
let arr = [40,41,33,64,35,36,37,94,38,42,95,43,124,123,125,58,34,60,62,63];
if(charCode > 64 && charCode < 91 || arr.includes(charCode)==1){
element=replaceUsingMap(element);
keyDown("SHIFT");
keyPress(element);
keyUp("SHIFT");
}else{
element=replaceUsingMap(element);
keyPress(element);
}
});
log.info("密码={xx}",password);
await sleep(1000);
//登录
keyPress("RETURN");
await sleep(10000);
//进入世界
click(950, 1000);
log.info("进入世界");
await sleep(10000);
//进入世界2
click(950, 1000);
log.info("进入世界2");
await sleep(10000);
//点击领月卡
click(950, 1000);
log.info("点击领月卡");
await sleep(1000);
//点击领月卡2
click(950, 1000);
log.info("点击领月卡2");
await sleep(1000);
//点击领月卡2
click(950, 1000);
log.info("点击领月卡3");
await sleep(1000);
})();

View File

@@ -0,0 +1,13 @@
{
"manifest_version": 1,
"name": "登录游戏",
"version": "1.0",
"description": "输入账号和密码并进入游戏",
"authors": [
{
"name": "愚溪",
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,12 @@
[
{
"name": "username",
"type": "input-text",
"label": "账号"
},
{
"name": "password",
"type": "input-text",
"label": "密码"
}
]

18
archive/js/Logout/main.js Normal file
View File

@@ -0,0 +1,18 @@
(async function () {
setGameMetrics(1920, 1080, 2);
await sleep(1000);
keyPress("ESCAPE")
await sleep(1000);
click(50, 1030);
log.info("退出");
await sleep(1000);
click(1000, 750);
log.info("确认");
await sleep(20000);
click(1800, 1000);
log.info("切换账号");
await sleep(1000);
click(1000, 550);
log.info("确认");
await sleep(4000);
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "退出并重登",
"version": "1.0",
"description": "退出游戏并退出账号",
"authors": [
{
"name": "愚溪",
}
],
"main": "main.js"
}

View File

@@ -0,0 +1,16 @@
(async function () {
setGameMetrics(1920, 1080, 2);
// 传送到枫丹冒险家公会附近传送点
await genshin.tp(4514.18, 3630.4);
keyDown("w");
await sleep(1750);
keyUp("w");
keyDown("a");
await sleep(1330);
keyUp("a");
keyDown("w");
await sleep(1200);
keyUp("w");
log.info("已到达凯瑟琳旁");
})();

View File

@@ -0,0 +1,13 @@
{
"manifest_version": 1,
"name": "传送到凯瑟琳",
"version": "1.1",
"description": "传送到枫丹凯瑟琳旁边,可搭配领取每日奖励或重新派遣",
"authors": [
{
"name": "Lix",
"link": "https://github.com/iclae"
}
],
"main": "main.js"
}

View File

@@ -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("已切换至下一队");
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "切换下一队",
"version": "1.0",
"description": "用于切换到下一队",
"authors": [
{
"name": "HZYgrandma",
}
],
"main": "main.js",
}

View File

@@ -0,0 +1,50 @@
(async function () {
setGameMetrics(1920, 1080, 2);
const stepDuration = 50;
const commonX = 49;
const ZoomInButton = 428;
const ZoomOutButton = 654;
const start = 453;
const end = 628;
async function mouseClickNTimes(x, y,n) {
moveMouseTo(x, y);
await sleep(100);
for (let i =0; i < n; i++) {
leftButtonDown();
await sleep(50);
leftButtonUp();
await sleep(50);
}
await sleep(stepDuration);
}
async function mouseClickAndMove(x1, y1, x2, y2) {
moveMouseTo(x1, y1);
await sleep(50);
leftButtonDown();
await sleep(50);
moveMouseTo(x2, y2);
await sleep(50);
leftButtonUp();
await sleep(stepDuration);
}
async function setMapZoom(n) {
await mouseClickNTimes(commonX, ZoomOutButton, 5);
if (Number.isInteger(n)) {
mouseClickNTimes(commonX, ZoomInButton, 5 - n);
} else {
const targetY = Math.ceil(start + n * 35 - 0.5);
await mouseClickAndMove(commonX, end, commonX, targetY);
}
}
const zoom = Number(settings.zoom);
const n = Math.min(Math.max(zoom, 1),6)- 1;
log.info(`设置大地图缩放为 ${n+1}`);
await keyPress("M");
await sleep(1000);
await setMapZoom(n);
await sleep(1000);
await keyPress("Escape");
await sleep(1000);
})();

View File

@@ -0,0 +1,14 @@
{
"manifest_version": 1,
"name": "设置大地图缩放",
"version": "1.0",
"bgi_version": "0.36.0",
"description": "通过左侧缩放条调整大地图缩放1为最大放大6为最小3.5为中间",
"authors": [
{
"name": "Tim"
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,7 @@
[
{
"name": "zoom",
"type": "input-text",
"label": "缩放范围是1~61表示最大放大3.5表示中间"
}
]

View File

@@ -0,0 +1,8 @@
(async function () {
setGameMetrics(3840, 2160, 2);
keyPress(settings.n);
await sleep(1000);
log.info("已切换至角色"+ settings.n);
})();

View File

@@ -0,0 +1,13 @@
{
"manifest_version": 1,
"name": "切换角色",
"version": "1.0",
"description": "用于切换角色",
"authors": [
{
"name": "LL"
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,14 @@
[
{
"name": "n",
"type": "select",
"label": "角色序号",
"options": [
"1",
"2",
"3",
"4",
"5"
]
}
]

View 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}}

View 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 +"队");
})();

View File

@@ -0,0 +1,13 @@
{
"manifest_version": 1,
"name": "切换队伍",
"version": "1.0",
"description": "按顺序切换至队伍",
"authors": [
{
"name": "LL"
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,7 @@
[
{
"name": "n",
"type": "input-text",
"label": "队伍序号"
}
]

View File

@@ -0,0 +1,5 @@
(async function () {
setGameMetrics(1920, 1080, 2);
await sleep(10000); // 转换时间单位从20ms到秒
log.info("等待了10秒");
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "等待十秒",
"version": "1.0",
"description": "用于等待十秒",
"authors": [
{
"name": "鹤望兰",
}
],
"main": "main.js",
}

View File

@@ -0,0 +1,6 @@
(async function () {
setGameMetrics(1920, 1080, 2); // 设置游戏窗口大小和DPI
keyPress("1");
log.info("已切换1号角色");
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "切换1号角色",
"version": "1.0",
"description": "用于切换1号角色",
"authors": [
{
"name": "风埠",
}
],
"main": "main.js",
}

View File

@@ -0,0 +1,6 @@
(async function () {
setGameMetrics(1920, 1080, 2); // 设置游戏窗口大小和DPI
keyPress("2");
log.info("已切换2号角色");
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "切换2号角色",
"version": "1.0",
"description": "用于切换2号角色",
"authors": [
{
"name": "风埠",
}
],
"main": "main.js",
}

View File

@@ -0,0 +1,6 @@
(async function () {
setGameMetrics(1920, 1080, 2); // 设置游戏窗口大小和DPI
keyPress("3");
log.info("已切换3号角色");
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "切换3号角色",
"version": "1.0",
"description": "用于切换3号角色",
"authors": [
{
"name": "风埠",
}
],
"main": "main.js",
}

View File

@@ -0,0 +1,6 @@
(async function () {
setGameMetrics(1920, 1080, 2); // 设置游戏窗口大小和DPI
keyPress("4");
log.info("已切换4号角色");
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "切换4号角色",
"version": "1.0",
"description": "用于切换4号角色",
"authors": [
{
"name": "风埠",
}
],
"main": "main.js",
}

View File

@@ -0,0 +1,22 @@
{
"macroEvents": [
{"type": 2, "mouseX": 525, "mouseY": 881, "time": 0},
{"type": 2, "mouseX": 525, "mouseY": 781, "time": 50},
{"type": 2, "mouseX": 525, "mouseY": 681, "time": 100},
{"type": 2, "mouseX": 525, "mouseY": 581, "time": 150},
{"type": 2, "mouseX": 525, "mouseY": 481, "time": 200},
{"type": 2, "mouseX": 525, "mouseY": 381, "time": 250},
{"type": 2, "mouseX": 525, "mouseY": 281, "time": 300},
{"type": 2, "mouseX": 525, "mouseY": 211, "time": 350},
{"type": 2, "mouseX": 525, "mouseY": 209, "mouseButton": "Left", "time": 400}
],
"info": {
"name": "",
"description": "",
"x": 0,
"y": 0,
"width": 1920,
"height": 1080,
"recordDpi": 1
}
}

View File

@@ -0,0 +1,22 @@
{
"macroEvents": [
{"type": 2, "mouseX": 1200, "mouseY": 881, "time": 0},
{"type": 2, "mouseX": 1200, "mouseY": 781, "time": 50},
{"type": 2, "mouseX": 1200, "mouseY": 681, "time": 100},
{"type": 2, "mouseX": 1200, "mouseY": 581, "time": 150},
{"type": 2, "mouseX": 1200, "mouseY": 481, "time": 200},
{"type": 2, "mouseX": 1200, "mouseY": 381, "time": 250},
{"type": 2, "mouseX": 1200, "mouseY": 281, "time": 300},
{"type": 2, "mouseX": 1200, "mouseY": 211, "time": 350},
{"type": 2, "mouseX": 1200, "mouseY": 208, "mouseButton": "Left", "time": 400}
],
"info": {
"name": "",
"description": "",
"x": 0,
"y": 0,
"width": 1920,
"height": 1080,
"recordDpi": 1
}
}

View File

@@ -0,0 +1,122 @@
(async function () {
setGameMetrics(1920, 1080, 1);
// 提取字符串中的第一个数字字符
const Character = (parseInt(settings.Character?.match(/\d/)?.[0], 10)) || 4; // 默认值为 4
log.info(`Character${Character}`);
const elements = ["火", "水", "草", "雷", "风", "冰", "岩", "物"];
const Element = settings.Element || "物";
const elementIndex = elements.indexOf(Element);
const Switching = Math.min(99, Math.max(0, Math.floor(Number(settings.Switching) || 0)));
// 确保 pageScrollCount 是 0 到 99 的整数,默认值为 0
const pageScrollCount = Math.min(99, Math.max(0, Math.floor(Number(settings.pageScrollCount) || 0)));
const rightOffset = Math.max(0, Number(settings.rightOffset) || 2) -1; // 第几列,默认值为 2
const downOffset = Math.max(0, Number(settings.downOffset) || 2) -1; // 第几行,默认值为 2
log.info(`rightOffset: ${rightOffset},downOffset: ${downOffset}`);
// 提前计算所有动态坐标
// 武器区左顶处物品左上角坐标(37,138)
// 武器图片大小(125,151)
// 武器间隔(16,16)
// 第一点击区位置:125/2+37=99.5; 151/2+138=213.5
const rightClickX = Math.round(99.5 + rightOffset * 141);
const downClickY = Math.round(213.5 + downOffset * 167);
async function CharacterPath() {
// 日志记录任务开始
log.info("开始寻找");
// 初始化
await genshin.returnMainUi();
// 切换角色
keyPress(String(Character));
await sleep(1000);
// 按下 C 键
keyPress("C");
await sleep(1000);
if (elementIndex !== -1) {
const ElementClickX = Math.round(787 + elementIndex * 57.5); // 计算 X 坐标
log.info(`ElementClickX: ${ElementClickX}`);
// 如果 Element 不是 "物",则触发 moveMouseBy(960, 45)
if (Element !== "物") {
moveMouseTo(960, 45); // 移动到指定坐标
await sleep(100);
leftButtonDown();
log.info("移动鼠标");
const steps = 10; // 分成若干步移动
const stepDistance = 15; // 每步移动的距离
for (let j = 0; j < steps; j++) {
moveMouseBy(stepDistance, 0); // 每次移动 stepDistance 像素
await sleep(10); // 每次移动后延迟10毫秒
}
// 释放鼠标左键
await sleep(700);
leftButtonUp();await sleep(100);
await click(ElementClickX, 130); await sleep(1000); // 点击元素选项
const Switchingsteps = Switching+(4-Number(Character))
for (let i = 0; i < Switchingsteps; i++) {
await click(1840, 540); await sleep(200); // 循环点击切换选项
}
}
} else {
log.error(`无效元素: ${Element}`);
}
await sleep(1000);
// 执行按键和鼠标操作
try {
// 执行一系列鼠标点击操作
await click(125, 225); await sleep(1000); // 点击武器选项
await click(1600, 1005); await sleep(1000); // 点击替换当前武器
await click(500, 1005); await sleep(200);
await click(500, 905); await sleep(200); // 使用等级顺序排列
await moveMouseTo(605, 145); await sleep(200); // 初始化滑条
await leftButtonDown(); await sleep(600);
await leftButtonUp(); await sleep(200);
for (let i = 0; i < pageScrollCount; ++i) {
// 点击固定坐标
moveMouseTo(525, 920);
await sleep(500);
leftButtonDown();
await sleep(100);
// 根据条件选择运行的 JSON 文件
let filePath;
if (pageScrollCount >= 10 && (i + 1) % 10 === 0) {
filePath = `assets/pageScroll2.json`; // 每 10 次运行一次pageScroll2.json多移动一个像素点
} else {
filePath = `assets/pageScroll.json`; // 一般情况下运行 pageScroll.json
}
await keyMouseScript.runFile(filePath); // 平滑移动鼠标
await sleep(600);
leftButtonUp();
await sleep(100);
}
// 点击动态坐标
click(rightClickX, downClickY); // 点击选中物品的坐标
await sleep(1000);
click(1600, 1005); await sleep(1000); // 点击替换
click(1320, 755); await sleep(1000); // 确定替换
click(1845, 45); await sleep(1000); // 退出武器界面
click(1845, 45); await sleep(1000); // 退出角色界面
} catch (error) {
log.error(`执行按键或鼠标操作时发生错误:${error.message}`);
}
}
// 调用函数
await CharacterPath();
})();

View File

@@ -0,0 +1,13 @@
{
"manifest_version": 1,
"name": "选择切换武器的角色 ",
"version": "1.01",
"description": "可自定义 当前配队角色武器默认4号位角色默认四行为一页",
"authors": [
{
"name": "吉吉喵"
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,61 @@
[
{
"name": "Character",
"type": "select",
"label": "出战位号默认4",
"options": [
"1号位",
"2号位",
"3号位",
"4号位"
]
},
{
"name": "pageScrollCount",
"type": "input-text",
"label": "默认:四行为一页\n滑页次数默认0"
},
{
"name": "rightOffset",
"type": "select",
"label": "----------------------\n武器按【等级排序】:\n位于第几列默认1",
"options": [
"1",
"2",
"3",
"4",
]
},
{
"name": "downOffset",
"type": "select",
"label": "位于第几行默认1",
"options": [
"1",
"2",
"3",
"4",
"5"
]
},
{
"name": "Element",
"type": "select",
"label": "=============\n\n需选则出战外的角色时\n----------------------\n元素默认'物'=无)\n选元素缩范围 非必填",
"options": [
"火",
"水",
"草",
"雷",
"风",
"冰",
"岩",
"物",
]
},
{
"name": "Switching",
"type": "input-text",
"label": "----------------------\n切换次数默认0\n填入从出战位号\n向右切换多少次"
}
]

View File

@@ -0,0 +1,9 @@
(async function () {
setGameMetrics(1920, 1080, 2); // 设置游戏窗口大小和DPI
// 向前走5s
keyDown("w");
await sleep(5000);
keyUp("w");
log.info("已进入向前走5s");
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "向前行走5秒搭配进尘歌壶脚本并在入口处放合成台可以自动走到到合成台",
"version": "1.0",
"description": "用于向前走5秒",
"authors": [
{
"name": "风埠",
}
],
"main": "main.js",
}

View File

@@ -0,0 +1,9 @@
(async function () {
setGameMetrics(1920, 1080, 2); // 设置游戏窗口大小和DPI
// 向右走5s
keyDown("D");
await sleep(5000);
keyUp("D");
log.info("已进入向右走5s");
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "向右行走5秒",
"version": "1.0",
"description": "向右行走5秒",
"authors": [
{
"name": "风埠",
}
],
"main": "main.js",
}

View File

@@ -0,0 +1,8 @@
(async function () {
let walkTime = parseInt(settings.walkTime); // 使用 DEFAULT_TEAM
// 向右走walkTime
keyDown("D");
await sleep(walkTime);
keyUp("D");
log.info("已向右走${settings.walkTime}");
})();

View File

@@ -0,0 +1,14 @@
{
"manifest_version": 1,
"name": "向右行走X毫秒",
"version": "1.0",
"description": "向右行走X毫秒",
"description": "可以选择向右行走多少毫秒",
"authors": [
{
"name": "miludelongwang",
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,19 @@
[
{
"name": "walkTime",
"type": "select",
"label": "行走时间ms",
"options": [
"500",
"1000",
"1500",
"2000",
"2500",
"3000",
"3500",
"4000",
"4500",
"5000"
]
}
]

View File

@@ -0,0 +1,9 @@
(async function () {
setGameMetrics(1920, 1080, 2); // 设置游戏窗口大小和DPI
// 向后走5s
keyDown("S");
await sleep(5000);
keyUp("S");
log.info("已进入向后走5s");
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "向后行走5秒",
"version": "1.0",
"description": "向后行走5秒",
"authors": [
{
"name": "风埠",
}
],
"main": "main.js",
}

View File

@@ -0,0 +1,9 @@
(async function () {
setGameMetrics(1920, 1080, 2); // 设置游戏窗口大小和DPI
// 向左走5s
keyDown("A");
await sleep(5000);
keyUp("A");
log.info("已进入向右左走5s");
})();

View File

@@ -0,0 +1,12 @@
{
"manifest_version": 1,
"name": "向左行走5秒",
"version": "1.0",
"description": "向左行走5秒",
"authors": [
{
"name": "风埠",
}
],
"main": "main.js",
}

View File

@@ -0,0 +1 @@
{"macroEvents":[{"type":0,"keyCode":87,"mouseX":0,"mouseY":0,"time":1359},{"type":0,"keyCode":160,"mouseX":0,"mouseY":0,"time":1656},{"type":1,"keyCode":160,"mouseX":0,"mouseY":0,"time":1828},{"type":1,"keyCode":87,"mouseX":0,"mouseY":0,"time":4281},{"type":0,"keyCode":68,"mouseX":0,"mouseY":0,"time":5703},{"type":1,"keyCode":68,"mouseX":0,"mouseY":0,"time":7343},{"type":0,"keyCode":87,"mouseX":0,"mouseY":0,"time":8906},{"type":1,"keyCode":87,"mouseX":0,"mouseY":0,"time":10484},{"type":0,"keyCode":65,"mouseX":0,"mouseY":0,"time":11968},{"type":1,"keyCode":65,"mouseX":0,"mouseY":0,"time":13734},{"type":0,"keyCode":87,"mouseX":0,"mouseY":0,"time":15015},{"type":0,"keyCode":65,"mouseX":0,"mouseY":0,"time":15297},{"type":1,"keyCode":65,"mouseX":0,"mouseY":0,"time":16297},{"type":1,"keyCode":87,"mouseX":0,"mouseY":0,"time":16484},{"type":0,"keyCode":87,"mouseX":0,"mouseY":0,"time":17203},{"type":0,"keyCode":32,"mouseX":0,"mouseY":0,"time":17343},{"type":1,"keyCode":32,"mouseX":0,"mouseY":0,"time":17547},{"type":0,"keyCode":32,"mouseX":0,"mouseY":0,"time":18125},{"type":1,"keyCode":32,"mouseX":0,"mouseY":0,"time":18515},{"type":0,"keyCode":68,"mouseX":0,"mouseY":0,"time":18875},{"type":1,"keyCode":68,"mouseX":0,"mouseY":0,"time":19140},{"type":0,"keyCode":32,"mouseX":0,"mouseY":0,"time":19281},{"type":1,"keyCode":32,"mouseX":0,"mouseY":0,"time":19500},{"type":0,"keyCode":68,"mouseX":0,"mouseY":0,"time":19656},{"type":1,"keyCode":68,"mouseX":0,"mouseY":0,"time":20062},{"type":0,"keyCode":32,"mouseX":0,"mouseY":0,"time":20359},{"type":1,"keyCode":32,"mouseX":0,"mouseY":0,"time":20562},{"type":1,"keyCode":87,"mouseX":0,"mouseY":0,"time":21343},{"type":0,"keyCode":87,"mouseX":0,"mouseY":0,"time":22515},{"type":1,"keyCode":87,"mouseX":0,"mouseY":0,"time":22968},{"type":0,"keyCode":65,"mouseX":0,"mouseY":0,"time":24250},{"type":0,"keyCode":87,"mouseX":0,"mouseY":0,"time":24609},{"type":1,"keyCode":65,"mouseX":0,"mouseY":0,"time":24781},{"type":1,"keyCode":87,"mouseX":0,"mouseY":0,"time":24781}],"info":{"name":"","description":"","x":0,"y":0,"width":2560,"height":1440,"recordDpi":1.5}}

View File

@@ -0,0 +1,48 @@
{
"info": {
"name": "进入璃月群玉阁",
"type": "collect",
"author": "ddaodan",
"version": "1.0",
"description": "需要先传送到群玉阁",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"action": "",
"move_mode": "walk",
"type": "target",
"x": 417.1337890625,
"y": -848.62353515625,
"action_params": ""
},
{
"id": 2,
"x": 426.658203125,
"y": -819.048828125,
"type": "target",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": 438.1064453125,
"y": -819.9150390625,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 4,
"x": 449.244140625,
"y": -834.70458984375,
"type": "path",
"move_mode": "walk",
"action": "combat_script",
"action_params": "wait(0.5),keypress(f)"
}
]
}

View File

@@ -0,0 +1,14 @@
(async function () {
setGameMetrics(2560, 1440, 1.5)
let delay = settings.delay || 5000;
genshin.returnMainUi()
log.warn("请勿操作鼠标和键盘!")
await genshin.tp(449.244140625,-834.70458984375,true)
await pathingScript.runFile("assets/进入璃月群玉阁.json")
await sleep(delay)
log.info("看到这条消息时如果加载还没有完成请修改JS脚本自定义配置延长传送加载时间")
await keyMouseScript.runFile("assets/游逸旅闻-凝光1-璃月群玉阁内.json")
await sleep(1000)
keyPress("VK_F")
})();

View File

@@ -0,0 +1,16 @@
{
"manifest_version": 1,
"name": "游逸旅闻-凝光1-璃月群玉阁",
"version": "1.0",
"bgi_version": "0.42.0",
"description": "",
"authors": [
{
"name": "ddaodan",
"link": "https://github.com/ddaodan"
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,7 @@
[
{
"name": "delay",
"type": "input-text",
"label": "加载时间默认5000毫秒一般情况下不需要调整 单位:毫秒"
}
]

View File

@@ -0,0 +1,93 @@
{
"info": {
"name": "进入蒙德天使的馈赠",
"type": "collect",
"author": "ddaodan",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -867.7060546875,
"y": 2281.38330078125,
"action_params": ""
},
{
"id": 2,
"x": -881.982421875,
"y": 2268.00537109375,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": -890.8173828125,
"y": 2285.644775390625,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 4,
"x": -905.396484375,
"y": 2280.456787109375,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 5,
"x": -910.4736328125,
"y": 2295.726318359375,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 6,
"x": -917.7392578125,
"y": 2298.277099609375,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 7,
"x": -930.84765625,
"y": 2298.2978515625,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 8,
"x": -938.8681640625,
"y": 2307.053955078125,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 9,
"x": -929.921875,
"y": 2312.751220703125,
"type": "target",
"move_mode": "walk",
"action": "combat_script",
"action_params": "wait(0.1),keypress(f)"
}
]
}

View File

@@ -0,0 +1,13 @@
(async function () {
setGameMetrics(2560, 1440, 1.5)
let delay = settings.delay || 5000;
genshin.returnMainUi()
log.warn("请勿操作鼠标和键盘!")
await pathingScript.runFile("assets/进入蒙德天使的馈赠.json")
await sleep(delay)
log.info("看到这条消息时如果加载还没有完成请修改JS脚本自定义配置延长传送加载时间")
await keyMouseScript.runFile("assets/游逸旅闻-罗莎莉亚2-蒙德天使的馈赠内.json")
await sleep(1000)
keyPress("VK_F")
})();

View File

@@ -0,0 +1,16 @@
{
"manifest_version": 1,
"name": "游逸旅闻-罗莎莉亚2-蒙德天使的馈赠",
"version": "1.0",
"bgi_version": "0.42.0",
"description": "",
"authors": [
{
"name": "ddaodan",
"link": "https://github.com/ddaodan"
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,7 @@
[
{
"name": "delay",
"type": "input-text",
"label": "加载时间默认5000毫秒一般情况下不需要调整 单位:毫秒"
}
]

View File

@@ -0,0 +1,48 @@
{
"info": {
"name": "进入蒙德西风骑士团",
"type": "collect",
"author": "ddaodan",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -749.3828125,
"y": 2263.11962890625,
"action_params": ""
},
{
"id": 2,
"x": -781.40234375,
"y": 2273.068603515625,
"type": "path",
"move_mode": "fly",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": -788.40625,
"y": 2248.091552734375,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
"action_params": ""
},
{
"id": 4,
"x": -778.49609375,
"y": 2242.8857421875,
"type": "path",
"move_mode": "walk",
"action": "combat_script",
"action_params": "wait(0.5),keypress(f)"
}
]
}

View File

@@ -0,0 +1,13 @@
(async function () {
setGameMetrics(2560, 1440, 1.5)
let delay = settings.delay || 5000;
genshin.returnMainUi()
log.warn("请勿操作鼠标和键盘!")
await pathingScript.runFile("assets/进入蒙德西风骑士团.json")
await sleep(delay)
log.info("看到这条消息时如果加载还没有完成请修改JS脚本自定义配置延长传送加载时间")
await keyMouseScript.runFile("assets/游逸旅闻-菲谢尔1&3-蒙德西风骑士团内.json")
await sleep(1000)
keyPress("VK_F")
})();

View File

@@ -0,0 +1,16 @@
{
"manifest_version": 1,
"name": "游逸旅闻-菲谢尔1&3-蒙德西风骑士团",
"version": "1.0",
"bgi_version": "0.42.0",
"description": "",
"authors": [
{
"name": "ddaodan",
"link": "https://github.com/ddaodan"
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,7 @@
[
{
"name": "delay",
"type": "input-text",
"label": "加载时间默认5000毫秒一般情况下不需要调整 单位:毫秒"
}
]

View File

@@ -0,0 +1,48 @@
{
"info": {
"name": "进入蒙德西风骑士团",
"type": "collect",
"author": "ddaodan",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -749.3828125,
"y": 2263.11962890625,
"action_params": ""
},
{
"id": 2,
"x": -781.40234375,
"y": 2273.068603515625,
"type": "path",
"move_mode": "fly",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": -788.40625,
"y": 2248.091552734375,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
"action_params": ""
},
{
"id": 4,
"x": -778.49609375,
"y": 2242.8857421875,
"type": "path",
"move_mode": "walk",
"action": "combat_script",
"action_params": "wait(0.5),keypress(f)"
}
]
}

View File

@@ -0,0 +1,13 @@
(async function () {
setGameMetrics(2560, 1440, 1.5)
let delay = settings.delay || 5000;
genshin.returnMainUi()
log.warn("请勿操作鼠标和键盘!")
await pathingScript.runFile("assets/进入蒙德西风骑士团.json")
await sleep(delay)
log.info("看到这条消息时如果加载还没有完成请修改JS脚本自定义配置延长传送加载时间")
await keyMouseScript.runFile("assets/游逸旅闻-菲谢尔2-蒙德西风骑士团内.json")
await sleep(1000)
keyPress("VK_F")
})();

Some files were not shown because too many files have changed in this diff Show More