Pelo oque eu entendi foi isso que você pediu, então faça bom aproveito ![]()
Crie em Creaturescripts/scripts/darkzudeath.lua
function onKill(cid, target, lastHit)
if lastHit and isMonster(target) and getCreatureName(target):lower() == 'darkzu' then
doPlayerBroadcastMessage(cid, "O player" .. getCreatureName(cid) .. ", matou o BOSS Darkzu!")
end
return true
end
Em Login.lua coloque:
registerCreatureEvent(cid, "darkzudeath")
Em Creaturescripts.xml coloque
<event type="kill" name="darkzudeath" script="darkzudeath.lua"/>
Espero ter ajudado.








info
Grupo: Campones
Registrado: 02/12/09
Posts: 31
Reputação: 0
Char no Tibia: Noope
eu to usando um script de quando o monstro morrer, abrir um teleport e queria que aparecesse uma mensagem em branco pra todos jogadores quando ele morresse tambem
'O Darkzu foi morto e o portal irá fechar em 30 segundos.'
Script que eu uso.
local tpId = 1387
local tps = {
["Darkzu"] = {pos = {x=926, y=891, z=7}, toPos = {x=827, y=879, z=7}, time = 30},
}
function removeTp(tp)
local t = getTileItemById(tp.pos, tpId)
if t then
doRemoveItem(t.uid, 1)
doSendMagicEffect(tp.pos, CONST_ME_POFF)
end
end
function onDeath(cid)
local tp = tps[getCreatureName(cid)]
if tp then
doCreateTeleport(tpId, tp.toPos, tp.pos)
doCreatureSay(cid, "O teleport irá sumir em "..tp.time.." segundos.", TALKTYPE_ORANGE_1)
addEvent(removeTp, tp.time*1000, tp)
end
return TRUE
end