Lua接口/服务端/SetItemBoxOwner

来自天龙知识库
跳到导航跳到搜索

首页 · 服务端接口 · 生活技能与装备 · 调用约定

设置物品箱的归属对象。

Lua 调用

SetItemBoxOwner(sceneId, ItemBoxID, OwnerID)

参数

序号 参数 / 类型 说明
1 sceneId
number
当前调用所在的场景 ID。
2 ItemBoxID
number
物品箱对象 ID。
3 OwnerID
number
归属对象 ID。

返回值

无返回值。赋值接收时得到 nil;这与返回数字 0 不同。

核对依据:LuaFnTbl_Ability.h 第 2076 行,服务端注册表第 616 行。调用格式与返回数量依据当前实现整理;游戏内效果、边界行为及未注明的业务枚举仍需实测。