Script is great but one thing I noticed is that when it leaves the match, if the weapon/shield items are not equipped anymore, it will get stuck when trying to start another match as it will keep trying to get potions out. Easy fix would be to make sure it has the primary slot weapon/shield equipped before it starts grabbing potions out.
A better explanation, I bring rapier + avernic for main attacking and then dragon claws for specs. When it runs out of the potions, it'll sometimes still have the claws equipped when leaving and thus it end ups getting stuck due to it never pulling enough of the potions out. For now I've just made sure to pull 1 less potion out thus I always have that open space to not confuse it. Just wanted to let you know in case you'd like to update.