Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

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
53
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