This commit is contained in:
Traveler07
2024-12-05 12:40:10 +08:00
75 changed files with 7582 additions and 542 deletions

View File

@@ -254,29 +254,35 @@
"move_mode": "walk"
},
{
"x": -3134.7275390625,
"y": -3566.712890625,
"x": -3134.486328125,
"y": -3566.083984375,
"type": "path",
"move_mode": "fly"
},
{
"x": -3136.1005859375,
"y": -3568.3203125,
"x": -3133.8037109375,
"y": -3571.03125,
"type": "path",
"move_mode": "walk"
},
{
"x": -3134.8310546875,
"y": -3571.3720703125,
"type": "path",
"move_mode": "walk"
},
{
"x": -3138.798828125,
"y": -3570.107421875,
"x": -3138.2890625,
"y": -3570.9365234375,
"type": "target",
"move_mode": "walk",
"action": "",
"#": "13"
},
{
"x": -3139.0625,
"y": -3571.1171875,
"x": -3138.3134765625,
"y": -3570.9609375,
"type": "target",
"move_mode": "walk",
"action": "",

View File

@@ -301,87 +301,76 @@
"action": "",
"#": "19"
},
{
"x": -3144.9853515625,
"y": -3708.4521484375,
"x": -3145.0146484375,
"y": -3706.4208984375,
"type": "target",
"move_mode": "walk"
},
{
"x": -3146.5185546875,
"y": -3713.2802734375,
"type": "path",
"move_mode": "walk"
},
{
"x": -3148.638671875,
"y": -3716.90234375,
"type": "path",
"move_mode": "walk"
"move_mode": "fly"
},
{
"x": -3153.908203125,
"y": -3718.08203125,
"x": -3156.5849609375,
"y": -3886.06640625,
"type": "teleport",
"move_mode": "walk"
},
{
"x": -3139.6357421875,
"y": -3873.5673828125,
"type": "path",
"move_mode": "run"
},
{
"x": -3118.478515625,
"y": -3801.2685546875,
"type": "path",
"move_mode": "run"
},
{
"x": -3128.7255859375,
"y": -3755.45703125,
"type": "path",
"move_mode": "walk"
},
{
"x": -3160.7529296875,
"y": -3717.9111328125,
"type": "target",
"move_mode": "walk"
},
{
"x": -3160.779296875,
"y": -3720.1904296875,
"type": "target",
"move_mode": "walk"
},
{
"x": -3161.1572265625,
"y": -3721.9765625,
"x": -3156.3916015625,
"y": -3754.88671875,
"type": "path",
"move_mode": "fly"
},
{
"x": -3154.974609375,
"y": -3736.6025390625,
"x": -3124.9794921875,
"y": -3742.8154296875,
"type": "path",
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": -3119.84375,
"y": -3751.44921875,
"type": "path",
"move_mode": "fly"
},
{
"x": -3147.8583984375,
"y": -3741.576171875,
"x": -3133.15234375,
"y": -3739.20703125,
"type": "path",
"move_mode": "walk"
"move_mode": "fly",
"action": "stop_flying"
},
{
"x": -3142.1376953125,
"y": -3741.7470703125,
"type": "path",
"move_mode": "walk"
},
{
"x": -3134.73828125,
"y": -3736.9609375,
"type": "path",
"move_mode": "walk"
},
{
"x": -3135.3974609375,
"y": -3734.583984375,
"x": -3134.6318359375,
"y": -3735.2392578125,
"type": "target",
"move_mode": "walk",
"action": "",
"#": "20"
},
{
"x": -3134.900390625,
"y": -3734.37890625,
"x": -3134.6318359375,
"y": -3735.2392578125,
"type": "target",
"move_mode": "walk",
"action": "",

View File

@@ -89,8 +89,8 @@
"move_mode": "run"
},
{
"x": 642.0517578125,
"y": 941.64453125,
"x": 642.1728515625,
"y": 941.576171875,
"type": "target",
"move_mode": "walk",
"action": "",
@@ -104,21 +104,6 @@
"action": "",
"No.": "2"
},
{
"x": 641.3134765625,
"y": 941.08837890625,
"type": "target",
"move_mode": "walk",
"action": "",
"No.": "2"
},
{
"x": 643.544921875,
"y": 941.38330078125,
"type": "path",
"move_mode": "walk"
},
{
"x": 625.1875,
@@ -141,8 +126,6 @@
"No.": "3"
},
{
"x": 579.1728515625,
"y": 915.19921875,
@@ -248,48 +231,34 @@
"move_mode": "walk"
},
{
"x": 648.986328125,
"y": 830.923828125,
"type": "target",
"move_mode": "walk",
"action": "",
"No.": "5 6"
},
{
"x": 649.0009765625,
"y": 831.3779296875,
"type": "target",
"move_mode": "walk",
"action": "",
"No.": "5 6"
},
{
"x": 649.83984375,
"y": 831.625,
"type": "target",
"move_mode": "walk",
"action": "",
"No.": "5"
},
{
"x": 649.708984375,
"y": 831.6279296875,
"type": "target",
"move_mode": "walk",
"action": "",
"No.": "5"
},
{
"x": 649.0048828125,
"y": 831.23583984375,
"type": "target",
"move_mode": "walk",
"action": "",
"No.": "6"
},
{
"x": 646.3505859375,
"y": 833.35546875,
"type": "target",
"move_mode": "walk"
},
{
"x": 645.8408203125,
"y": 832.71533203125,
"x": 645.453125,
"y": 835.6357421875,
"type": "target",
"move_mode": "walk",
"action": "",
"No.": "7"
},
{
"x": 646.037109375,
"y": 832.7724609375,
"x": 645.7451171875,
"y": 836.59033203125,
"type": "target",
"move_mode": "walk",
"action": "",
@@ -297,16 +266,16 @@
},
{
"x": 645.37109375,
"y": 833.572265625,
"x": 645.79296875,
"y": 832.70556640625,
"type": "target",
"move_mode": "walk",
"action": "",
"No.": "8"
},
{
"x": 645.076171875,
"y": 834.3232421875,
"x": 645.79296875,
"y": 832.70556640625,
"type": "target",
"move_mode": "walk",
"action": "",
@@ -314,61 +283,29 @@
},
{
"x": 645.8359375,
"y": 835.81396484375,
"x": 645.3515625,
"y": 834.46533203125,
"type": "target",
"move_mode": "walk",
"action": "",
"No.": "9"
},
{
"x": 645.671875,
"y": 835.916015625,
"x": 645.1220703125,
"y": 833.75927734375,
"type": "target",
"move_mode": "walk",
"action": "",
"No.": "9"
},
{
"x": 646.037109375,
"y": 832.7724609375,
"type": "path",
"move_mode": "walk"
},
{
"x": 646.2255859375,
"y": 836.51025390625,
"type": "path",
"move_mode": "walk"
},
{
"x": 646.80859375,
"y": 837.4140625,
"type": "path",
"move_mode": "walk"
},
{
"x": 646.8876953125,
"y": 834.0068359375,
"type": "path",
"move_mode": "walk"
},
{
"x": 648.2548828125,
"y": 829.93701171875,
"x": 644.1279296875,
"y": 834.39501953125,
"type": "target",
"move_mode": "walk"
},
{
"x": 645.55859375,
"y": 830.66357421875,
"type": "path",
"move_mode": "walk"
"move_mode": "fly"
}
]
}

