weird inventory error!

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

weird inventory error!

#1 Post 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?
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
User avatar
Administrator
Site Admin
Posts: 5353
Joined: Sat Jan 05, 2008 4:21 pm

Re: weird inventory error!

#2 Post by Administrator »

It looks like the item ID is actually 204795. The node (the thing you harvest) will have a different ID.
User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: weird inventory error!

#3 Post by jduartedj »

AAHHHHHHH, oh i see! should have seen that one coming ....

Thanks!
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Post Reply