bug corrigido
obrigado por reportar sky hunter
agr ele só pesca onde no rl vai naum +em todas os tiles
eu vi o post q tinha um fishing 7.5 + continha um erro
por isso mudei os tiles para 7.6 e agora só gasta worms qdo vc pega um peixe.
crie ou modifique seu fishing.lua
Fuction edited by ta4efunction onUse(cid, item, frompos, item2, topos)
skill = getPlayerSkill(cid,6)
random_number = math.random(1,(100+skill/2))
if item2.itemid == 4608 or item2.itemid == 4609 or item2.itemid == 4610 or item2.itemid == 4611 or item2.itemid == 4612 or item2.itemid == 4613 or item2.itemid == 4614 or item2.itemid == 4615 or item2.itemid == 4615 or item2.itemid == 735 or item2.itemid == 4616 or item2.itemid == 4617 or item2.itemid == 4618 or item2.itemid == 4619 or item2.itemid == 4620 then
doSendMagicEffect(topos,1)
doPlayerAddSkillTry(cid,6,1)
if random_number <= skill then
doPlayerAddItem(cid,2667,1)
if doPlayerRemoveItem(cid,3976,1) == 1 then
end
else
doSendMagicEffect(topos,1)
end
else
doPlayerSendCancel(cid,"Sorry, not possible.")
return 1
end
return 1
end
e adicione no actions.xml ou se vc modificou o nome deixe assim msm.
<action itemid="2580" script="fishing.lua" allowfaruse="1"/>
é isso
obs: serve para 7.6 em diante
8 vistos e nenhum coment pô