• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Item Attribute

Junior Spellweaver
Joined
Dec 15, 2014
Messages
116
Reaction score
6
Some1 pls explain where the values in the ItemAttribute field defined?
 
Newbie Spellweaver
Joined
Feb 2, 2015
Messages
77
Reaction score
54
it was call "bit flags". can store mutiple value at once.
example:

A = 0x1
B = 0x2
C = 0x4
D = 0x8

you need to store ABC on variable ItemAttr.
ItemAttr = 1+2+4 (so it was 7)

when you need to try compare value with c++.
you can use & for check bit flags, also use | for set mutiple flags

if(ItemAttr & A)

ItemAttr = A | B | C
 
Upvote 0
Back
Top