The attribute index is magical but not always working. I tried to grab the durability of an item from GetAttributeFloat and GetAttributeInt but always got -1. BTW, my implementation of GetAttribute is tested OK because I can already grab my health point and a lot of other stuffs.
There seems to be 3 very informative indices:
Code:
Durability_Cur = 0x124, // float
Durability_Max = 0x125, // float
Durability_Last_Damage = 0x126, // float
However, none of them seems to be the right one. Anyone can give some hints? Thanks in advance.
Update:
It looks like if the item is equipped, all the attribute values fail whilst they behave normal when on the ground.
Update2:
Another found is made: the actors include only the ground items and equipped items (slots?) which do not have a valid ACD GUID (0xFFFFFFFF). Also traversing ACDs will only produce fixed 13 "basic" items no matter whether there is an item equipped or not. And the items in the bagpack seem hidden from both Actors and ACDs.
Need a way to find out the items in inventory.