I've noticed that the way the bot makes Sapphire rings is really inefficient. It doesn't withdraw the gold bars and sapphires thirteen at a time like someone normally would, but rather fourteen at a time, which leads to you missing either a gold bar or a sapphire at the end of the first run. This escalates into you having four sapphires in your inventory after making one batch of rings, banking, withdrawing fourteen bars, then only making four rings before having to bank again, with ten gold bars to spare. Otherwise, I'm really liking the script. Good job
EDIT: This also happens if, say, you had the bot mine 270 copper and 270 tin, then smelt 270 bronze bars. On the last run of tin mining, you'll have 27 ores in your inventory. My guess is that the bot sees that you have tin ore in your inventory, and therefore just tries to withdraw copper ore without checking how much space you have in your inventory. This results in the bot only withdrawing 1 copper (after depositing the pickaxe) and then smelting all the bronze bars possible (1). Which then frees up extra space. It then checks for tin in the inventory, realises it has tin already, then filling up its inventory with copper (2). etc.
PROPOSED FIX:
Have the bot deposit everything in the inventory before starting the next task.