Results 1 to 7 of 7

Thread: Ajuda com Action Backpack

  1. #1
    iBot User
    Join Date
    Apr 2012
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    10
    Rep Power
    5

    Ajuda com Action Backpack

    Quero que sempre que meu char estiver com menos de 4 bp abertas, ele feche tudo e abra uma por uma, tentei esse script mas não deu certo..
    Oque tem de errado?
    if (windowcount() < 4) then
    closewindows()
    wait(500,1000)
    openitem(mainBP, "back")
    wait(500,1000)
    resizewindows()
    wait(500,1000)
    openitem(supplyBp, mainBP, true)
    wait(500,1000)
    resizewindows()
    wait(500,1000)
    openitem(lootBp, mainBP, true)
    wait(500,1000)
    resizewindows()
    wait(500,1000)
    openitem(goldBp, mainBP, true)
    wait(500,1000)
    resizewindows()

  2. #2
    Normal User Danzudo's Avatar
    Join Date
    Mar 2012
    Posts
    1,001
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    54
    Rep Power
    7
    Posta o setup, com certeza é algum problema com os nomes das bps ou vc esta usando brown backpack!

  3. #3
    iBot User
    Join Date
    Apr 2012
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    10
    Rep Power
    5
    Mas mesmo se as Bp's estiverem erradas, ele não devia pelo menos fechar as bps?

  4. #4
    iBot User
    Join Date
    Apr 2012
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    10
    Rep Power
    5
    SETUP:

    -- Backpack Setup

    mainBp = "Deepling Backpack" -- Main Backpack
    lootBp = "Camouflage Backpack" -- Loot Backpack
    supplyBp = "Demon Backpack" -- Supplies Backpack
    goldBp = "Blue Backpack"

    stashBp = "Brocade Backpack" -- Backpack inside depo containing backpacks to store loot
    stackableBp = "Minotaur Backpack" -- Stackable Items Backpack
    nonstackableBp = "Minotaur Backpack" -- Non-Stackable Items Backpack

    -- Supply Setup

    nameMp = "Great Mana Potion" -- Mana potion to use
    maxMp = 400 -- Number of Mana potions to buy
    minMp = 40 -- Number of Mana potions to stop hunting
    priceMp = 120 -- Mana potions price


    ACTION SAFEBP:

    if windowcount() < 4 then
    pausewalking(10000)
    closewindows()
    wait(500,1000)
    openitem(mainBp, "back")
    wait(500,1000)
    resizewindows()
    wait(500,1000)
    openitem(supplyBp, mainBp, true)
    wait(500,1000)
    resizewindows()
    wait(500,1000)
    openitem(lootBp, mainBp, true)
    wait(500,1000)
    resizewindows()
    wait(500,1000)
    openitem(goldBp, mainBp, true)
    wait(500,1000)
    resizewindows()

    Ninguem pra me ajudar mesmo?
    Last edited by pingoola; 12-14-2012 at 11:28 PM.

  5. #5
    iBot User
    Join Date
    Apr 2012
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    10
    Rep Power
    5
    Alguem me ajuda?

  6. #6
    iBot User
    Join Date
    Feb 2012
    Location
    Curitiba
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Testa essa aki.

    local NUMBPS = 4 -- Numeros de bps que tem que estar aberta
    local MainBp = 'backpack of holding' -- Nome da backpack principal
    local LootBp = 'crystal backpack' -- Nome da backpack de loot
    local GoldBp = 'jewelled backpack' -- Nome da backpack de gold
    local SupplyBp = 'heart backpack' -- Nome da backpack de supplyes

    if windowcount() < NUMBPS then
    closewindows()
    wait(500,1000)
    openitem(MainBp,'back')
    resizewindows()
    wait(500,1000)
    openitem(LootBp,MainBp,true)
    resizewindows()
    wait(500,1000)
    openitem(GoldBp,MainBp,true)
    resizewindows()
    wait(500,1000)
    openitem(SupplyBp,MainBp,true)
    resizewindows()
    wait(500,1000)
    end
    Last edited by mereles; 12-15-2012 at 06:30 PM.

  7. #7
    iBot User Dehan's Avatar
    Join Date
    May 2012
    Location
    www.ssocialscripts.com
    Posts
    910
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    114
    Rep Power
    7
    Quote Originally Posted by pingoola View Post
    Alguem me ajuda?
    talvez o "grande" problema, seja apenas um
    Code:
    end
    faltando no final do code (:


    PHP Code:
    if windowcount() < 4 then
    pausewalking
    (10000)
    closewindows()
    wait(500,1000)
    openitem(mainBp"back")
    wait(500,1000)
    resizewindows()
    wait(500,1000)
    openitem(supplyBpmainBptrue)
    wait(500,1000)
    resizewindows()
    wait(500,1000)
    openitem(lootBpmainBptrue)
    wait(500,1000)
    resizewindows()
    wait(500,1000)
    openitem(goldBpmainBptrue)
    wait(500,1000)
    resizewindows()
    end 
    Check out - Dehan Accounts Service!

    Proud Scripter of BUgWT STAFF

Posting Permissions

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