Ir para conteúdo

Pescando Com Delay


Visitante xbowaxx

Posts Recomendados

Visitante xbowaxx

AE galera consegui um fishing com delay,isto é, n da pra vc usar home no gg por exemplop e botar pra pescar e puxar 50 pexes num segundo... tem q dar um tempo em cada vez q vc joga a vara na agua... nao eh uma coisa mto UTIL, mas eu q gosto de dexar tudo certinho gosto la vai o script:

Em Actions.xml adicionar:

<action itemid="3421" script="fishing.lua" allowfaruse="1"/>

Em Actions/Scripts/Fishing.lua adicionar:

-- example of fishing script--

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

    -- itemid means that is a creature

    if item2.itemid == 601 and getPlayerDelay(cid) == 0 then

            skill_level = getPlayerSkill(cid,6)

            random_number = math.random(1,(100+skill_level/10))

            doSendMagicEffect(topos,1)

setPlayerDelay(cid,1000)

           

if random_number<=skill_level then

            doPlayerAddItem(cid,3516,1)

      end

        doPlayerAddSkillTry(cid,6,1)

    elseif item2.itemid == 602 and getPlayerDelay(cid) == 0 then

            skill_level = getPlayerSkill(cid,6)

            random_number = math.random(1,(100+skill_level/10))

            doSendMagicEffect(topos,1)

setPlayerDelay(cid,1000)

           

if random_number<=skill_level then

            doPlayerAddItem(cid,3516,1)

      end

        doPlayerAddSkillTry(cid,6,1)

    elseif item2.itemid == 603 and getPlayerDelay(cid) == 0 then

            skill_level = getPlayerSkill(cid,6)

            random_number = math.random(1,(100+skill_level/10))

            doSendMagicEffect(topos,1)

setPlayerDelay(cid,1000)

           

if random_number<=skill_level then

            doPlayerAddItem(cid,3516,1)

      end

        doPlayerAddSkillTry(cid,6,1)

    elseif item2.itemid == 729 and getPlayerDelay(cid) == 0 then

            skill_level = getPlayerSkill(cid,6)

            random_number = math.random(1,(100+skill_level/10))

            doSendMagicEffect(topos,1)

setPlayerDelay(cid,1000)

           

if random_number<=skill_level then

            doPlayerAddItem(cid,3516,1)

      end

        doPlayerAddSkillTry(cid,6,1)

    elseif item2.itemid == 730 and getPlayerDelay(cid) == 0 then

            skill_level = getPlayerSkill(cid,6)

            random_number = math.random(1,(100+skill_level/10))

            doSendMagicEffect(topos,1)

setPlayerDelay(cid,1000)

           

if random_number<=skill_level then

            doPlayerAddItem(cid,3516,1)

      end

        doPlayerAddSkillTry(cid,6,1)

    elseif item2.itemid == 731 and getPlayerDelay(cid) == 0 then

            skill_level = getPlayerSkill(cid,6)

            random_number = math.random(1,(100+skill_level/10))

setPlayerDelay(cid,1000)

           

doSendMagicEffect(topos,1)

            if random_number<=skill_level then

            doPlayerAddItem(cid,3516,1)

      end

        doPlayerAddSkillTry(cid,6,1)

    elseif item2.itemid == 732 and getPlayerDelay(cid) == 0 then

            skill_level = getPlayerSkill(cid,6)

            random_number = math.random(1,(100+skill_level/10))

            doSendMagicEffect(topos,1)

setPlayerDelay(cid,1000)

           

if random_number<=skill_level then

            doPlayerAddItem(cid,3516,1)

      end

        doPlayerAddSkillTry(cid,6,1)

    elseif item2.itemid == 733 and getPlayerDelay(cid) == 0 then

            skill_level = getPlayerSkill(cid,6)

            random_number = math.random(1,(100+skill_level/10))

            doSendMagicEffect(topos,1)

setPlayerDelay(cid,1000)

           

if random_number<=skill_level then

            doPlayerAddItem(cid,3516,1)

      end

        doPlayerAddSkillTry(cid,6,1)

    elseif item2.itemid == 734 and getPlayerDelay(cid) == 0 then

            skill_level = getPlayerSkill(cid,6)

            random_number = math.random(1,(100+skill_level/10))

            doSendMagicEffect(topos,1)

setPlayerDelay(cid,1000)

           

if random_number<=skill_level then

            doPlayerAddItem(cid,3516,1)

      end

        doPlayerAddSkillTry(cid,6,1)

    elseif item2.itemid == 735 and getPlayerDelay(cid) == 0 then

            skill_level = getPlayerSkill(cid,6)

            random_number = math.random(1,(100+skill_level/10))

            doSendMagicEffect(topos,1)

setPlayerDelay(cid,1000)

           

if random_number<=skill_level then

            doPlayerAddItem(cid,3516,1)

      end

        doPlayerAddSkillTry(cid,6,1)

    elseif item2.itemid == 736 and getPlayerDelay(cid) == 0 then

            skill_level = getPlayerSkill(cid,6)

            random_number = math.random(1,(100+skill_level/10))

            doSendMagicEffect(topos,1)

setPlayerDelay(cid,1000)

           

if random_number<=skill_level then

            doPlayerAddItem(cid,3516,1)

      end

        doPlayerAddSkillTry(cid,6,1)

    elseif item2.itemid == 737 and getPlayerDelay(cid) == 0 then

            skill_level = getPlayerSkill(cid,6)

            random_number = math.random(1,(100+skill_level/10))

            doSendMagicEffect(topos,1)

setPlayerDelay(cid,1000)

           

if random_number<=skill_level then

            doPlayerAddItem(cid,3516,1)

      end

        doPlayerAddSkillTry(cid,6,1)

    elseif item2.itemid == 738 and getPlayerDelay(cid) == 0 then

            skill_level = getPlayerSkill(cid,6)

            random_number = math.random(1,(100+skill_level/10))

            doSendMagicEffect(topos,1)

setPlayerDelay(cid,1000)

           

if random_number<=skill_level then

            doPlayerAddItem(cid,3516,1)

      end

        doPlayerAddSkillTry(cid,6,1)

    elseif item2.itemid == 739 and getPlayerDelay(cid) == 0 then

            skill_level = getPlayerSkill(cid,6)

            random_number = math.random(1,(100+skill_level/10))

            doSendMagicEffect(topos,1)

setPlayerDelay(cid,1000)

           

if random_number<=skill_level then

            doPlayerAddItem(cid,3516,1)

      end

        doPlayerAddSkillTry(cid,6,1)

      elseif item2.itemid == 740 and getPlayerDelay(cid) == 0 then

            skill_level = getPlayerSkill(cid,6)

            random_number = math.random(1,(100+skill_level/10))

            doSendMagicEffect(topos,1)

setPlayerDelay(cid,1000)

           

if random_number<=skill_level then

            doPlayerAddItem(cid,3516,1)

      end

        doPlayerAddSkillTry(cid,6,1) 

else

return 0

end

return 1

end

----

simples e fuuncional =]

creditos: sorrisotdr

Link para o comentário
Compartilhar em outros sites

  • 4 months later...
×
×
  • Criar Novo...