• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

it.abilities and item properties

cozmo88

New Member
Joined
Apr 20, 2009
Messages
3
Reaction score
0
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

Code:
			// advanced item modifiers
			ATTR_ITEM_ARTICLE = 1 << 23,
			[COLOR="Red"]ATTR_ITEM_TESTATTRIBUTE = 1 << 24[/COLOR]
in enum AttrTypes_t
Code:
	ATTR_SHOOTRANGE = 40,
	ATTR_ARTICLE = 41,
	[COLOR="Red"]ATTR_TESTATTRIBUTE = 42,[/COLOR]
};
in enum itemAttrTypes
and
Code:
 if(hasAttribute(ATTR_ITEM_TESTATTRIBUTE))
    {
        propWriteStream.ADD_UCHAR(ATTR_ITEM_TESTATTRIBUTE);
		propWriteStream.ADD_ULONG(gettest());
    }
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 ?
 
Back
Top