Ir para conteúdo
  • Cadastre-se

[Pedido] Delay Fishing Kpdo


Posts Recomendados

Bom dia, estou usando o script de Fishing do Kpdo, porém gostaria de adicionar um Delay, para o jogador não conseguir usar a vara várias vezes, evitando assim, vários pokémons sumonados.. Gostaria algo em torno de =  usar 5x em menos de 10 sec -> Delay 5 segundos.. e se continuar usando.. o Delay vá aumentando aos poucos.  Grato

Editado por Bepovi (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
  • Administrador

Coloque o scripts do fishing que provavelmente fica em actions

TibiaKing Team- KingTópicos
www.tibiaking.com

Link para o post
Compartilhar em outros sites


Perdão.. estava postando pelo celular e nao tive como postar.. aí vai:

 

function onUse(cid, item, fromPos, itemEx, toPos)


if getTileInfo(getCreaturePosition(cid)).protection or #getCreatureSummons(cid) >= 1 and getTileInfo(getCreaturePosition(getCreatureSummons(cid)[1])).protection then
return true
end

if getPlayerStorageValue(cid, 63215) >= 1 then
return true
end
if getPlayerStorageValue(cid, 17000) >= 1 then
return true
end
if getPlayerStorageValue(cid, 17001) >= 1 then
return true
end

local d0 = 
{
        [0] = {pokemon = 'Magikarp p'}, 
}

local d20 = 
{
        [0] = {pokemon = 'magikarp p'}, 
        [1] = {pokemon = 'horsea p'}, 
        [2] = {pokemon = 'krabby p'}, 
        [3] = {pokemon = 'poliwag p'}, 
        [4] = {pokemon = 'poliwag p'}, 
 
}

local d40 = 
{
        [0] = {pokemon = 'magikarp p'}, 
        [1] = {pokemon = 'horsea p'}, 
        [2] = {pokemon = 'krabby p'}, 
        [3] = {pokemon = 'poliwag p'}, 
        [4] = {pokemon = 'shellder p'},  
        [5] = {pokemon = 'goldeen p'}, 
        [6] = {pokemon = 'psyduck p'}, 
        [7] = {pokemon = 'staryu p'}, 
        [8] = {pokemon = 'seel p'},
}

local d60 = 
{
        [0] = {pokemon = 'magikarp p'}, 
        [1] = {pokemon = 'horsea p'}, 
        [2] = {pokemon = 'krabby p'}, 
        [3] = {pokemon = 'poliwag p'}, 
        [4] = {pokemon = 'shellder p'}, 
        [5] = {pokemon = 'slowpoke p'}, 
        [6] = {pokemon = 'goldeen p'}, 
        [7] = {pokemon = 'psyduck p'}, 
        [8] = {pokemon = 'staryu p'}, 
        [9] = {pokemon = 'tentacool p'}, 
        [10] = {pokemon = 'poliwhirl p'}, 
        [11] = {pokemon = 'seel p'},
        [12] = {pokemon = 'squirtle p'},
        [13] = {pokemon = 'seaking p'},
}

local d80 = 
{
        [0] = {pokemon = 'magikarp p'}, 
        [1] = {pokemon = 'horsea p'}, 
        [2] = {pokemon = 'krabby p'}, 
        [3] = {pokemon = 'poliwag p'}, 
        [4] = {pokemon = 'shellder p'}, 
        [5] = {pokemon = 'slowpoke p'}, 
        [6] = {pokemon = 'goldeen p'}, 
        [7] = {pokemon = 'psyduck p'}, 
        [8] = {pokemon = 'staryu p'}, 
        [9] = {pokemon = 'tentacool p'}, 
        [10] = {pokemon = 'poliwhirl p'}, 
        [11] = {pokemon = 'seel p'},
        [12] = {pokemon = 'squirtle p'},
        [13] = {pokemon = 'seaking p'},
        [14] = {pokemon = 'starmie p'},
        [15] = {pokemon = 'remoraid p'},
        [16] = {pokemon = 'slowbro p'},
        [17] = {pokemon = 'wartortle p'},
        [18] = {pokemon = 'kingler p'},

}

local d90 = 
{
        [0] = {pokemon = 'magikarp p'}, 
        [1] = {pokemon = 'horsea p'}, 
        [2] = {pokemon = 'krabby p'}, 
        [3] = {pokemon = 'poliwag p'}, 
        [4] = {pokemon = 'shellder p'}, 
        [5] = {pokemon = 'slowpoke p'}, 
        [6] = {pokemon = 'goldeen p'}, 
        [7] = {pokemon = 'psyduck p'}, 
        [8] = {pokemon = 'staryu p'}, 
        [9] = {pokemon = 'tentacool p'}, 
        [10] = {pokemon = 'poliwhirl p'}, 
        [11] = {pokemon = 'seel p'},
        [12] = {pokemon = 'squirtle p'},
        [13] = {pokemon = 'totodile p'},
        [14] = {pokemon = 'seaking p'},
        [15] = {pokemon = 'starmie p'},
        [16] = {pokemon = 'wartortle p'},
        [17] = {pokemon = 'kingler p'},
        [18] = {pokemon = 'seadra p'},
        [19] = {pokemon = 'dewgong p'},
        [20] = {pokemon = 'omanyte p'},

}

local d100 = 
{
        [0] = {pokemon = 'magikarp p'}, 
        [1] = {pokemon = 'horsea p'}, 
        [2] = {pokemon = 'krabby p'}, 
        [3] = {pokemon = 'poliwag p'}, 
        [4] = {pokemon = 'shellder p'}, 
        [5] = {pokemon = 'slowpoke p'}, 
        [6] = {pokemon = 'goldeen p'}, 
        [7] = {pokemon = 'psyduck p'}, 
        [8] = {pokemon = 'staryu p'}, 
        [9] = {pokemon = 'tentacool p'}, 
        [10] = {pokemon = 'poliwhirl p'}, 
        [11] = {pokemon = 'seel p'},
        [12] = {pokemon = 'squirtle p'},
        [13] = {pokemon = 'totodile p'},
        [14] = {pokemon = 'seaking p'},
        [15] = {pokemon = 'starmie p'},
        [16] = {pokemon = 'slowbro p'},
        [17] = {pokemon = 'wartortle p'},
        [18] = {pokemon = 'kingler p'},
        [19] = {pokemon = 'seadra p'},
        [20] = {pokemon = 'cloyster p'},
        [21] = {pokemon = 'poliwrath p'},
        [22] = {pokemon = 'vaporeon p'},
        [23] = {pokemon = 'golduck p'},
        [24] = {pokemon = 'blastoise p'},

}

local d110 = 
{
        [0] = {pokemon = 'magikarp p'}, 
        [1] = {pokemon = 'horsea p'}, 
        [2] = {pokemon = 'krabby p'}, 
        [3] = {pokemon = 'poliwag p'}, 
        [4] = {pokemon = 'shellder p'}, 
        [5] = {pokemon = 'slowpoke p'}, 
        [6] = {pokemon = 'goldeen p'}, 
        [7] = {pokemon = 'psyduck p'}, 
        [8] = {pokemon = 'staryu p'}, 
        [9] = {pokemon = 'tentacool p'}, 
        [10] = {pokemon = 'poliwhirl p'}, 
        [11] = {pokemon = 'seel p'},
        [12] = {pokemon = 'squirtle p'},
        [13] = {pokemon = 'totodile p'},
        [14] = {pokemon = 'seaking p'},
        [15] = {pokemon = 'starmie p'},
        [16] = {pokemon = 'slowbro p'},
        [17] = {pokemon = 'wartortle p'},
        [18] = {pokemon = 'kingler p'},
        [19] = {pokemon = 'seadra p'},
        [20] = {pokemon = 'cloyster p'},
        [21] = {pokemon = 'dewgong p'},
        [22] = {pokemon = 'kabuto p'},
        [23] = {pokemon = 'omanyte p'},
        [24] = {pokemon = 'poliwrath p'},
        [25] = {pokemon = 'vaporeon p'},
        [26] = {pokemon = 'golduck p'},
        [27] = {pokemon = 'tentacruel p'},
        [28] = {pokemon = 'blastoise p'},
        [29] = {pokemon = 'kabutops p'},        
        [30] = {pokemon = 'omastar p'},
        [31] = {pokemon = 'gyarados p'},
    

}

local d130 = 
{
        [0] = {pokemon = 'magikarp p'}, 
        [1] = {pokemon = 'horsea p'}, 
        [2] = {pokemon = 'krabby p'}, 
        [3] = {pokemon = 'poliwag p'}, 
        [4] = {pokemon = 'shellder p'}, 
        [5] = {pokemon = 'slowpoke p'}, 
        [6] = {pokemon = 'goldeen p'}, 
        [7] = {pokemon = 'psyduck p'}, 
        [8] = {pokemon = 'staryu p'}, 
        [9] = {pokemon = 'tentacool p'}, 
        [10] = {pokemon = 'poliwhirl p'}, 
        [11] = {pokemon = 'seel p'},
        [12] = {pokemon = 'squirtle p'},
        [13] = {pokemon = 'totodile p'},
        [14] = {pokemon = 'seaking p'},
        [15] = {pokemon = 'starmie p'},
        [16] = {pokemon = 'slowbro p'},
        [17] = {pokemon = 'wartortle p'},
        [18] = {pokemon = 'kingler p'},
        [19] = {pokemon = 'seadra p'},
        [20] = {pokemon = 'cloyster p'},
        [21] = {pokemon = 'dewgong p'},
        [22] = {pokemon = 'kabuto p'},
        [23] = {pokemon = 'omanyte p'},
        [24] = {pokemon = 'poliwrath p'},
        [25] = {pokemon = 'vaporeon p'},
        [26] = {pokemon = 'golduck p'},
        [27] = {pokemon = 'tentacruel p'},
        [28] = {pokemon = 'blastoise p'},
        [29] = {pokemon = 'kabutops p'},        
        [30] = {pokemon = 'omastar p'},
        [31] = {pokemon = 'gyarados p'},
    

}

local d150 = 
{
        [0] = {pokemon = 'magikarp p'}, 
        [1] = {pokemon = 'horsea p'}, 
        [2] = {pokemon = 'krabby p'}, 
        [3] = {pokemon = 'poliwag p'}, 
        [4] = {pokemon = 'shellder p'}, 
        [5] = {pokemon = 'slowpoke p'}, 
        [6] = {pokemon = 'goldeen p'}, 
        [7] = {pokemon = 'psyduck p'}, 
        [8] = {pokemon = 'staryu p'}, 
        [9] = {pokemon = 'tentacool p'}, 
        [10] = {pokemon = 'poliwhirl p'}, 
        [11] = {pokemon = 'seel p'},
        [12] = {pokemon = 'squirtle p'},
        [13] = {pokemon = 'totodile p'},
        [14] = {pokemon = 'seaking p'},
        [15] = {pokemon = 'starmie p'},
        [16] = {pokemon = 'slowbro p'},
        [17] = {pokemon = 'wartortle p'},
        [18] = {pokemon = 'kingler p'},
        [19] = {pokemon = 'seadra p'},
        [20] = {pokemon = 'cloyster p'},
        [21] = {pokemon = 'dewgong p'},
        [22] = {pokemon = 'kabuto p'},
        [23] = {pokemon = 'omanyte p'},
        [24] = {pokemon = 'poliwrath p'},
        [25] = {pokemon = 'vaporeon p'},
        [26] = {pokemon = 'golduck p'},
        [27] = {pokemon = 'tentacruel p'},
        [28] = {pokemon = 'blastoise p'},
        [29] = {pokemon = 'kabutops p'},        
        [30] = {pokemon = 'omastar p'},
        [31] = {pokemon = 'gyarados p'},
    

}
        local config = {
        waters = {4614, 4615, 4616, 4617, 4618, 4619, 4608, 4609, 4610, 4611, 4612, 4613, 7236, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825},
}

local skill = getPlayerSkillLevel(cid, 6)
local playerpos = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y+1, z=getCreaturePosition(cid).z}

        if(isInArray(config.waters, itemEx.itemid)) then
                doSendMagicEffect(toPos, CONST_ME_LOSEENERGY)
                 if skill >= 150 then
                                local random = math.random(0, 70)
                                if random <= 70 then

                                      local criature =   doCreateMonster(d130[random].pokemon, playerpos,false)
