I notice that if you are using the 'buy jugs of wine' option, the bot prioritizes dropping the empty jugs over getting out of combat with the NPC. Which means that you frequently are taken to super low HP while dropping empty jugs. Could you not make it so that the bot will run to the bar first...