[Ajuda] Fácil.

Seagull
em Scripts

Seagull

Groow???
avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 20/09/12Posts: 114

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

DuuhCarvalho

:)
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 19/01/12Posts: 988Gênero: MasculinoChar no Tibia: Xerife Woody


function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)

 

if (isPlayer(cid)) and (getPlayerLevel(cid) <= 50) then

doCreatureSetDropLoot(cid, false)

end

 

return true

end

Pasteel

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 26/03/14Posts: 24


<= 50) then

Creio que faltou apenas o =, o Duuh postou acima o script, testa ae xD

 

Seagull

Groow???
avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 20/09/12Posts: 114

Ainda ta caindo o loot.

DuuhCarvalho

:)
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 19/01/12Posts: 988Gênero: MasculinoChar 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.

williamserravalle

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 13/07/11Posts: 104Char 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!

lucasromero

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 22/02/14Posts: 101


function onPrepareDeath(cid, deathList)

 

if isPlayer(cid) and getPlayerLevel(cid) <= 50 then

doCreatureSetDropLoot(cid, false)

 

end

return true

end

 

DuuhCarvalho

:)
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 19/01/12Posts: 988Gênero: MasculinoChar 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 .

DuuhCarvalho

:)
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 19/01/12Posts: 988Gênero: MasculinoChar no Tibia: Xerife Woody

Movido para resolvidos .