From ef2f161d36e2bb07f74a332c893465e31d80267a Mon Sep 17 00:00:00 2001 From: lenheart Date: Fri, 12 Dec 2025 13:05:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=93=E5=B1=95=20Item-=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MyProject/A.nut | 5 +++++ _DPS_/_Core/CallBack/History_Log.nut | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/MyProject/A.nut b/MyProject/A.nut index 816b885..110a371 100644 --- a/MyProject/A.nut +++ b/MyProject/A.nut @@ -272,5 +272,10 @@ Gm_InputFunc_Handle["test"] <- function(SUser, CmdString) { Timer.SetTimeOut(function () { + +Cb_dispatch_sig_Enter_Func["atts"] <- function (args) +{ + print(123123); +} }, 1); diff --git a/_DPS_/_Core/CallBack/History_Log.nut b/_DPS_/_Core/CallBack/History_Log.nut index 06e931e..8ad1932 100644 --- a/_DPS_/_Core/CallBack/History_Log.nut +++ b/_DPS_/_Core/CallBack/History_Log.nut @@ -64,6 +64,13 @@ Cb_History_Log_Func["Item+"] <- function(SUser, Data) { Func(SUser, Data); } } +//失去道具 +if (!("Cb_History_ItemDown_Func" in getroottable())) Cb_History_ItemDown_Func <- {}; +Cb_History_Log_Func["Item-"] <- function(SUser, Data) { + foreach(_Index, Func in Cb_History_ItemDown_Func) { + Func(SUser, Data); + } +} //设置里程 可以当做上线以后得HOOK if (!("Cb_History_MileageSet_Func" in getroottable())) Cb_History_MileageSet_Func <- {}; Cb_History_Log_Func["Mileage Set"] <- function(SUser, Data) {