if not isCreature(criature) then
return true
end
doPlayerAddSkillTry(cid, 6, 7)
       doCreatureSetStorage(criature, 17, 5) 
if getPlayerStorageValue(criature, 200) == -1 then
doCreatureSetStorage(criature, 200, "!, ")
end     
doCreatureSetStorage(criature, 200, getPlayerStorageValue(criature, 200)..""..getCreatureName(cid)..", ")   
if #getCreatureSummons(cid) >= 1 then
doMonsterSetTarget(criature, getCreatureSummons(cid)[1])
else
doMonsterSetTarget(criature, cid)  
end
                                        return true
                                end
                        else           
  if skill >= 130 then
                                local random = math.random(0, 65)
                                if random <= 65 then

                                      local criature =   doCreateMonster(d130[random].pokemon, playerpos,false)
if not isCreature(criature) then
return true
end
doPlayerAddSkillTry(cid, 6, 7)
       doCreatureSetStorage(criature, 17, 5) 
if getPlayerStorageValue(criature, 200) == -1 then
doCreatureSetStorage(criature, 200, "!, ")
end     
doCreatureSetStorage(criature, 200, getPlayerStorageValue(criature, 200)..""..getCreatureName(cid)..", ")   
if #getCreatureSummons(cid) >= 1 then
doMonsterSetTarget(criature, getCreatureSummons(cid)[1])
else
doMonsterSetTarget(criature, cid)  
end
                                        return true
                                end
                        else              
