--死亡物品掉落回调(返回值决定是否可以爆出物品)
--actor:死亡对像 killActor:击杀者对像 item:物品对像
function on_DieDropItem(actor, killActor, item)
local actorname = actor:getCharName()
local itemName = item:getName()--名称
local killname = killActor:getCharName()
killActor:sendCenterMsg(0,250,"玩家["..killname.."]杀死["..actorname.."]死亡爆出物品["..itemName.."]",1, 10, 1)
print(killname.."杀死["..actorname.."]死亡爆出物品["..itemName.."]--[死亡物品掉落回调]")
return true
end
|