From 04e4a70cdd22936394f09ddb469c54bbe79e8aee Mon Sep 17 00:00:00 2001 From: this-Fish Date: Sun, 17 Aug 2025 00:13:38 +0800 Subject: [PATCH] =?UTF-8?q?JS=20:=20Auto=20Theft=20NPC=20&=20=E5=8E=9F?= =?UTF-8?q?=E9=A3=9F=202.0.3=20(#1611)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正納塔商人 因為運行前會设置不同的游戏分辨率,導致orc點擊坐標錯誤問題 保証最后一版了 --- repo/js/Auto Theft NPC & 原食/main.js | 6 ++++-- repo/js/Auto Theft NPC & 原食/manifest.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/repo/js/Auto Theft NPC & 原食/main.js b/repo/js/Auto Theft NPC & 原食/main.js index bdf815b55..a2a0fbf11 100644 --- a/repo/js/Auto Theft NPC & 原食/main.js +++ b/repo/js/Auto Theft NPC & 原食/main.js @@ -411,7 +411,11 @@ async function spikChat(npcName) { count = 5 await sleep(1000); if (npcName == "布纳马") { + await sleep(1000); + // 设置游戏分辨率和DPI缩放 + setGameMetrics(1920, 1080, 1); + // 交互 for (let i = 0; i < 3; i++) { keyPress("VK_F"); @@ -435,8 +439,6 @@ async function spikChat(npcName) { await sleep(1500); keyPress("VK_F"); await sleep(1500); - keyPress("VK_F"); - await sleep(1500); } else { for (let i = 0; i < count; i++) { keyPress("VK_F"); diff --git a/repo/js/Auto Theft NPC & 原食/manifest.json b/repo/js/Auto Theft NPC & 原食/manifest.json index 59842bab5..9ed436292 100644 --- a/repo/js/Auto Theft NPC & 原食/manifest.json +++ b/repo/js/Auto Theft NPC & 原食/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "购买NPC食材-图像识别", - "version": "2.0.2", + "version": "2.0.3", "description": "原食脚本: 基于图像识别的购买NPC商品, 可选择性购买商品, 按地区顺序购买, 节省大量时间.", "authors": [ {