View File

@@ -97,6 +97,12 @@
"type": "target",
"move_mode": "walk"
},
{
"x": 9756.541015625,
"y": -626.3955078125,
"type": "path",
"move_mode": "walk"
},
{
"x": 9726.82421875,

View File

@@ -357,6 +357,7 @@
"action": "",
"#": "9"
},
{
"x": -3738.0673828125,
"y": -4439.9228515625,
@@ -364,9 +365,6 @@
"move_mode": "walk"
},
{
"x": -3740.6142578125,
"y": -4435.5537109375,
@@ -385,18 +383,28 @@
"type": "path",
"move_mode": "walk"
},
{
"x": -3759.4287109375,
"y": -4433.74609375,
"x": -3750.2587890625,
"y": -4429.8232421875,
"type": "path",
"move_mode": "walk"
},
{
"x": -3767.8017578125,
"y": -4437.771484375,
"x": -3766.1845703125,
"y": -4434.904296875,
"type": "path",
"move_mode": "walk"
},
{
"x": -3772.146484375,
"y": -4439.849609375,
"type": "target",
"move_mode": "walk",
"action": "",
"#": "10"
},
{
"x": -3772.146484375,
"y": -4439.849609375,

View File

@@ -19,47 +19,48 @@
"action": "stop_flying"
},
{
"x": 3951.25634765625,
"y": 4835.40869140625,
"x": 3950.2333984375,
"y": 4837.30517578125,
"type": "path",
"move_mode": "walk"
},
{
"x": 3948.80908203125,
"y": 4844.0986328125,
"x": 3947.6455078125,
"y": 4844.3544921875,
"type": "path",
"move_mode": "walk"
},
{
"x": 3945.87353515625,
"y": 4850.1220703125,
"x": 3944.673828125,
"y": 4851.689453125,
"type": "path",
"move_mode": "walk"
},
{
"x": 3942.392578125,
"y": 4861.06591796875,
"x": 3943.515625,
"y": 4855.76171875,
"type": "path",
"move_mode": "walk"
},
{
"x": 3950.94970703125,
"y": 4864.2421875,
"x": 3941.748046875,
"y": 4860.615234375,
"type": "path",
"move_mode": "walk"
},
{
"x": 3952.46728515625,
"y": 4862.3974609375,
"x": 3950.771484375,
"y": 4865.1259765625,
"type": "path",
"move_mode": "walk"
},
{
"x": 3953.22021484375,
"y": 4857.1064453125,
"x": 3952.0966796875,
"y": 4862.296875,
"type": "path",
"move_mode": "walk"
},
{
"x": 3953.05126953125,
"y": 4853.205078125,
@@ -68,9 +69,16 @@
"action": "",
"#": 1
},
{
"x": 3953.2607421875,
"y": 4857.310546875,
"x": 3953.16015625,
"y": 4857.77587890625,
"type": "path",
"move_mode": "walk"
},
{
"x": 3949.775390625,
"y": 4868.416015625,
"type": "path",
"move_mode": "walk"
},

