Vc da use com a pick nas paredes e pdoe ganhar ou não um iron ore.
ID das paredes: 5631 5632
1º: Crie um arquivo chamado iron.lua em data\actions\scripts.
E bote isso:
---Mineração de Iron Ore by tttt ou Nandonalt---
function onUse(cid,item,frompos,item2,topos)
number = math.random(1,100)
chance = getConfigNumber("iron_chance")
if chance > 20 or chance == 0 then
chance = 20
end
--Mineração--
if item2.itemid == 5631 or item2.itemid == 5632 then
if number <= chance then
doSendMagicEffect(topos,14)
doPlayerAddItem(cid,5880,1)
else
doSendMagicEffect(topos,3)
end
return 1
end
return 0
end
info
Grupo: Campones
Registrado: 15/04/06
Posts: 28
Reputação: 0
Olá pessoas =)
O fórum ta um pouco "desomovimentado"
Então vim movimentar.
Vc da use com a pick nas paredes e pdoe ganhar ou não um iron ore.
ID das paredes: 5631 5632
1º: Crie um arquivo chamado iron.lua em data\actions\scripts.
E bote isso:
---Mineração de Iron Ore by tttt ou Nandonalt--- function onUse(cid,item,frompos,item2,topos) number = math.random(1,100) chance = getConfigNumber("iron_chance") if chance > 20 or chance == 0 then chance = 20 end --Mineração-- if item2.itemid == 5631 or item2.itemid == 5632 then if number <= chance then doSendMagicEffect(topos,14) doPlayerAddItem(cid,5880,1) else doSendMagicEffect(topos,3) end return 1 end return 0 end2º: No actions.xml bote isso:
Créditos: Cokey.
Cya people~
Editado Maio 22 por tttt