Vai la ne creaturescripts/scripts.
function onKill(cid, target, lastHit) local item = 2122 -- O item local chance = 120 --- Chance local quant = 100 --- O maximo do item que ele poderá ganhar if math.random(100) < chance and isMonster(target) then doPlayerAddItem(cid, item, math.random(1, quant)) end return true end
Coloca a tag em creaturescripts.xml
<event type="kill" name="item" event="script" value="item.lua"/>
Registra o evento:
registerCreatureEvent(cid, "item")







info
Grupo: Campones
Registrado: 20/01/08
Posts: 56
Reputação: 0
Char no Tibia: SKyDevILFiRe
Gente, gostaria de 1 script que eu possa colocar a chance de vir um item de qualquer bicho...
Exemplo : Quero que uma boots of haste tenha 0.5% de chance de drop de qualquer bicho...
Obrigado, na espera