添加示例项目

This commit is contained in:
2026-04-16 16:27:53 +08:00
parent 69a2141804
commit 721fb5a992
192 changed files with 10148 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
{
"ProjectName": "副本内禁止丢弃物品",
"ProjectDescribe": "副本内禁止丢弃物品及金币",
"ProjectAuthor": "倾泪寒&南瓜",
"ProjectVersion": 1.0,
"ProjectConfig": "",
"ProjectFiles": [
"副本内禁止丢弃物品.nut"
],
"ProjectRunFunc": "_Dps_DgnCannotDropItem_Main_"
}

View File

@@ -0,0 +1,27 @@
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;
}
}