Results 1 to 3 of 3

Thread: Ajuda com Actions que as vezes não executam

  1. #1
    iBot User picollo's Avatar
    Join Date
    Jan 2013
    Posts
    66
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    14
    Rep Power
    4

    Ajuda com Actions que as vezes não executam

    Bem pessoal eu andei olhando por ai na internet as Actions e SOMENTE peguei as Actions nada de script feito pelo risco de ser roubado. To com o seguinte problema quando o char vai executar alguma ação de deposit ou de abrir as BP ou transferir potions na cidade algumas vezes ele acaba não realizando, eu também estava com o mesmo problema de ele acabar se perdendo quando ia subir uma escada ou trocar de um nível na Hunt mais já resolvi isso com a action ifislocaton que faz o char checar se esta no local se não ele passa pro próximo Stand funcionando como uma chave se vocês podem assim entender. Mais agora eu nao sei o que fazer como eu faço para que o meu ibot consiga verificar se aquela action foi executar e realizada ou seja se eu coloquei no scrpt pra ele abrir as BPS eu preciso que ele realmente tenha aberto as bps se não ele tem que dar como false e refazer a action alguém tem como me ajudar com esse problema vou anexar uma copia do meu script e postar aqui as Actions que eu uso e se alguém poder me ajudar com a questão do reconect pra porque eu nao entendi como que eu faço pra poder fazer o char se achar na hunt. Aconteceu dinovo enquanto eu escrevia isso ele não abrio as bps mais pelo menos moveu os pots de bp eu sei o que esta acontecendo algumas vezes ele segue a action e outras ele simplesmente fica burro.


    chek_cap

    if cap > 250 then
    gotolabel("Hunt")
    else
    gotolabel("exit")
    end

    ----------------

    chek_vida

    if (itemcount("Health Potion")) < 25 then
    gotolabel("Refill")
    else
    gotolabel("Hunt")
    end

    ---------------

    chek_mana

    if (itemcount("mana potion")) < 50 then
    gotolabel("exit")
    else
    gotolabel("hunt")
    end

    ----------------

    DP

    closewindows()
    wait(500, 1000)
    openitem("backpack", 'back')
    wait(500, 1000)
    resizewindows()
    wait(500, 1000)
    openitem("camouflage backpack", "backpack", true)
    wait(500, 1000)
    reachgrounditem("depot")
    wait(1000,2000)
    openitem("depot")
    wait(700,900)
    openitem(3502, "locker")
    wait(700,900)
    openitem("purple backpack", "depot chest")
    wait(1000)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Leather Harness", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Life Preserver", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Ratana", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spike Shield", "camouflage backpack", "purple backpack", 99)
    wait(250)
    moveitems("Spiky Club", "camouflage backpack", "purple backpack", 99)
    wait(250)

    --reachgrounditem("depot")
    --wait (1000)
    --openitem("depot")
    --wait (1000)
    --openitem(3502, "locker")
    --wait (1000)
    --openitem(2868, "depot chest")
    --wait (1000)
    --moveitems("life preserver", "camouflage backpack")

    --------------------------------------------------------------------------------------------------

    banker

    wait(1000)
    say("hi")
    wait(2000)
    npcsay("deposit all")
    wait(2000)
    npcsay("yes")
    wait(2000)
    npcsay("withdraw")
    wait(2000)
    npcsay("5500")
    wait(2000)
    npcsay("yes")
    wait(1000)

    --------------------------------

    mana_potion

    closewindows()
    wait(500, 1000)
    openitem("backpack", 'back')
    wait(500, 1000)
    resizewindows()
    wait(500, 1000)
    openitem("brocade backpack", "backpack", true)
    wait(500, 1000)
    resizewindows()
    wait(500,900)
    sellflasks()
    wait(500,900)
    opentrade()
    wait(500, 1000)
    if itemcount("mana potion") < 120 then
    buyitemsupto("mana potion", 120)
    end

    -------------------------------

    hp_potion

    closewindows()
    wait(500, 1000)
    openitem("backpack", 'back')
    wait(500, 1000)
    resizewindows()
    wait(500, 1000)
    openitem("brocade backpack", "backpack", true)
    wait(500, 1000)
    resizewindows()
    wait(500,900)
    sellflasks()
    wait(500,900)
    opentrade()
    wait(500, 1000)
    if itemcount("health potion") < 50 then
    buyitemsupto("health potion", 50)
    end

    ------------------------------------------

    deposit_2

    wait(1000)
    say("hi")
    wait(2000)
    npcsay("deposit all")
    wait(2000)
    npcsay("yes")
    wait(2000)

    ----------------------------------------------

    move_hp

    closewindows()
    wait(500, 1000)
    openitem("backpack", 'back')
    wait(500, 1000)
    resizewindows()
    while itemcount("health potion") > 0 do
    closewindows()
    wait(500, 1000)
    openitem("backpack", 'back')
    wait(500, 1000)
    resizewindows()
    wait(500, 1000)
    openitem("brocade backpack", "backpack", true)
    wait(500, 1000)
    resizewindows()
    wait(500,900)
    moveitems("health potion", "backpack", "brocade backpack", 100)
    wait(500,900)
    closewindow("brocade backpack")
    end

    ----------------------------------------------

    move_mana

    closewindows()
    wait(500, 1000)
    openitem("backpack", 'back')
    wait(500, 1000)
    resizewindows()
    while itemcount("mana potion") > 0 do
    closewindows()
    wait(500, 1000)
    openitem("backpack", 'back')
    wait(500, 1000)
    resizewindows()
    wait(500, 1000)
    openitem("brocade backpack", "backpack", true)
    wait(500, 1000)
    resizewindows()
    wait(500,900)
    moveitems("mana potion", "backpack", "brocade backpack", 100)
    wait(500,900)
    closewindow("brocade backpack")
    end

    ---------------------------------------------------

    dworcs 3.xml
    ------------------------------

    miminize

    minimizewindows("equip")


    eu geralmente começo a fazer o script a partir da hunt depois crio os cheks de mana hp e cap se estiverem abaixo ele vai pra label exit se nao volta a caçar ai faço ele ir até o depot mover varias vezes os mesmo itens já que nao encontrei uma action que consegui-se procurar e mover todos os itens como espadas entre outros que não fossem amontuaveis tudo uma só veis por isso a repetição de actions de mover os itens, depois ele vai pro banco deposita o que pegou e retira uma quantidade alta pra ir comprar os pots depois de compra e vender os pots ele deposita a quantia que sobrou move os pots de hp e mana pra BP certa, fecha e abre todas as BPS necessárias pra hunt minimiza o inventario e depois volta pra hunt so que volto a dizer estou com problema na parte das actions de abrir bps mover pots as vezes ele faz certo outras não.

  2. #2
    Focus Group Targets's Avatar
    Join Date
    Nov 2013
    Location
    PoA - Brazil
    Posts
    456
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    48 Post(s)
    Reputation
    109
    Rep Power
    5
    sua action de deposit pode ser simplesmente substituída por essa:
    Lua Code:
     
    local haveNextBP = true
     
    closewindows()
    while(windowcount() < 2) do
        closewindows()
        wait(500, 1000)
        openitem(MainBP, 'back') 
        wait(500, 1000)
        resizewindows()
        wait(500, 1000)
        openitem(LootBP, MainBP, true) 
        wait(500, 1000)
        resizewindows()    
        wait(500, 1000)
    end
    reachgrounditem("depot")
    wait(1000,2000)
    openitem("depot")
    wait(700,900)
    openitem(3502, "locker") 
    wait(700,900)
    openitem(MainBPDP, "depot chest")
    wait(700,900)
     
    while(haveNextBP == true) do
     
        depotdeposit(StacksBPDP, 'Brimstone Fangs', 'Brimstone Shell', 'Lump of Earth', 'Poisonous Slime', 'Strong Health Potion', 'Sulphurous Stone', 'Small Emerald', 'Magic Sulphur', 'Widows Mandibles', 'Lancer Beetle Shell', 'Lump of Dirt', 'Small Amethyst')
        wait(700,900)
        depotdeposit(LootBPDP, 'Stealth Ring', 'Platinum Amulet', 'Zaoan Halberd', 'Wailing Widows Necklace', 'Beetle Necklace')
        wait(2000)
     
        if(itemcount(LootBP,LootBP) > 0) then
            openitem(LootBP, LootBP)
            wait(700,900)
        else
            haveNextBP = false
        end
    end



    Vendo aqui sua action de sair da hunt, uma vai ra label refill, outra pra exit, outra pra saida...



  3. #3
    iBot User picollo's Avatar
    Join Date
    Jan 2013
    Posts
    66
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    14
    Rep Power
    4
    valeu amigo, mais pra mim verificar logo apos ele executar a action de abrir as bps ele verificar se estao abertas?

    cara acabei de testar essa tua action e n ta pegando ele nao move os itens pro depot olha como eu coloquei ela

    local haveNextBP = true

    closewindows()
    while(windowcount() < 2) do
    closewindows()
    wait(500, 1000)
    openitem("backpack", 'back')
    wait(500, 1000)
    resizewindows()
    wait(500, 1000)
    openitem("camouflage backpack", "backpack", true)
    wait(500, 1000)
    resizewindows()
    wait(500, 1000)
    end
    reachgrounditem("depot")
    wait(1000,2000)
    openitem("depot")
    wait(700,900)
    openitem(3502, "locker")
    wait(700,900)
    openitem("purple backpack", "depot chest")
    wait(700,900)

    while(haveNextBP == true) do

    depotdeposit("purple backpack", 'spiky club', 'life preserver', 'ratana', 'leather harness', 'spike shield')
    wait(700,900)

    if(itemcount("camouflage backpack") > 0) then
    openitem("camouflage backpack")
    wait(700,900)
    else
    haveNextBP = false
    end
    end
    Last edited by picollo; 01-15-2014 at 08:38 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •