weird inventory error!
Posted: Fri Jan 21, 2011 3:18 pm
ok so all the following lines work OK:
the next one doesn't, instead return 0, which is wrong
my question... why?
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"
Code: Select all
inventory:itemTotalCount(112958) -- == 0 ??????????????