View File

@@ -76,31 +76,40 @@
"action": "",
"#": "2"
},
{
"x": 4688.0302734375,
"y": 4989.86865234375,
"type": "path",
"move_mode": "walk"
},
{
"x": 4712.2392578125,
"y": 4928.29638671875,
"x": 4705.22705078125,
"y": 4928.8642578125,
"type": "path",
"move_mode": "run"
},
{
"x": 4705.22705078125,
"y": 4928.8642578125,
"type": "path",
"move_mode": "walk"
},
{
"x": 4717.4814453125,
"y": 4929.82568359375,
"type": "path",
"move_mode": "run"
"move_mode": "walk"
},
{
"x": 4720.08154296875,
"y": 4930.87353515625,
"type": "path",
"move_mode": "fly"
},
{
"x": 4723.99169921875,
"y": 4932.6865234375,

View File

@@ -30,27 +30,25 @@
"move_mode": "run"
},
{
"x": -3712.8046875,
"y": -4748.9580078125,
"x": -3711.8173828125,
"y": -4749.169921875,
"type": "target",
"move_mode": "run",
"action": ""
},
{
"x": -3712.994140625,
"y": -4748.5810546875,
"x": -3710.8828125,
"y": -4747.0546875,
"type": "target",
"move_mode": "walk",
"action": ""
},
{
"x": -3711.8955078125,
"y": -4747.560546875,
"type": "target",
"move_mode": "walk",
"action": ""
"x": -3712.4990234375,
"y": -4746.32421875,
"type": "path",
"move_mode": "walk"
}
]
}

View File

