Ir para conteúdo

Queria Essa Script


BetinhoSavoia

Posts Recomendados

Data/Creaturescript/Scripts crie um arquivo lua com nome qe qiser e adicione

 

function onDeath(cid, corpse, deathList)

if isPlayer(deathList[1]) then

return true,doBroadcastMessage("[DeathCast] Informs:\n".. getCreatureName(cid) .. "[" .. getPlayerLevel(cid) .. "] was Killed by player: " .. getCreatureName(deathList[1]) .. "[" .. getPlayerLevel(deathList[1]) .. "]",22)

end

return doBroadcastMessage("[DeathCast] Informs:\nThe player ".. getCreatureName(cid) .. "[" .. getPlayerLevel(cid) .. "] was Killed by " .. getCreatureName(deathList[1]) .. ".",22)

end

 

 

Data/Creaturescript/Creaturescript.xml Adicione

 

<event type="death" name="DeathC" event="script" value="deathcast.lua"/>

 

creaturescript/script/login.lua

 

registerCreatureEvent(cid, "DeathC")

 

Testa ae

 

 

Script By: Vodkart

Editado por Pinpao
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...