Yeah sorry for not being clear I'll try rephrase it, I'm not sure where to see the log but can check
I start the script at the bank, it will withdraw the food then not move
I start the script at the location, it will fight normally and then teleport out, get to the bank and withdraw food and stand still (Not telling it to bank at all, I force it to bank when I run out of food).
I start the script at the location but I tell it I want it to bank, it will instantly teleport out without fighting anything, sit at the bank, deposit it's inventory, withdraw the food then stand still