@@ -11,6 +11,12 @@
"type": "teleport",
"move_mode": "walk"
},
{
"x": -3220.759765625,
"y": -6183.2890625,
"type": "path",
"move_mode": "run"
},
{
"x": -3219.5185546875,
"y": -6216.2353515625,
@@ -37,37 +43,32 @@
},
{
"x": -3260.615234375,
"y": -6212.7294921875,
"x": -3260.61328125,
"y": -6212.1015625,
"type": "path",
"move_mode": "run"
},
{
"x": -3267.4814453125,
"y": -6217.068359375,
"type": "path",
"move_mode": "walk"
"x": -3271.361328125,
"y": -6215.748046875,
"type": "target",
"move_mode": "run",
"action": "",
"#": "3"
},
{
"x": -3270.759765625,
"y": -6215.4892578125,
"type": "target",
"move_mode": "run",
"action": "",
"#": "3"
},
{
"x": -3270.759765625,
"y": -6215.4892578125,
"type": "target",
"move_mode": "run",
"action": "",
"#": "3"
},
{
"x": -3270.759765625,
"y": -6215.4892578125,
"type": "target",
"move_mode": "run",
"action": "",
"#": "3"
},
{
"x": -3269.556640625,
"y": -6212.7734375,
"x": -3270.3818359375,
"y": -6217.875,
"type": "path",
"move_mode": "walk"
}

View File

