vai em data/creaturescripts/scripts copie um arquivo e renomeie para broadcast.lua e cole isso.
function onKill(cid, corpse, deathList)
if isPlayer(deathList[1]) then
return true,doBroadcastMessage(""..getCreatureName(cid).. "[" ..getPlayerLevel(cid) .. "] Matou Facil o Player: " ..getCreatureName(deathList[1]) .. "[" .. getPlayerLevel(deathList[1]) .. "]")
end
return doBroadcastMessage(""..getCreatureName(cid).."[" .. getPlayerLevel(cid) .. "] Matou Facil o Monstro " .. getCreatureName(deathList[1]) .. ".")
end
adcione isso no login.lua.
registerCreatureEvent(cid, "deathBroadcast")
agora adcione essa tag no creaturescripts.xml.
<event type="kill" name="deathBroadcast" event="script" value="broadcast.lua"/>








info
Grupo: Artesão
Registrado: 01/11/11
Posts: 124
Reputação: +3
Char no Tibia: Subhe
Olá, boa noite
queria um script que mandase uma mensagem pro server todo
dizendo quem matou tal player e quem morreu pra tal player
Ex: João matou José
desde já agradeço ><
Valendo 2 REP+