Page 1 of 1

weird inventory error!

Posted: Fri Jan 21, 2011 3:18 pm
by jduartedj
ok so all the following lines work OK:

Code: Select all

player:target_Object(112958,nil,true) -- actually Gets Fresh Eggs
inventory:itemTotalCount("Fresh Egg") -- == 'my actual number of eggs'
RoMScript("TEXT('112958_name')") -- == "Fresh Egg"
the next one doesn't, instead return 0, which is wrong

Code: Select all

inventory:itemTotalCount(112958) -- == 0 ??????????????
my question... why?

Re: weird inventory error!

Posted: Fri Jan 21, 2011 3:23 pm
by Administrator
It looks like the item ID is actually 204795. The node (the thing you harvest) will have a different ID.

Re: weird inventory error!

Posted: Fri Jan 21, 2011 3:33 pm
by jduartedj
AAHHHHHHH, oh i see! should have seen that one coming ....

Thanks!