--物品掉落地上时触发,返回Expand值,用于自定义值传送给客户端
function on_ItemDropShowType(Item)
local name = Item:getName()
end
就写这3行都会报错
{0609} [string "D:\MirServer\Mir200\LuaScripts\System\BindE..."]:512: attempt to call method 'getName' (a nil value)
stack traceback:
[string "D:\MirServer\Mir200\LuaScripts\System\BindE..."]:512: in function <[string "D:\MirServer\Mir200\LuaScripts\System\BindE..."]:511>