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) {