--杀死角色(人物或英雄)时回调
function on_KillPlayer(Actor, TagActor)
local actorname = Actor:getCharName()
local TagActorName = TagActor:getCharName()
local RaceId = Actor:getRace()--种族ID
local RaceId2 = TagActor:getRace()--种族ID
if RaceId == 0 and RaceId2 == 66 then
print("["..actorname.."]击败了["..TagActorName.."]--[杀死角色(人物或英雄)时回调]")
end
end