xDiiZeRx 40 Posted November 5, 2020 Share Posted November 5, 2020 Hi guys! How can I expand the refine proto? vnum4, count4 does not work. Thanks for the helping! 1 Link to comment Share on other sites More sharing options...
Forum Moderator VegaS™ 10266 Posted December 30, 2020 Forum Moderator Share Posted December 30, 2020 (edited) That's right, the default code is crap for this scenario with extended requirements. If you add a value to vnum4 and count4, the refining will not work anymore for that ID, the required items will be ignored, you can upgrade the item without any requirements. Quote for (int i = 0; i < REFINE_MATERIAL_MAX_NUM; i++) { str_to_number(prt->materials[i].vnum, data[col++]); str_to_number(prt->materials[i].count, data[col++]); if (prt->materials[i].vnum == 0) { prt->material_count = i; break; } } Basically what they did is to set the material count just when the next column of 'vnum' is empty. Let's take two examples: The refine proto id 430, will have material_count = 1, because the next column 'vnum1' is empty and the condition was fulfilled. The refine proto id 510, will have material_count = 0, because there's no column 'vnum' which is equal to 0. That means it doesn't satisfy that condition where it sets the material count. The solution is: This is the hidden content, please Sign In or Sign Up Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 42 1 8 4 18 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON Link to comment Share on other sites More sharing options...
xDiiZeRx 40 Posted December 30, 2020 Author Share Posted December 30, 2020 Thank you man! I'm thankful! 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