Hi everyone, can someone help me understand this?
In TFS 0.4, the function onKill(cid, target, lastHit) returned the list of all participants involved in the kill. In TFS 1.x, it no longer does that? Considering it only has the function onKill(creature, target).
In the example script:
If 2, 3, or more players take part in the kill, the message only shows one player. Is it possible to return all players who participated in the kill on broadcast?
Thanks.
In TFS 0.4, the function onKill(cid, target, lastHit) returned the list of all participants involved in the kill. In TFS 1.x, it no longer does that? Considering it only has the function onKill(creature, target).
In the example script:
LUA:
function onKill(creature, target)
if target:isPlayer() and creature:getLevel() > 250 and target:getLevel() > 250 then
Game.broadcastMessage(
"PvP Fight: " .. creature:getName() .. " (Level: " .. creature:getLevel() ..
") Killed " .. target:getName() .. " (Level: " .. target:getLevel() .. ").",
MESSAGE_STATUS_WARNING
)
end
return true
end
If 2, 3, or more players take part in the kill, the message only shows one player. Is it possible to return all players who participated in the kill on broadcast?
Thanks.