Results 1 to 10 of 10

Thread: Problema com comprar spear, e reabrir bp de gold

  1. #1
    Normal User
    Join Date
    Mar 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Angry Problema com comprar spear, e reabrir bp de gold

    Então, o titulo ja diz tudo... primeiro a da bp de gold:

    1)
    openitem("Purple backpack", "Fur backpack", true)

    wait(1000, 2000)

    end

    no caso, era pra o bot abrir a FUR BACKPACK que está dentro da PURPLE BACKPACK, que no caso é minha main bp.

    2)

    -- Setup
    nameAmmo = "Royal spear" -- Ammo name
    maxAmmo = 30 -- Max Ammo
    minAmmo = 10 -- Ammo left before leaving
    priceAmmo = 15 -- Ammo Price


    action pra comprar spear:

    npcsay("hi")
    wait(300,450)
    npcsay("trade")
    wait(900,1350)
    buyitemsupto(nameAmmo, maxAmmo, itemcount(nameAmmo)+weaponamount)
    wait(900,1350)
    end

    porém, ele não compra.

    espero que possam me ajudar, agradeço desde já!

  2. #2
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    1º caso:

    inverta as bps, os parametros sao openitem(qual, ondeesta, true ou false)

    2 caso :

    buyitemsupto(nameAmmo, (maxAmmo - weaponamount))
    Last edited by mexicowss; 09-24-2013 at 05:24 AM.
    click the image below to see my thread.



  3. #3
    Normal User
    Join Date
    Mar 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    vou testar aqui

    outra coisa, vc tem um ifisnot location decente ai pra mim poder usar?
    o meu tb n ta pegando(eu parei de jogar a um ano atras, e meus scripts simplesmente n pegam mais)

  4. #4
    Normal User
    Join Date
    Mar 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    o da royal spear ele pulou a action e n comprou

  5. #5
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    Quote Originally Posted by subez View Post
    o da royal spear ele pulou a action e n comprou
    say("hi")
    wait(1500)
    npcsay("trade")
    wait(900,1350)
    buyitemsupto(nameAmmo, (maxAmmo - weaponamount))
    wait(900,1350)
    Last edited by mexicowss; 09-24-2013 at 05:33 PM.
    click the image below to see my thread.



  6. #6
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    Quote Originally Posted by subez View Post
    vou testar aqui

    outra coisa, vc tem um ifisnot location decente ai pra mim poder usar?
    o meu tb n ta pegando(eu parei de jogar a um ano atras, e meus scripts simplesmente n pegam mais)

    if not islocation(2) then
    gotolabel('x')
    else
    end
    click the image below to see my thread.



  7. #7
    Normal User
    Join Date
    Mar 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    mexicowss, a action de comprar royal spear continua sem funcionar, sera que não é algo faltando no setup?

  8. #8
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    oq aparece no debug log qndo ela executa?
    click the image below to see my thread.



  9. #9
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    alias tinha um "end" perdido na action
    tira esse end q vai funcionar
    click the image below to see my thread.



  10. #10
    Focus Group Samuel's Avatar
    Join Date
    Feb 2012
    Location
    Teresina - PI - Brasil
    Posts
    922
    Mentioned
    16 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    82
    Rep Power
    6
    Caso seu problema tenha sido resolvido, nos comunique, assim seu tópico será fechado.
    Marketing
    and Public Relations

    Atenciosamente,
    Samuel Torres


    █ iBot updates and news [ AQUI/HERE ]
    █ É iniciante? Consulte nosso Suporte de Perguntas Frequentes [ AQUI/HERE ]
    █ Tutorial Básico com video aula / Basic Tutorial with video lessons [ AQUI/HERE ]
    Tibia Itens - Sale of Keys iBot/Tibia Cash/Itens/Other services [ AQUI/HERE ]

Posting Permissions

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