This persistent is programmed to work when you are not in zone safe, if you want to configure any specific area edit line 54.
Do not forget to edit the name of the bps Looting > Seetings (line 13 - 17)
--AutoOpenBP
auto(1000)
local useAutoBP = true --check, if use auto open bp
local MinimizeEquip = false
--Checks
local useSupBP = true --check, if use supbp
local useExtraBP = false --check, if use extrabp
local useExtraBP2 = false --check, if use extrabp2
local useLootBP = true --check, if use lootbp
local useGoldBP = true --check, if use goldbp
--Destination
local mainbp = itemname($back.id)
local supplybp = getlootingdestination('suppbp') --check you looting destination, name supbp
local extrabp = getlootingdestination('extrabp') --check you looting destination, name extrabp
local extrabp2 = getlootingdestination('extrabp2') --check you looting destination, name extrabp2
local lootbp = getlootingdestination('lootbp') --check you looting destination, name lootbp
local goldbp = getlootingdestination('goldbp') --check you looting destination, name goldbp
--===================================================================================================
function UseMinimizeEquip()
while windowcount(mainbp) == 0 do
restorewindows('equip')
end
while windowcount(mainbp) == 1 do
minimizewindows('equip')
end
end
function OpenMainBP()
while windowcount(mainbp) == 0 do
pausewalking(2000)
wait(200,400)
closewindows()
openitem(0,'back')
wait(200,400)
pausewalking(0)
resizewindows()
end
end
function OthersBP(BpType)
while windowcount(BpType) == 0 and windowcount(mainbp) == 1 do
pausewalking(2000)
openitem(BpType,mainbp,true)
wait(200,400)
pausewalking(0)
resizewindows()
end
end
if $connected then
if useAutoBP then
if not $pzone then
if MinimizeEquip then
UseMinimizeEquip()
elseif not MinimizeEquip then
restorewindows('equip')
end
OpenMainBP()
if useSupBP and itemcount(supplybp) > 0 then
OthersBP(supplybp)
end
if useExtraBP and itemcount(extrabp) > 0 then
OthersBP(extrabp)
end
if useExtraBP2 and itemcount(extrabp2) > 0 then
OthersBP(extrabp2)
end
if useLootBP and itemcount(lootbp) > 0 then
OthersBP(lootbp)
end
if useGoldBP and itemcount(goldbp) > 0 then
OthersBP(goldbp)
end
end
end
end
-Update: 06/15/2017 --Add check if not Minimize equip then restore equip