Signup Now
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Free User TibiaDealer's Avatar
    Join Date
    Dec 2013
    Location
    Tibia-Dealer.com
    Posts
    391
    Reputation
    9
    Rep Power
    0

    Withdraw rings in depot

    Hai! I am making an actionscript to open a specific backpack inside depot and withdraw rings but it wont work for me - the script just close my all my character backpacks and just SOMETIMES it's opening the expedition backpack.
    Whatsup with this? =P

    Code:
    --Withdraw stealthrings from bp inside dp
    local bpforrings = getuseroption('lootbp') --your lootbackpack
    local ringbp = getuseroption('srbpdp') --stealthring backpack inside depot chest
    
    openitem('depot')
    wait(2222)
    openitem('Depot Chest')
    wait(2222)
    openitem('expedition backpack')
    wait(2222)
    
    local getRings = {'stealth ring'}
    for _, item in ipairs(getRings) do
    	moveitems(item, bpforrings, ringbp, 2) wait(300, 500)
    end
    Kind regards,
    Tibia-Dealer

    rep++ for help!

  2. #2
    Banned
    Join Date
    Dec 2013
    Location
    Poland
    Posts
    242
    Reputation
    14
    Rep Power
    0
    -- Withdraw rings from depo

    local mainbp = getlootingdestination('mainbp') -- main backpack
    local ringbp = getuseroption('srbpdp') --stealthring backpack inside depot chest

    while windowcount() < 1 do
    closewindows()
    wait(1500,2500)
    openitem(mainbp, "back", true)
    wait(1500,2500)
    resizewindows()
    end
    wait(1000,2000)
    opendepot()wait(1500,2500)
    openitem(ringbp, "Depot Chest")
    wait(1500,2500)
    moveitemsupto("stealth ring", 2, mainbp, ringbp)
    wait(7500,9500)
    Last edited by Frox; 01-28-2014 at 11:37 AM.

  3. #3
    Free User TibiaDealer's Avatar
    Join Date
    Dec 2013
    Location
    Tibia-Dealer.com
    Posts
    391
    Reputation
    9
    Rep Power
    0
    Quote Originally Posted by Frox View Post
    -- Withdraw rings from depo

    local mainbp = getlootingdestination('mainbp') -- main backpack
    local ringbp = getuseroption('srbpdp') --stealthring backpack inside depot chest

    while windowcount() < 1 do
    closewindows()
    wait(1500,2500)
    openitem(mainbp, "back", true)
    wait(1500,2500)
    resizewindows()
    end
    wait(1000,2000)
    opendepot()wait(1500,2500)
    openitem(ringbp, "Depot Chest")
    wait(1500,2500)
    moveitemsupto("stealth ring", 2, mainbp, ringbp)
    wait(7500,9500)
    It's working better, but its closing character bps when trying to open something inside Depot.

    However I fixed some minor errors in your code but it's still not working..
    Now it opens mainbp correctly..
    but when trying to open depot(again..) its closing my character bps & depot windows aswell -.-

    Code:
    -- Withdraw stealthrings from depot
    local mainbp = getlootingdestination('mainbp') -- main backpack
    local ringbpdp = getlootingdestination('srbpdp') --stealthring backpack inside depot chest
    
    while (windowcount(mainbp) == 0) 
    do
    closewindows()
    wait(1500,2500)
    openitem(mainbp, "back", true)
    wait(1500,2500)
    resizewindows()
    end
    
    wait(1000,2000)
    opendepot()
    wait(1500,2500)
    openitem(ringbpdp, "Depot Chest")
    wait(1500,2500)
    moveitemsupto("stealth ring", 2, mainbp, ringbp)
    wait(7500,9500)

  4. #4
    Free User yracoma's Avatar
    Join Date
    Dec 2013
    Location
    Curitiba, Paraná
    Posts
    197
    Reputation
    15
    Rep Power
    21
    Remove closewindows()
    http://i.imgur.com/2OAoXck.gif
    (*) Click on the picture for check my scripts!


  5. #5
    Free User TibiaDealer's Avatar
    Join Date
    Dec 2013
    Location
    Tibia-Dealer.com
    Posts
    391
    Reputation
    9
    Rep Power
    0
    Quote Originally Posted by yracoma View Post
    Remove closewindows()
    That shouldn't matter - The code is only casting "closewindows()" when the mainbp is not open. To reset it.
    But in practise it's closing all different windows anyway "/

    Anyway, I tried to remove it but it anyway closed windows.

  6. #6
    Banned
    Join Date
    Dec 2013
    Location
    Poland
    Posts
    242
    Reputation
    14
    Rep Power
    0
    closewindows() - closing every backpack even if mainbp is opened.
    Try to add closewindows().


    -- Withdraw rings from depo

    local mainbp = getlootingdestination('mainbp') -- main backpack
    local ringbp = getuseroption('srbpdp') --stealthring backpack inside depot chest

    closewindows()
    while windowcount() < 1 do
    closewindows()
    wait(1500,2500)
    openitem(mainbp, "back", true)
    wait(1500,2500)
    resizewindows()
    end
    wait(1000,2000)
    opendepot()wait(1500,2500)
    openitem(ringbp, "Depot Chest")
    wait(1500,2500)
    moveitemsupto("stealth ring", 2, mainbp, ringbp)
    wait(7500,9500)[/INDENT]

  7. #7
    Free User TibiaDealer's Avatar
    Join Date
    Dec 2013
    Location
    Tibia-Dealer.com
    Posts
    391
    Reputation
    9
    Rep Power
    0
    Quote Originally Posted by Frox View Post
    closewindows() - closing every backpack even if mainbp is opened.
    Try to add closewindows().


    -- Withdraw rings from depo

    local mainbp = getlootingdestination('mainbp') -- main backpack
    local ringbp = getuseroption('srbpdp') --stealthring backpack inside depot chest

    closewindows()
    while windowcount() < 1 do
    closewindows()
    wait(1500,2500)
    openitem(mainbp, "back", true)
    wait(1500,2500)
    resizewindows()
    end
    wait(1000,2000)
    opendepot()wait(1500,2500)
    openitem(ringbp, "Depot Chest")
    wait(1500,2500)
    moveitemsupto("stealth ring", 2, mainbp, ringbp)
    wait(7500,9500)[/INDENT]
    It's so close.. Backpacks is open'd but when it tries to open the ring bp it fails.. I try "openitem("blue backpack", "Depot Chest")" but then it just CLOSE all the backpacks, what the..

  8. #8
    Banned
    Join Date
    Dec 2013
    Location
    Poland
    Posts
    242
    Reputation
    14
    Rep Power
    0
    Ah didnt notice 1 thing


    -- Withdraw rings from depo

    local mainbp = getlootingdestination('mainbp') -- main backpack
    local ringbp = getlootingdestination('ringbp') --stealthring backpack inside depot chest

    closewindows()
    while windowcount() < 1 do
    closewindows()
    wait(1500,2500)
    openitem(mainbp, "back", true)
    wait(1500,2500)
    resizewindows()
    end
    wait(1000,2000)
    opendepot()wait(1500,2500)
    openitem(ringbp, "Depot Chest")
    wait(1500,2500)
    moveitemsupto("stealth ring", 2, mainbp, ringbp)
    wait(7500,9500)


    I think that it should work now, but didnt tested.
    Remember to add "ringbp" to looting destinions.

  9. #9
    Free User TibiaDealer's Avatar
    Join Date
    Dec 2013
    Location
    Tibia-Dealer.com
    Posts
    391
    Reputation
    9
    Rep Power
    0
    Nope! Still the same, closing all the BPs when it should open ring BP - what the heck is wrong..
    & the ringbp is set to "expedition backpack", tried some other BP kind but doesn't seem to matter.

  10. #10
    Banned
    Join Date
    Dec 2013
    Location
    Poland
    Posts
    242
    Reputation
    14
    Rep Power
    0
    Tested - works.
    Show me ur looting destinions
    Last edited by Frox; 01-28-2014 at 02:30 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
  •