Btw Khal talking about bugs, I forgot to post some, it was a flawless script however I did manage to catch a few bugs when withdrawing potions by it self without any food. So the only option I used was taking one food and the rest potions which worked flawlessly without any problem.
This only happened when the option was to not take any food with me to the barrel place:
And this screenie shows, that it will not carry on after you level up, it will just wait until you logout and the client relogs you in: