function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (isPlayer(cid)) and (getPlayerLevel(cid) <= 50) then
doCreatureSetDropLoot(cid, false)
end
return true
end
info
Grupo: Conde
Registrado: 18/01/12
Posts: 988
Reputação: +327
Gênero: Masculino
Char no Tibia: Xerife Woody

function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (isPlayer(cid)) and (getPlayerLevel(cid) <= 50) then
doCreatureSetDropLoot(cid, false)
end
return true
end
<= 50) then
Creio que faltou apenas o =, o Duuh postou acima o script, testa ae xD
Ainda ta caindo o loot.
info
Grupo: Conde
Registrado: 18/01/12
Posts: 988
Reputação: +327
Gênero: Masculino
Char no Tibia: Xerife Woody

function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (getPlayerLevel(cid) <= 50) then
return doCreatureSetDropLoot(cid, false)
end
return true
end
Peço que mude o nome do tópico .
Coloque Um nome mais objetivo, dando um Resumo do Pedido ou Dúvida.
info
Grupo: Artesão
Registrado: 13/07/11
Posts: 104
Reputação: +4
Char no Tibia: Willliam Serravalle

aki eu tenho uma aol pra nao dropa nada pra funfar eu tiver que mecher em vocations.xml e tirar ''lessloss'' nao sei se vai ser em seu caso mas tente pra ver!
info
Grupo: Artesão
Registrado: 22/02/14
Posts: 101
Reputação: +21

function onPrepareDeath(cid, deathList)
if isPlayer(cid) and getPlayerLevel(cid) <= 50 then
doCreatureSetDropLoot(cid, false)
end
return true
end
Editado Março 29 por lucasromero
info
Grupo: Conde
Registrado: 18/01/12
Posts: 988
Reputação: +327
Gênero: Masculino
Char no Tibia: Xerife Woody

function onPrepareDeath(cid, deathList) if isPlayer(cid) and getPlayerLevel(cid) <= 50 then doCreatureSetDropLoot(cid, false) end return true end
mesma coisa que postei acima . :
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if (isPlayer(cid)) and (getPlayerLevel(cid) <= 50) then doCreatureSetDropLoot(cid, false) end return true end
@topic , testa o segundo que postei .
info
Grupo: Conde
Registrado: 18/01/12
Posts: 988
Reputação: +327
Gênero: Masculino
Char no Tibia: Xerife Woody

Movido para resolvidos .
info
Grupo: Artesão
Registrado: 19/09/12
Posts: 114
Reputação: +19
Boa noite estou tentando fazer uma script pra que se for level menor que 50 não perca o loot. Porém mesmo eu botando "true" ou "false" alí na função ele ta dropando, alguém sabe se é pra por outra coisa ou se tem outra função?
Botei a TAG no creature.xml e no login.
function onDeath(cid, corpse, killer) if isPlayer(cid) and getPlayerLevel(cid) < 50 then doCreatureSetDropLoot(cid, true) end return true end