Files
DP-S_Script/示例项目/副本内禁止丢弃物品/副本内禁止丢弃物品.nut
2026-04-16 16:27:53 +08:00

27 lines
908 B
Plaintext

Cb_DropItem_check_error_Enter_Func.Rindro <- function(args){
getroottable()._EmptyHook_Flag_ = true;
args[1] = getroottable()._EmptyCharacInfo_Flag_.C_Object;
return args;
}
Cb_DropItem_check_error_Leave_Func.Rindro <- function(args){
if(getroottable()._EmptyHook_Flag_){
getroottable()._EmptyHook_Flag_ = false;
return 19;
}
}
function _Dps_DgnCannotDropItem_Main_() {
_Jump_DropItem_check_error_();
}
function _Jump_DropItem_check_error_() {
//如果没有创建过这个模拟内存就创建
if(!getroottable().rawin("_EmptyCharacInfo_Flag_")){
getroottable()._EmptyCharacInfo_Flag_ <- Memory.alloc(17);
Memory.reset(getroottable()._EmptyCharacInfo_Flag_,17);
}
//如果没有创建过这个跳转Flag就创建并初始化
if(!getroottable().rawin("_EmptyHook_Flag_")){
getroottable()._EmptyHook_Flag_ <- false;
}
}