local config = {
broadCast = FALSE, -- Red broadcast = TRUE/FALSE
monsters = {"Demon", "Rat", "Dragon"},
}
function onKill(cid, target)
if isMonster(target) == TRUE and isPlayer(cid) == TRUE then
if isInArray(string.lower(config.monsters), getCreatureName(target)) == TRUE then
if config.broadCast == TRUE then
doBroadcastMessage(getPlayerName(cid).." killed a "..getCreatureName(target))
else
doPlayerSendTextMessage(cid, 22, "You killed a "..getCreatureName(target))
end
end
end
return TRUE
end