if skill >= 110 then
                                local random = math.random(0, 57)
                                if random <= 57 then

                                      local criature =   doCreateMonster(d110[random].pokemon, playerpos,false)
if not isCreature(criature) then
return true
end
doPlayerAddSkillTry(cid, 6, 7)
       doCreatureSetStorage(criature, 17, 5) 
if getPlayerStorageValue(criature, 200) == -1 then
doCreatureSetStorage(criature, 200, "!, ")
end     
doCreatureSetStorage(criature, 200, getPlayerStorageValue(criature, 200)..""..getCreatureName(cid)..", ")   
if #getCreatureSummons(cid) >= 1 then
doMonsterSetTarget(criature, getCreatureSummons(cid)[1])
else
doMonsterSetTarget(criature, cid)  
end
                                        return true
                                end
                        else
                        if skill >= 100 then
                                local random = math.random(0, 37)
                                if random <= 37 then

                                      local criature =   doCreateMonster(d100[random].pokemon, playerpos,false)
if not isCreature(criature) then
return true
end
doPlayerAddSkillTry(cid, 6, 7)
       doCreatureSetStorage(criature, 17, 5) 
if getPlayerStorageValue(criature, 200) == -1 then
doCreatureSetStorage(criature, 200, "!, ")
end     
doCreatureSetStorage(criature, 200, getPlayerStorageValue(criature, 200)..""..getCreatureName(cid)..", ")   
if #getCreatureSummons(cid) >= 1 then
doMonsterSetTarget(criature, getCreatureSummons(cid)[1])
else
doMonsterSetTarget(criature, cid)  
end
                                        return true
                                end
                        else
           if skill >= 90 then
                                local random = math.random(0, 29)
                                if random <= 29 then
            local criature =   doCreateMonster(d90[random].pokemon, playerpos,false)
