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![]()
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![]()
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
You might want to disable looter/targeting with above code and make sure not to start the module too early
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?
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')