.........wow, that was scary.
Er1c, you are aware that you COULD just calculate weight at
1) Logon
2) Item Add
3) Item Remove
?
Not a whole lot of hurting there.
At logon calculate the total weight. When you get a corn, raise it by the weight of the corn. When you take it to the mill, subtract the weight of the corn, add the weight of the flour...but the whole way between, YOUR WEIGHT REMAINS THE SAME!

;
Of course, if there's no rhyme nor reason to Adding and Subtracting stuff there's a problem - but since they all pop up the same NPC Message, couldn't you just do it there?