PDA

View Full Version : Reset BPs with same name/ID



Hetcolt
02-21-2016, 08:31 PM
Hello cheaters :P,

I'm currently using this script for resetting my backpacks[table="width: 500"]

local SupplyBP = "Zaoan Chess Box"
local LootBP = "Jewelled Backpack"

...

elseif (labelName == "ResetBps") then
-- Reset Backpacks
Walker.Stop()
Looter.Stop()
Self.CloseContainers()
wait(500,1000)
Self.OpenMainBackpack(true):OpenChildren({SupplyBP , true}, {LootBP, true})
wait(500,1000)
Container.GetFirst():Minimize()
wait(200)
Client.HideEquipment()
Walker.Start()
Looter.Start()

My question: Is there any way to make both local SupplyBP = "Zaoan Chess Box" and local LootBP = "Zaoan Chess Box" ?

thanks for help
hail xenobot

Adrstalik
02-21-2016, 09:18 PM
Not really. You can not use the same BP for other things. You can just segregate your backpacks inside of the main bp and then use script to open bps in order.

krille09
02-22-2016, 01:37 AM
I think it's possible, but abit trickier than neccesary, search up open doors with key script, that's my guess on how to do it, finding x items in an specific slot inside backpack etc...

Furpan
03-13-2016, 06:03 AM
It is possible, however, you need to use the backpacks index value instead of the name.

Instead of creating an object such as
local var1 = Container.New('Zaoan Chess Box')
It would be a smarter approach to iterate through the open backpacks indexes to close them and then open them up again by opening the main backpack and iterating through the items for backpacks ( Item.isContainer(id) ).