I have a problem!

Primarily my char is full and i need more skillpoints

Seriously though. I modified the script because i don't have room for tinking on my BS,Tailor,Imbuing (legendary) armslore and mining fletching, and mage on jewelry plus left over room.
so i took out all the tinkering related stuff made a sub that looks for tongs in the resource bag and one that gets one if there are less then 2. this way the script uses one until it breaks and uses the other one if the first one breaks mid BOD. and then gets a new one during the first part of the fill_bod sub
But.... after filling 5 with everything working pulling from one BOD book filling and dropping to another BOD book it errors out with a EUO message that says "Function "387" not found.
I am on OSI easy and client are up to date.
Is this referring to a line in the script?
that would be this line for my modded script
if %0 = 10
Also I was weary of posting the whole script here for looking as then a non user could copy paste so Let me know if I need to PM it to any helpers??
Thanks for your time