Well guys, since I've got many problems with my backpacks when botting for a long time, I made this persistent hotkey based on another cavebot persistent named "Check Backpacks". You can configure it based on looting destination names.
Hope you find it helpful, cya!

PHP Code:
auto(1000)
local mainbp getlootingdestination('mainbp')
local rarebp getlootingdestination('rarebp')
local goldbp getlootingdestination('goldbp')
local heavybp getlootingdestination('heavybp')

if (
windowcount() < 3then
    setsetting
('Looting/OpenNextBP''no')
    
closewindows()    
    
setcavebot('off')
    
settargeting('off')
    
stopattack()
    
reopenwindows('small')
    
wait(5000)
    
setcavebot('on')
    
settargeting('on')
    
resizewindows()
    
setsetting('Looting/OpenNextBP''yes')
end