From 77202bfdb7c00169b20d060795abb6bdd56bc241 Mon Sep 17 00:00:00 2001 From: Lenheart <947330670@qq.com> Date: Sat, 20 Dec 2025 22:55:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=99=84=E5=8A=A0=E8=A3=85?= =?UTF-8?q?=E5=A4=87APD=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Base/_ENUM/_ENUM_.nut | 10 +++++++++- Project/ItemTool/ItemInherit/ItemInherit.nut | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Base/_ENUM/_ENUM_.nut b/Base/_ENUM/_ENUM_.nut index a0b4f5f..3c52009 100644 --- a/Base/_ENUM/_ENUM_.nut +++ b/Base/_ENUM/_ENUM_.nut @@ -437,4 +437,12 @@ function sq_SetCharacterAttribute(address, Value) { function sq_SetCharacterEquipAttribute(offest, Slot, Value) { L_sq_SetCharacterAttribute(offest, Slot, Value); -} \ No newline at end of file +} + +//设置装备APD给对象 +function sq_setEquipAppendage(obj, ApdListId, Time) { + local ObjAddress = L_Sq_GetObjectAddress(obj); + local APD = L_Sq_CallFunc(0x9E5130, "int", FFI_MS_CDECL, ["int", "int", "int"], ApdListId, ObjAddress, ObjAddress); + print(APD); + L_Sq_CallFunc(0x4041c0, "int", FFI_THISCALL, ["int", "int", "int"], APD + 44, 0, Time); +} diff --git a/Project/ItemTool/ItemInherit/ItemInherit.nut b/Project/ItemTool/ItemInherit/ItemInherit.nut index 06c88af..0223546 100644 --- a/Project/ItemTool/ItemInherit/ItemInherit.nut +++ b/Project/ItemTool/ItemInherit/ItemInherit.nut @@ -191,7 +191,7 @@ class ItemInheritC extends LenheartNewUI_Windows { function Lenheart_ItemInherit_Fun(obj) { - sq_IsValidActiveStatus(obj, 1); + // sq_IsValidActiveStatus(obj, 1); local RootTab = getroottable(); if (!RootTab.rawin("ItemInherit_Obj")) { RootTab.rawset("ItemInherit_Obj", true);