更新毁梦 一键入仓
This commit is contained in:
parent
c81e671b1e
commit
8c2f8e931d
|
|
@ -438,34 +438,9 @@ function _Dps_JYYJBB2_Main_() {
|
|||
}
|
||||
}
|
||||
|
||||
Cb_DisPatcher_MoveItem_Enter_Func["毁梦定制一件入库"] <- function(args) {
|
||||
local ParamBase = NativePointer(args[2]);
|
||||
if (!ParamBase) return null;
|
||||
|
||||
// 读取 type 参数(ParamBase + 16 位置)
|
||||
local Type = ParamBase.add(16).readU8();
|
||||
|
||||
if (Type == 98) {
|
||||
// 移动到个人仓库
|
||||
local SUser = User(args[1]);
|
||||
if (SUser) {
|
||||
MoveToCargo(SUser, 0);
|
||||
}
|
||||
//执行原函数会判断是否等于0x7FFFFFFF 所以这里写0以后 原函数条件不成立 会return 阻止原函数执行
|
||||
ParamBase.add(4).writeInt(0);
|
||||
} else if (Type == 99) {
|
||||
// 移动到账号仓库
|
||||
local SUser = User(args[1]);
|
||||
if (SUser) {
|
||||
MoveToCargo(SUser, 1);
|
||||
}
|
||||
//执行原函数会判断是否等于0x7FFFFFFF 所以这里写0以后 原函数条件不成立 会return 阻止原函数执行
|
||||
ParamBase.add(4).writeInt(0);
|
||||
}
|
||||
|
||||
// 其他情况继续执行原逻辑
|
||||
return null;
|
||||
}
|
||||
ClientSocketPackFuncMap.rawset(21091001, function(SUser, Jso) {
|
||||
MoveToCargo(SUser, Jso.type);
|
||||
});
|
||||
|
||||
function getYearMonth() {
|
||||
local now = date();
|
||||
|
|
|
|||
Loading…
Reference in New Issue