unfortunately my knowledge of c codes is small, if not zero, but I believe the idea is: "check items that can be wraped, wrap them and send them to the depot"
Here's the code that do everything:
OTX Server from:. Contribute to mattyx14/otxserver development by creating an account on GitHub.
github.com
Maybe someone else can help you or try using IA