That’s a very clever monster name.
![]()
function onDeath(player, corpse, killer, mostDamage, unjustified, mostDamage_unjustified)
local playerName = deathList[1]
if getCreatureName(cid) == 'Mutated Squirrel' then
broadcastMessage("The player "..getCreatureName(playerName).." killed ".. getCreatureName(cid) ..". Congratulations.")
end
return true
end
Replace that monster name with yours.not sure about cid thoCode:function onDeath(player, corpse, killer, mostDamage, unjustified, mostDamage_unjustified) local playerName = deathList[1] if getCreatureName(cid) == 'Mutated Squirrel' then broadcastMessage("The player "..getCreatureName(playerName).." killed ".. getCreatureName(cid) ..". Congratulations.") end return true end
Yea but cid doesnt exist in onDeathReplace that monster name with yours.
Damn nice, didnt knew thatIf it is registered in the monster, it should send the message although any statements.
Remove all lines except broadcastMessage.
Already set the message to something as you said "dick is dead" etc without these functions inside.