脚本段===========================================================
function on_DieDropitem(actor, killActor, item)--死亡物品掉落回调
----击杀者执行获取U变量,不知道为什么会报错,已经区别击杀者主体了
if killActor:getRace() == 66 then
playact = killActor:getMaster()
end
if killActor:getRace() == 0 then
playact = killActor
end
local baotaname = {
"宝塔判官",
"宝塔巨魔",
"宝塔神龙",
}
local global_G510 = s.share.getVal_G(510)
local global_G511 = s.share.getVal_G(511)
local stdMode = item:getStdMode()
local U400 = playact:getVal_U(400)--这是6508行的报错
local U401 = playact:getVal_U(401)
local U402 = playact:getVal_U(402)
|