One thing I noticed, when you use barrow tabs to teleport to and out of the minigame.
I've set up the bot to do 5 chests per trip. If I did 3 chests, stop the bot, and later on start it again (with 5 still set), whenever I have less then 5 barrows tabs, it waits in the tombs after looting the chest it will do nothing and eventually die (no errors). Can you change the script so that whenever I have set a X amount of chests per trip (eg 1000) and i'm out of tabs (in inventory) it will bank? The case right now is if I set 5 chests and it has 1 barrows tab in the inventory it still thinks it has to do 4 more but its unable to teleport out of the tombs.