• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

mostDamageKiller with onDeath

Critico

Sexy
Joined
Mar 25, 2010
Messages
370
Reaction score
179
not work this script

Code:
function onDeath(cid, corpse, killer, mostDamageKiller)
local monstName = "Troll"
if isMonster(cid) and string.lower(getCreatureName(cid)) == string.lower(monstName) then
doBroadcastMessage("Player: "..getPlayerByName(mostDamageKiller[1]))
end
return true
end

can use this parameter in onDeath ?
 
Back
Top