One thing that you will run into when disarm/rearm is that it's pretty slow using EasyUO. So you need to put in safeguards to be sure you are doing it slow enough to not cause "you must waits". Best thing for this is to put in checks to be sure you have completely disarmed, and the rearmed before allowing the code to continue.
Some recommendations I would make:
1) So when you disarm, put a loop that will wait until your armed weapon appears in your backpack
2) Put a check to see if you have any pots left; don't assume you have some
3) When you re-arm, put a loop in to be sure the weapon appears in your paperdoll.
4) After both disarm/rearm sequences, put an additional "'''wait" in and play with this value until you find something that works 100%.
So your psudocode would be:
0) check for pots, if none are available, no need to disarm; fail and warn of no pots
1) disarm
2) wait until disarm
2a) wait a bit more
3) check for pots
4) drink a pot since you know they are available
5) wait 20
6) rearm
7) wait for rearm
8 ) wait a bit more.
If you do this, then you should have a pretty lag-independent way of chugging.
I deliberately didn't code this for you. If you still need help, I can post some code snippets. I know some people like to try and figure it out for themselves. So if you need some more info, just say so.