if not isCreature(criature) then
return true
end
doPlayerAddSkillTry(cid, 6, 7)
       doCreatureSetStorage(criature, 17, 5) 
if getPlayerStorageValue(criature, 200) == -1 then
doCreatureSetStorage(criature, 200, "!, ")
end     
doCreatureSetStorage(criature, 200, getPlayerStorageValue(criature, 200)..""..getCreatureName(cid)..", ")   
if #getCreatureSummons(cid) >= 1 then
doMonsterSetTarget(criature, getCreatureSummons(cid)[1])
else
doMonsterSetTarget(criature, cid)  
end
                                        return true
                                end
                        else
                        if skill >= 80 then
                                local random = math.random(0, 35)
                                if random <= 22 then
                                  local criature =   doCreateMonster(d80[random].pokemon, playerpos,false)
if not isCreature(criature) then
return true
end
doPlayerAddSkillTry(cid, 6, 10)
       doCreatureSetStorage(criature, 17, 5) 
if getPlayerStorageValue(criature, 200) == -1 then
doCreatureSetStorage(criature, 200, "!, ")
end     
doCreatureSetStorage(criature, 200, getPlayerStorageValue(criature, 200)..""..getCreatureName(cid)..", ")   
if #getCreatureSummons(cid) >= 1 then
doMonsterSetTarget(criature, getCreatureSummons(cid)[1])
else
doMonsterSetTarget(criature, cid)  
end
                                        return true
                                end
                        else
                        if skill >= 60 then
                                local random = math.random(0, 22)
                                if random <= 14 then
                              local criature =   doCreateMonster(d60[random].pokemon, playerpos,false)
