SE
dúvida

[Ajuda] Fácil.

Por Seagull, 28 de mar. de 2014 em Scripts

script
9
1.6k
SeagullS
28 de março de 2014 às 20:50

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
28 de março de 2014 às 20:57


function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)

 

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

doCreatureSetDropLoot(cid, false)

end

 

return true

end

PasteelP
28 de março de 2014 às 21:02


<= 50) then

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

 

SeagullS
28 de março de 2014 às 21:10

Ainda ta caindo o loot.

29 de março de 2014 às 00:24

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.

29 de março de 2014 às 01:09

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!

lucasromeroL
29 de março de 2014 às 01:26


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

29 de março de 2014 às 01:30
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 .

1 mês depois...
19 de abril de 2014 às 19:02

Movido para resolvidos .