XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 7 of 7

Thread: Backpack's Re-Opener

  1. #1

    Join Date
    Dec 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Backpack's Re-Opener

    Hello guys

    Im looking for a help.

    I need a script, that will re-open backpacks after disconnect, because many time's when my char recconect and keep killing mobs, cant loot anything and stays in one place all the time.


    Cheers

  2. #2
    sotos's Avatar
    Join Date
    Jun 2013
    Location
    Greece, ATHENS
    Posts
    272
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    lua code:

    local BPCount = 5 -- Main, Product, Rare, Gold, Manas
    local GoldBP = "Minotaur backpack"
    local ProdBP = "Deepling backpack"
    local RareBP = "Jewelled Backpack"
    local ManaBP = "Zaoan Chess Box"
    function BACKPACK_OPENER()
    if #Container.GetAll() < BPCount then
    setWalkerEnabled(false)
    Self.CloseContainers()
    Self.OpenMainBackpack(true):OpenChildren({ProdBP, true}, {RareBP, true}, {GoldBP, true}, {ManaBP, true})
    setWalkerEnabled(true)
    end
    end
    local BACKPACK_OPENER_MODULE = Module.New('BACKPACK_OPENER', 'BACKPACK_OPENER')
    Last edited by shadowart; 03-26-2016 at 11:53 AM. Reason: Code indentation and highlighting.
    Bought 160EK from @Ryszard

  3. #3
    Senior Member Jontor's Avatar
    Join Date
    Sep 2014
    Posts
    446
    Mentioned
    51 Post(s)
    Tagged
    1 Thread(s)
    You might want to disable looter/targeting with above code and make sure not to start the module too early

  4. #4
    sotos's Avatar
    Join Date
    Jun 2013
    Location
    Greece, ATHENS
    Posts
    272
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jontor View Post
    You might want to disable looter/targeting with above code and make sure not to start the module too early
    What you mean and how??
    Bought 160EK from @Ryszard

  5. #5

    Join Date
    Dec 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, i noticed that this script conflict with label "backpacks" from waypoint to re-open the backpacks when it goes to refill at depot. Any ideas how to solve it?

  6. #6

    Join Date
    Nov 2014
    Location
    Sundsvall, Sweden
    Posts
    174
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dwight View Post
    Well, i noticed that this script conflict with label "backpacks" from waypoint to re-open the backpacks when it goes to refill at depot. Any ideas how to solve it?
    go to the backpack label and remove the old backpack opener and use this
    Self.CloseContainers()
    wait(2000,3000)

    then this function is gonna kick in and open the bps for you

  7. #7
    Fetbojj's Avatar
    Join Date
    May 2013
    Location
    The Netherlands
    Posts
    90
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thanks it works wonderfully, I changed all my backpack reset labels/scripts into: delayWalker(2000) Self.Closecontainers. I made these little additions btw:

    -- Settings --

    local BPCount = 5 -- Main, Product, Rare, Gold, Manas
    local GoldBP = "Minotaur backpack"
    local ProdBP = "Deepling backpack"
    local RareBP = "Jewelled Backpack"
    local ManaBP = "Zaoan Chess Box"

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

    function BACKPACK_OPENER()

    if #Container.GetAll() < BPCount then
    Targeting.Stop()
    Looter.Stop()
    setWalkerEnabled(false)
    wait(500,1000)
    Self.CloseContainers()
    wait(500,1000)
    Self.OpenMainBackpack(true):OpenChildren({ProdBP, true}, {RareBP, true}, {GoldBP, true}, {ManaBP, true})
    Targeting.Start()
    Looter.Start()
    setWalkerEnabled(true)

    end

    end

    local BACKPACK_OPENER_MODULE = Module.New('BACKPACK_OPENER', 'BACKPACK_OPENER')

Posting Permissions

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