View Full Version : Open bps when reconnect?
roguekk
05-31-2016, 01:12 AM
Please, anyone have a lua script that open backpacks after reconnect, useful with those kicks, but this script must not conflict with reset bps label waypoint.
I tested some scripts but when the waypoint is reseting bps both script conflict, then bot don't open all bps.
Adrax 13
06-07-2016, 01:54 PM
Personally I'd toss it into a module. The way it would work would be to check to see if the backpacks are closed at any point, and if so, reopen them.
If you tell me which backpacks you want open I can write it for you now, but for now I'll toss this example:
Module.New('Backpack Opener', function(Bps)
if (Container(0):isOpen() == false) then
Walker.Stop()
Self.CloseContainers()
wait(300,500)
Self.OpenMainBackpack()
wait(300,500)
Container.GetLast():Minimize()
Walker.Start()
end
end)
So basically this example would reopen your main backpack if its closed at any point.
*NOTE*
I have it stop the walker because sometimes it messed up the backpack opening process, just makes it more consistent
romarranger
06-09-2016, 11:36 PM
What if I want to open 3 backpack inside the main ? XD
roguekk
06-10-2016, 04:22 AM
I found interesting lua script here in forum. It basically reopen all your BPs if you're not in protect zone. That's very useful because a lot o scripts reset bps in PZ, then no bug or conflict.
local LootBp1 = 'Golden Backpack'
local LootBp2 = 'Green Backpack'
local StackBp = 'Orange Backpack'
local GoldBp = 'Backpack'
local numberOfBackpacks = 2
Module('Alarm Containers', function(mod)
if #Container.GetAll() < numberOfBackpacks and Self.isInPz() == false then
alert()
print('Containers fucked up, stopping to reset BPs')
setWalkerEnabled(false)
Targeting.Stop()
Looter.Stop()
Self.CloseContainers()
Self.OpenMainBackpack(true):OpenChildren({GoldBp, true},{StackBp, false},{LootBp1, false},{LootBp2, false})
wait(200, 500)
setWalkerEnabled(true)
Targeting.Start()
Looter.Start()
end
mod:Delay(2000)
end)
Just edit false or true and numbers of bp, and more one thing:
This script open BPS in this order: {GoldBp, true},{StackBp, false},{LootBp1, false},{LootBp2, false}.
So "GoldBP" is bp 2, "StackBP" is bp 3 and so on. Keep it in mind to configure.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.