@@ -1,5 +1,5 @@
(async function () {
setGameMetrics(1920, 1080, 1);
const folderA = 'assets/狗粮A线@Yang-z/';
const folderB = 'assets/狗粮B线@Yang-z/';
const folderE = 'assets/狗粮额外@Yang-z/';
@@ -71,20 +71,27 @@
]; // 17个其中纳塔第2个似乎是一次性的
let path = ''; // 路线
function determinePath() {
try {
path = settings.path;
} catch (error) {
log.error(error.toString());
}
// 读取用户设置JS脚本直接运行已不会抛出异常但默认值还不支持[bgi0.37.1]
let path = settings.path != undefined ? settings.path : '';
let swapPath = settings.swapPath != undefined && settings.swapPath != '否' ? true : false;
let extra = settings.extra != undefined && settings.extra != '是' ? false : true;
let autoSalvage = settings.autoSalvage != undefined && settings.autoSalvage != '是' ? false : true;
let autoSalvage4 = settings.autoSalvage4 != undefined && settings.autoSalvage4 != '否' ? true : false;
let autoSalvageSpan = settings.autoSalvageSpan != undefined && ~~settings.autoSalvageSpan > 0 ? ~~settings.autoSalvageSpan : 10;
log.debug(`path: ${path}; swapPath: ${swapPath}; extra: ${extra}; autoSalvage: ${autoSalvage}; autoSalvage4: ${autoSalvage4}; autoSalvageSpan: ${autoSalvageSpan};`);
// await sleep(30000);
// 路线
function determinePath() {
if (path != 'A' && path != 'B') {
const benchmark = new Date("2024-11-20T04:00:00");
const now = new Date();
const delta = now - benchmark;
const days = delta / (1000 * 60 * 60 * 24);
path = days % 2 < 1 ? 'A' : 'B';
if (swapPath) path = path == 'A' ? 'B' : 'A';
}
}
@@ -107,15 +114,17 @@
// 分解圣遗物
async function salvage() {
if (!autoSalvage) return;
keyPress("B"); await sleep(2000);
click(670, 40); await sleep(1000); // 圣遗物
click(660, 1010); await sleep(1000); // 分解
click(300, 1020); await sleep(1000); // 快速选择
click(200, 150); await sleep(500); // 1
click(200, 140); await sleep(500); // 1
click(200, 220); await sleep(500); // 2
click(200, 300); await sleep(500); // 3
// click(200, 380); await sleep(3000); // 4
if (autoSalvage4) click(200, 380); await sleep(500); // 4
click(340, 1000); await sleep(1000); // 确认选择
click(1720, 1015); await sleep(1500); // 分解
@@ -146,13 +155,14 @@
dispatcher.addTimer(new RealtimeTimer("AutoPick", { "forceInteraction": forceInteraction }));
for (let i = 0; i < files.length; i++) {
if (i % 10 == 0) await salvage();
if (i % autoSalvageSpan == 0) await salvage();
const filePath = folder + files[i];
await runFile(filePath);
}
}
// main
setGameMetrics(1920, 1080, 1);
determinePath();
// A or B
@@ -162,11 +172,13 @@
else await batch(folderB, pathingB);
// Extra
await init(false);
log.info(`开始执行额外线路。`);
await batch(folderE, pathingE, true); // 强制交互
if (extra) {
await init(false);
log.info(`开始执行额外线路。`);
await batch(folderE, pathingE, true); // 强制交互
}
log.info(`今日狗粮拾取任务完成。拾取路线:${path}+E`);
log.info(`今日狗粮拾取任务完成。拾取路线:${path}${extra ? '+E' : ''}`);
await sleep(3000);
})();

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "狗粮ABE路线自动拾取分解",
"version": "1.5.2",
"version": "1.6.1",
"bgi_version": "0.37.1",
"description": "圣遗物狗粮AB路线自动轮换及额外点位拾取途中自动分解。更新纳塔5.2优质点位。",
"authors": [

View File

@@ -1,40 +1,55 @@
[
{
"name": "path",
"type": "select",
"label": "路线",
"label": "路线(默认:自动)",
"options": [
"A",
"B",
"自动"
]
},
// {
// "name": "swapPath",
// "type": "checkbox",
// "label": "自动选择路线时交换AB路线"
// },
{
"name": "swapPath",
"type": "select",
"label": "自动选择路线时交换AB路线(默认:否)",
"options": [
"是",
"否"
]
},
// {
// "name": "Extra",
// "type": "checkbox",
// "label": "拾取额外点位"
// },
{
"name": "extra",
"type": "select",
"label": "拾取额外点位(默认:是)",
"options": [
"是",
"否"
]
},
// {
// "name": "autoSalvage",
// "type": "checkbox",
// "label": "自动分解"
// },
// {
// "name": "autoSalvage4",
// "type": "checkbox",
// "label": "自动分解包括4星圣遗物"
// },
// {
// "name": "autoSalvageSpan",
// "type": "input-text",
// "label": "自动分解在多少路径后执行一次"
// }
{
"name": "autoSalvage",
"type": "select",
"label": "自动分解(默认:是)",
"options": [
"是",
"否"
]
},
{
"name": "autoSalvage4",
"type": "select",
"label": "自动分解包括4星圣遗物默认",
"options": [
"是",
"否"
]
},
{
"name": "autoSalvageSpan",
"type": "input-text",
"label": "自动分解在多少路径后执行一次默认10"
}
]

View File

@@ -266,16 +266,34 @@
let domainInfo = domainList.find(function (domain) {
return domain.name === domainName;
});
await genshin.tp(domainInfo.position[2], domainInfo.position[0]);
await sleep(1000);
while(true){
try{
await genshin.tp(domainInfo.position[2], domainInfo.position[0]);
await sleep(1000);
// 向前走
keyDown("w");
await sleep(2500);
keyUp("w");
// 向前走
keyDown("w");
await sleep(2500);
keyUp("w");
await sleep(500);
await sleep(500);
// 执行自动秘境
await dispatcher.runTask(new SoloTask("AutoDomain"));
// 执行自动秘境
await dispatcher.runTask(new SoloTask("AutoDomain"));
await sleep(500);
break;
}catch (ex)
{
if (ex.message.includes("检测到复苏界面"))
{
log.info("复活后,继续执行自动秘境。");
continue;
}
else
{
// 如果不包含 "检测到复苏界面",则继续抛出异常
throw ex;
}
}
}
})();

View File

