Log in

View Full Version : Backpack's Re-Opener



Dwight
03-26-2016, 06:31 AM
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 :D

sotos
03-26-2016, 09:45 AM
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')

Jontor
03-26-2016, 11:45 AM
You might want to disable looter/targeting with above code and make sure not to start the module too early

sotos
03-26-2016, 12:46 PM
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??

Dwight
04-09-2016, 02:35 AM
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?

yompa93
04-13-2016, 10:43 AM
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

Fetbojj
11-25-2016, 08:46 AM
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')