since "abilities" structure is global and read from xml, there is no possibility to allow ranom values of those and there goes question one :
1. can anyone provide me with the idea of how to make abilities private for an item ? ( like attributes are )
the other way around abilities is using attributes for items but here I have a problem aswell. I did add
in enum AttrTypes_t
in enum itemAttrTypes
and
in bool Item::serializeAttr()
now when a monster creates loot, it works properly for each individual item but after I relog , the property is gone. here comes question 2 :
2. does anyone see what I'm missing here ?
1. can anyone provide me with the idea of how to make abilities private for an item ? ( like attributes are )
the other way around abilities is using attributes for items but here I have a problem aswell. I did add
Code:
// advanced item modifiers
ATTR_ITEM_ARTICLE = 1 << 23,
[COLOR="Red"]ATTR_ITEM_TESTATTRIBUTE = 1 << 24[/COLOR]
Code:
ATTR_SHOOTRANGE = 40,
ATTR_ARTICLE = 41,
[COLOR="Red"]ATTR_TESTATTRIBUTE = 42,[/COLOR]
};
and
Code:
if(hasAttribute(ATTR_ITEM_TESTATTRIBUTE))
{
propWriteStream.ADD_UCHAR(ATTR_ITEM_TESTATTRIBUTE);
propWriteStream.ADD_ULONG(gettest());
}
now when a monster creates loot, it works properly for each individual item but after I relog , the property is gone. here comes question 2 :
2. does anyone see what I'm missing here ?