if not isCreature(criature) then
return true
end
doPlayerAddSkillTry(cid, 6, 15)
  doCreatureSetStorage(criature, 17, 5) 
if getPlayerStorageValue(criature, 200) == -1 then
doCreatureSetStorage(criature, 200, "!, ")
end     
doCreatureSetStorage(criature, 200, getPlayerStorageValue(criature, 200)..""..getCreatureName(cid)..", ")   
if #getCreatureSummons(cid) >= 1 then
doMonsterSetTarget(criature, getCreatureSummons(cid)[1])
else
doMonsterSetTarget(criature, cid)  
end
                                        return true
                                end
                        else
                        if skill >= 40 then
                                local random = math.random(0, 20)
                                if random <= 11 then
                                         local criature =   doCreateMonster(d40[random].pokemon, playerpos,false)
if not isCreature(criature) then
return true
end
doPlayerAddSkillTry(cid, 6, 20)
       doCreatureSetStorage(criature, 17, 5) 
if getPlayerStorageValue(criature, 200) == -1 then
doCreatureSetStorage(criature, 200, "!, ")
end     
doCreatureSetStorage(criature, 200, getPlayerStorageValue(criature, 200)..""..getCreatureName(cid)..", ")   
if #getCreatureSummons(cid) >= 1 then
doMonsterSetTarget(criature, getCreatureSummons(cid)[1])
else
doMonsterSetTarget(criature, cid)  
end
                                        return true
                                end
                        else
                        if skill >= 20 then
                                local random = math.random(0, 14)
                                if random <= 6 then
                                        local criature =   doCreateMonster(d20[random].pokemon, playerpos,false)
if not isCreature(criature) then
return true
end
doPlayerAddSkillTry(cid, 6, 25)
doCreatureSetStorage(criature, 17, 5) 
if getPlayerStorageValue(criature, 200) == -1 then
doCreatureSetStorage(criature, 200, "!, ")
end     
doCreatureSetStorage(criature, 200, getPlayerStorageValue(criature, 200)..""..getCreatureName(cid)..", ")   
if #getCreatureSummons(cid) >= 1 then
doMonsterSetTarget(criature, getCreatureSummons(cid)[1])
else
doMonsterSetTarget(criature, cid)  
end
                                        return true
                                end
                        else
                        if skill >= 0 and skill < 20 then
                                local random = math.random(0, 3)
                                if random <= 0 then

                                     local criature =   doCreateMonster(d0[0].pokemon, playerpos,false)

if not isCreature(criature) then
return true
end
doPlayerAddSkillTry(cid, 6, 30)
       doCreatureSetStorage(criature, 17, 5) 
if getPlayerStorageValue(criature, 200) == -1 then
doCreatureSetStorage(criature, 200, "!, ")
end     
doCreatureSetStorage(criature, 200, getPlayerStorageValue(criature, 200)..""..getCreatureName(cid)..", ")   
if #getCreatureSummons(cid) >= 1 then
doMonsterSetTarget(criature, getCreatureSummons(cid)[1])
else
doMonsterSetTarget(criature, cid)  
end
                        
return true
                                end
                                return true
                                                                end
                                return true
                                 end
                                return true
                                 end
                                return true
                        end
                return true
        end
        return true
end
        return true
end
end
end
end
end
end

[/spoiler]

Editado por p e o p l e (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo