3bd0 181 Posted May 24, 2018 Share Posted May 24, 2018 Hi, I'm using this function to get monsters type DWORD CPythonNonPlayer::GetMonsterRaceFlag(DWORD dwVnum) { const CPythonNonPlayer::TMobTable * c_pTable = GetTable(dwVnum); if (!c_pTable) { return 0; } return c_pTable->dwRaceFlag; } it works perfectly when the monster only have one type eg. ANIMAL, DEVIL, ATT_ELEC etc but whenever the mob have more than one type (eg, ANIMAL, ATT_ELEC) it always returns 0 What am I missing ? Link to comment Share on other sites More sharing options...
3bd0 181 Posted May 25, 2018 Author Share Posted May 25, 2018 F5 Link to comment Share on other sites More sharing options...
Pisti95 134 Posted May 27, 2018 Share Posted May 27, 2018 (edited) In my mob_proto, just i have one RACE_FLAG Value in my Column. Let's see: Don't use more than 1 race_flag to Mobs. Edited August 21, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
3bd0 181 Posted May 27, 2018 Author Share Posted May 27, 2018 with the recent updates for the official, they started using more than one race-flag. and it's fine server-side, if you used 2 flags, server-side will be fine and it will read the 2 flags. I want to do the same client side. Link to comment Share on other sites More sharing options...
mareks55 1 Posted December 22, 2019 Share Posted December 22, 2019 Same problem Link to comment Share on other sites More sharing options...
xabugas123 1 Posted April 16, 2021 Share Posted April 16, 2021 Same problem Link to comment Share on other sites More sharing options...
Honorable Member Owsap 8159 Posted April 16, 2021 Honorable Member Share Posted April 16, 2021 (edited) This is due to the dump_proto only reading one value although you have more values separated with a delimiter so you have to make sure you have the right delimiter. If your mob_proto.txt has for example: ANIMAL,ZODIAC You have to make sure your dump_proto is reading the symboly , And if your dump_proto for example has: ANIMAL|ZODIAC Then the delimiter you should be using is | Here is an example. /// 1. @ dump_proto/ItemCSVReader.cpp // Search @ int get_Mob_RaceFlag_Value string* arInputString = StringSplit(inputString, "|"); // 프로토 정보 내용을 단어별로 쪼갠 배열. // Replace with string* arInputString = StringSplit(inputString, ","); // 프로토 정보 내용을 단어별로 쪼갠 배열. Edited April 16, 2021 by Owsap 1 https://owsap.dev/ / https://osf.owsap.dev/ 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