iwitrag 36 Posted November 22, 2014 Share Posted November 22, 2014 Hello, I'm working on converter for mob_proto (XML -> SQL and reversed) like that one for item_proto I have released. I need to ask something: In SQL, there are these 4 columns: `size` set('SMALL', 'MEDIUM', 'BIG') NOT NULL DEFAULT 'SMALL' `ai_flag` set('AGGR', 'NOMOVE', 'COWARD', 'NOATTSHINSU', 'NOATTCHUNJO', 'NOATTJINNO', 'ATTMOB', 'BERSERK', 'STONESKIN', 'GODSPEED', 'DEATHBLOW', 'REVIVE') DEFAULT NULL `setRaceFlag` set('ANIMAL', 'UNDEAD', 'DEVIL', 'HUMAN', 'ORC', 'MILGYO', 'INSECT', 'FIRE', 'ICE', 'DESERT') NOT NULL DEFAULT '' `setImmuneFlag` set('STUN', 'SLOW', 'FALL', 'CURSE', 'POISON', 'TERROR') NOT NULL DEFAULT '' But in XML, these columns values are represented by numbers, for example ai_flag="3457" = 'AGGR,BERSERK,STONESKIN,DEATHBLOW,REVIVE' How can I know, which number is what? 1 Link to comment Share on other sites More sharing options...
iwitrag 36 Posted November 24, 2014 Author Share Posted November 24, 2014 Refresh Link to comment Share on other sites More sharing options...
Denis 1477 Posted November 24, 2014 Share Posted November 24, 2014 I'll give you an example: `size` set('SMALL', 'MEDIUM', 'BIG') NOT NULL DEFAULT 'SMALL' size = 1 ('SMALL') size = 2 ('MEDIUM') size = 3 ('BIG') Link to comment Share on other sites More sharing options...
iwitrag 36 Posted November 26, 2014 Author Share Posted November 26, 2014 Hello Denis, thanks for answer. So why 3457 is AGGR + BERSERK + STONESKIN + DEATHBLOW + REVIVE ?? Link to comment Share on other sites More sharing options...
Solution metin2team 766 Posted November 26, 2014 Solution Share Posted November 26, 2014 'AGGR' = 1 'NOMOVE' = 2 'COWARD' = 4 'NOATTSHINSU' = 8 'NOATTCHUNJO' = 16 'NOATTJINNO' = 32 'ATTMOB' = 64 'BERSERK' = 128 'STONESKIN' = 256 'GODSPEED' = 512 'DEATHBLOW' = 1024 'REVIVE' = 2048 3 Link to comment Share on other sites More sharing options...
Denis 1477 Posted November 26, 2014 Share Posted November 26, 2014 1+128+256+1024+2048 = 3457 1 Link to comment Share on other sites More sharing options...
Night 367 Posted November 26, 2014 Share Posted November 26, 2014 Hello Denis, thanks for answer. So why 3457 is AGGR + BERSERK + STONESKIN + DEATHBLOW + REVIVE ?? based on what metin2team said : its : 1+128+256+1024+2048 = 3457; 2 Link to comment Share on other sites More sharing options...
iwitrag 36 Posted November 27, 2014 Author Share Posted November 27, 2014 So that's the system how it works!! Thank you very much guys I will release mob-proto converter soon Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now