27 lines
908 B
Plaintext
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;
|
|
}
|
|
} |