Ir para conteúdo
Entre para seguir isso  
kasser

[N:Fácil] Rede de pescaria v.1.0

Recommended Posts

BLucas    0
BLucas

rox , mas é mais util pra server low rate.

flw

Compartilhar este post


Link para o post
Compartilhar em outros sites
Vampoxy    0
Vampoxy

Bom rox msm, mas irei complementar a partir do seu scrip oq fiz, pra ficar mais real.

Vc agora pode pescar salmon, camarão, pexe e big fish:

ta aqui:

 

function onUse(cid, item, frompos, item2, topos)

tempo=4

if item2.itemid == 0 then

return 0

end

random= math.random(1,5)

chance = math.random(1,30)

 

if getPlayerLevel(cid) >= 8 then

if item.itemid == 3977 or item.itemid == 3978 or item.itemid == 3979 or item.itemid == 3980 then

if exhaust(cid, 9000, tempo) == 1 then

if chance == 1 then

doPlayerAddItem(cid,2667,random)

doSendMagicEffect(topos,13)

 

elseif chance == 2 then

doPlayerAddItem(cid,2667,random)

doSendMagicEffect(topos,13)

 

elseif chance == 3 then

doPlayerAddItem(cid,2667,random)

doSendMagicEffect(topos,13)

 

elseif chance == 4 then

doSendMagicEffect(topos,3)

 

elseif chance == 5 then

doSendMagicEffect(topos,3)

 

elseif chance == 6 then

doSendMagicEffect(topos,3)

 

elseif chance == 7 then

doSendMagicEffect(topos,3)

 

elseif chance == 8 then

doSendMagicEffect(topos,3)

 

elseif chance == 9 then

doSendMagicEffect(topos,3)

 

elseif chance == 10 then

doSendMagicEffect(topos,3)

 

elseif chance == 11 then

doSendMagicEffect(topos,3)

 

elseif chance == 12 then

doSendMagicEffect(topos,3)

 

elseif chance == 13 then

doSendMagicEffect(topos,3)

 

elseif chance == 14 then

doSendMagicEffect(topos,3)

 

elseif chance == 15 then

doSendMagicEffect(topos,3)

 

elseif chance == 16 then

doSendMagicEffect(topos,3)

 

elseif chance == 17 then

doSendMagicEffect(topos,3)

 

elseif chance == 18 then

doPlayerAddItem(cid,2669,random)

doSendMagicEffect(topos,13)

 

elseif chance == 19 then

doPlayerAddItem(cid,2670,random)

doSendMagicEffect(topos,13)

 

elseif chance == 20 then

doPlayerAddItem(cid,2670,random)

doSendMagicEffect(topos,13)

 

elseif chance == 21 then

doPlayerAddItem(cid,2668,random)

doSendMagicEffect(topos,13)

 

elseif chance == 22 then

doPlayerAddItem(cid,2668,random)

doSendMagicEffect(topos,13)

 

elseif chance == 23 then

doSendMagicEffect(topos,3)

 

elseif chance == 24 then

doSendMagicEffect(topos,3)

 

elseif chance == 25 then

doSendMagicEffect(topos,3)

 

elseif chance == 26 then

doSendMagicEffect(topos,3)

 

elseif chance == 27 then

doSendMagicEffect(topos,3)

 

elseif chance == 28 then

doSendMagicEffect(topos,3)

 

elseif chance == 29 then

doSendMagicEffect(topos,3)

 

elseif chance == 30 then

doSendMagicEffect(topos,3)

 

end

else

doSendAnimatedText(topos,'Paciencia!!!',100)

end

end

end

return 1

end

 

flws! abraço

Compartilhar este post


Link para o post
Compartilhar em outros sites
Lorde Do Fogo    0
Lorde Do Fogo

Gostei finalmente alguem deu alguma utilidade para elas (Y).

Compartilhar este post


Link para o post
Compartilhar em outros sites
Drop    0
Drop

muito bom o tutorial, mas prefiro ainda usar o NCP de comida ^^

Compartilhar este post


Link para o post
Compartilhar em outros sites
yago_nobre    0
yago_nobre

vou testar se presta eu posto aki

Compartilhar este post


Link para o post
Compartilhar em outros sites
Roson    0
Roson

Gostei muito.

você também podia colocar um adendo ai.

colocando pra ele mudar a chance de pescar dependendo do skills de pesca.

ficaria mais ou menus assim.

 

function onUse(cid, item, frompos, item2, topos)

tempo=4

if item2.itemid == 0 then

return 0

end

random= math.random(1,5)

chance = math.random(1,200) <--- 100 cada skill de fishing = 1% de chance, 200 cada skill de fishing = 0,5% de chance

 

if getPlayerLevel(cid) >= 8 then

if item.itemid == 3977 or item.itemid == 3978 or item.itemid == 3979 or item.itemid == 3980 then

if exhaust(cid, 9000, tempo) == 1 then

if chance <= getPlayerSkill(uid,--skillsfishing--) then <-- quando o skill for maior com o maximo da variavel chance toda vez que o player usar ele pegara um peixe.

doPlayerAddItem(cid,2667,random)

doSendMagicEffect(topos,13)

else

doSendMagicEffect(topos,13)

end

else

doSendAnimatedText(topos,'Paciencia!!!',100)

end

end

end

return 1

end

Compartilhar este post


Link para o post
Compartilhar em outros sites

Faça login para comentar

Você vai ser capaz de deixar um comentário após fazer o login



Entrar Agora
Entre para seguir isso  

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×