Any patch thats been made for a script should be place directly under said script then put anything that it was conflicting with under the patch.
Your best bet would be to arrange them like this:
Inventory script
Patch
Other scripts
That should solve your problems.