View Full Version : How to minimize my bp's??
spikejra23
09-08-2014, 01:05 PM
i had this script
elseif (labelName == "ResetBps") then
-- Reset Backpacks
Walker.Stop()
Self.CloseContainers()
Self.OpenMainBackpack(true):OpenChildren({LootBP, true}, {GoldBP, true})
Container.GetFirst():Minimize()
Walker.Start()
but it doesnt minimize my openned bp's.
can someone help?
rettush94
09-09-2014, 07:14 AM
nope...
julllleee
09-09-2014, 08:20 AM
elseif (labelName == "ResetBps") then -- Reset Backpacks
Walker.Stop()
Self.CloseContainers()
wait(800,1200)
Self.OpenMainBackpack(false):OpenChildren({LootBP, false}, {GoldBP, false})
wait(1200,1600)
for i=1,3, 1 do
Container.GetByName(LootBP):Minimize()
wait(300,500)
Container.GetByName(GoldBP):Minimize()
wait(300,500)
Client.HideEquipment()
end
Walker.Start()
try this, it will try to minimize the bp's 3 times to make sure i don't fail on some, this don't minimize the main bp because the bot sometimes fail to press the correct button and press logout instead and mess up. I added to hide the eq to make more space.
satoshi
09-09-2014, 08:49 AM
local test = function()
local minimizeAll = true --set to false if you only want to minimize specific containers
local minimize = {"Camouflage Backpack", "Beach Backpack", "Brocade Backpack",} --specify the container names of the containers you want to minimize (only used if minimizeAll is set to false)
local hideEquipment = true --set to false if you don't want to hide equipment
local waitTime = {200,400}
local HideThem = 1
local Counter = 0
--don't change this line! \/--
if(minimizeAll) then minimize = Container.GetIndexes() end --don't change this line!--
--don't change this line! /\--
while HideThem < 10 do
if(hideEquipment) then Client.HideEquipment() end
wait(waitTime[1],waitTime[2])
for i=1, #minimize do
if(minimizeAll) then cont = Container.GetFromIndex(minimize[i])
else cont = Container.GetByName(minimize[i])
end
cont:Minimize()
wait(waitTime[1],waitTime[2])
HideThem = HideThem+1
end
end
end
------------------
Add this to your lua and when you do your label, call the function. You can also alter it a little if you only want to close specific ones.
elseif (labelName == "ResetBps") then
-- Reset Backpacks
Walker.Stop()
Self.CloseContainers()
Self.OpenMainBackpack(true):OpenChildren({LootBP, true}, {GoldBP, true})
test()
Walker.Start()
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.