woot nevermind figured it out :P
The reason I was constantly getting 0 was that I was calling this function on enterworld because it was easier to output to file what I was debugging when I logged in rather than on another event .. The problem was that on enterworld my inventory had not been populated yet ROFL
now I can add recipe shops yay
ps. mod can delete this thread if needed
|