Seems to be looting fine for me, let me know exactly what your settings are and exactly what you are telling it to loot so I can try to replicate the issue.
Teleporting out of wilderness when looting bag is full is very odd, there is no detection in the script for determining when the bag is full since after the update to looting bag there was no longer a need for that. When this happens is your inventory full as well? Like filled with food/pots for example? Looting bag seems to be emptied correctly for me when I just tested it, the script will deposit all items, withdraw the bag when it withdraws food, etc and then empty it. I tested with normal client, are you using mirror?