@@ -1,11 +1,11 @@
{
"manifest_version": 1,
"name": "传送并自动秘境",
"version": "1.2",
"description": "BetterGI自带脚本用于传送后并执行自动秘境",
"version": "1.3",
"description": "BetterGI自带脚本用于传送后并执行自动秘境。秘境中角色死亡复活后继续回去战斗。",
"authors": [
{
"name": "huiyadanli",
"name": "huiyadanli&iris",
"link": "https://github.com/huiyadanli"
}
],

View File

@@ -82,6 +82,7 @@
const startTime = Date.now();
dispatcher.addTimer(new RealtimeTimer("AutoPick"));
setGameMetrics(1920, 1080, 1); // 设置游戏窗口大小和DPI
let exitdelay = Number(settings.exitdelay);
let loadingdelay = Number(settings.loadingdelay);
const { exitDelay: validatedExitDelay, loadingDelay: validatedLoadingDelay } = validateAndSetDefaults(exitdelay, loadingdelay);

15
repo/js/ExitGame/main.js Normal file
View File

@@ -0,0 +1,15 @@
(async function () {
// settings 的对象内容来自于 settings.json 文件生成的动态配置页面
//前置系统状态:大世界正常主界面
setGameMetrics(3840,2160,2)
keyPress("VK_ESCAPE");//打开派蒙菜单
await sleep(1000);
click(90,2000);//点击左下角退出按钮
await sleep(1000);
click(2100,1500);//点击确定
await sleep(10000);//渲染开门界面的时间
click(200,1950);//点击登录界面左下角退出按钮
await sleep(1000);
click(2200,1100);//点击确定
await sleep(1000);
})();

View File

@@ -0,0 +1,13 @@
{
"manifest_version": 1,
"name": "完全退出游戏",
"version": "1.0",
"description": "配合其他脚本使用。当其他任务完成之后,调用此脚本完成游戏退出(指结束游戏进程)",
"authors": [
{
"name": "Because",
"link": "https://github.com/Because66666"
}
],
"main": "main.js"
}

View File

@@ -0,0 +1,38 @@
(async function () {
setGameMetrics(2560, 1440, 1.5); // 设置游戏窗口大小和DPI
log.info("循环开始执行确保1号位芙宁娜建议使用双水队提升伤害")
log.info("正在附身纳塔龙")
keyPress("T");//附身纳塔龙
await sleep(2000);
log.info("附身纳塔龙完成")
for (let i = 0; i < settings.cycle_times; ++i) {
log.info("正在执行第"+(i+1)+"次");
keyDown("Q");//脱身纳塔龙
await sleep(1200);
keyUp("Q");
await sleep(100);
leftButtonClick();//下落攻击快速落地
await sleep(500);
keyPress("1");//切换芙芙
await sleep(1000);
keyPress("E");//释放芙芙元素战技
await sleep(800);
keyPress("2");//芙芙切后台触发剧团
await sleep(500);
keyPress("T");//附身纳塔龙
await sleep(28500);
log.info("第"+(i+1)+"次执行完成")
}
})();

View File

@@ -0,0 +1,15 @@
{
"manifest_version": 1,
"name": "芙芙挂机暗杀流",
"version": "1.0",
"bgi_version": "0.37.2",
"description": "用于芙宁娜海鲜挂机暗杀地方传奇",
"authors": [
{
"name": "起个名字好难",
"link": "https://mualani.fun"
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,7 @@
[
{
"name": "cycle_times",
"type": "input-text",
"label": "循环次数"
}
]

View File

@@ -0,0 +1,13 @@
芙芙挂机暗杀流说明
目前已知适用科西霍和海浪中的莎孚,需加入调度器中使用
1、队伍1号位芙宁娜234号随意推荐双水队伍可以吃药增伤
2、按照B站一些逃课视频到达指定位置附身一只水龙或草龙到石块上
3、确保指定位置周围没有其他可以直接附身的龙魂以免误操作
4、可以在附身状态下开启也可以在角色状态下开启循环开启前均会先附身
5、0命芙芙世界等级8的情况下科西霍循环6-10次、海浪中的莎孚循环14-18次时间充裕的情况下可以按最低循环次数多尝试避免误杀没拿到成就。