2021-10-02 20:01:37 {0927} [string "E:\MirServer无限刀0927\Mir200\LuaScripts\System\BindEvent.lua"]:1374: attempt to call a nil value (method 'itemName')
stack traceback:
[string "E:\MirServer无限刀0927\Mir200\LuaScripts\System\BindEvent.lua"]:1374: in function 'DropItemToBag'
--怪死亡爆物品时,启用直接进玩家包前回调(返回值决定是否物品直接进包裹)
--Actor:死亡对像 killActor:击杀者对像 item:物品对像
function DropItemToBag(Actor, killActor, item)
local RaceId = killActor:getRace()--种族ID
local ActorName = Actor:getCharName() --死亡名字
local itemName = item:itemName()--名称
local killname = killActor:getCharName() --杀人者
local ActRaceId = Actor:getRace()
print("["..ActorName.."]爆出物品["..itemName.."]--[物品爆出提示触发]")
return false
end