Natox 18 Posted May 18, 2018 Share Posted May 18, 2018 (edited) hi, I wanted know ! Someone would have the code to implement the new bonus: Resistance to half - humans ? https://metin2.download/picture/U8uH1656Kf6LIwF74ERCWUbV2H4fk4f2/.png Waiting for your reply Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium Speachless 765 Posted May 18, 2018 Premium Share Posted May 18, 2018 I'm gonna die 1 Link to comment Share on other sites More sharing options...
Premium tierrilopes 453 Posted May 18, 2018 Premium Share Posted May 18, 2018 Use any of the other countless resist bonus as a guideline. Link to comment Share on other sites More sharing options...
Natox 18 Posted May 18, 2018 Author Share Posted May 18, 2018 Some serious answers please ... Link to comment Share on other sites More sharing options...
Premium Speachless 765 Posted May 18, 2018 Premium Share Posted May 18, 2018 1 minute ago, tierrilopes said: Use any of the other countless resist bonus as a guideline. Am I too tired, or .. what ? Isn't HH old since metin2 was created ? Link to comment Share on other sites More sharing options...
Natox 18 Posted May 18, 2018 Author Share Posted May 18, 2018 This is a new bonus Link to comment Share on other sites More sharing options...
Premium Galet 514 Posted May 18, 2018 Premium Share Posted May 18, 2018 il y a 9 minutes, Dobrescu Sebastian a dit : Am I too tired, or .. what ? Isn't HH old since metin2 was created ? The new one is resistance the old one is bonus I guess. il y a 10 minutes, Natox a dit : Some serious answers please ... Still it's really easy to do. Tierrilopes answered Link to comment Share on other sites More sharing options...
Natox 18 Posted May 18, 2018 Author Share Posted May 18, 2018 I suspect it's simple but not necessarily for me, that's why I'm asking for help. Link to comment Share on other sites More sharing options...
Premium WeedHex 636 Posted May 18, 2018 Premium Share Posted May 18, 2018 40 euro and i give it. put the money together hihih Link to comment Share on other sites More sharing options...
Natox 18 Posted May 18, 2018 Author Share Posted May 18, 2018 Lol 40 euros for just one bonus xD It's more expensive Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19764 Posted May 18, 2018 Honorable Member Share Posted May 18, 2018 This came with the PvP balancing, but the new pendant system conatins too. But really, a new bonus implementation is that hard? I think better if you look for another "hobby". 1 Link to comment Share on other sites More sharing options...
Natox 18 Posted May 18, 2018 Author Share Posted May 18, 2018 I just want to have the same thing as the official and I'm looking for a sharing with the installation of the bonus Link to comment Share on other sites More sharing options...
ManiacRobert 429 Posted May 18, 2018 Share Posted May 18, 2018 if (pkAttacker->IsPC() == true) { iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_HUMAN)) / 100; switch (pkAttacker->GetJob()) { case JOB_WARRIOR: iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_WARRIOR)) / 100; break; case JOB_ASSASSIN: iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_ASSASSIN)) / 100; break; case JOB_SURA: iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_SURA)) / 100; break; case JOB_SHAMAN: iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_SHAMAN)) / 100; break; #ifdef ENABLE_WOLFMAN_CHARACTER case JOB_WOLFMAN: // TODO: 수인족 저항 처리 iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_WOLFMAN)) / 100; break; #endif } } iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_HUMAN)) / 100; GL 2 Link to comment Share on other sites More sharing options...
Natox 18 Posted May 19, 2018 Author Share Posted May 19, 2018 (edited) I have this problem :/ https://metin2.download/picture/W9Pvbo2O2j8qI05mCZMfITr7yX3jCQ6T/.png https://metin2.download/picture/VQBCkilDd3R0oMO3vn58O9X9bYUP86q4/.png Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Silver Sonitex 1444 Posted May 19, 2018 Silver Share Posted May 19, 2018 Why don't you check the tutorial for adding the Magic Reduction bonus? I think you forgot to edit enum EApplyTypes. And I do not recommend to add a new bonus somewhere in the middle of others. Link to comment Share on other sites More sharing options...
Natox 18 Posted May 19, 2018 Author Share Posted May 19, 2018 The problem is that I am not a pro in C ++ Link to comment Share on other sites More sharing options...
[Pro]Lord 6 Posted May 19, 2018 Share Posted May 19, 2018 (edited) 10 hours ago, Natox said: I have this problem :/ https://metin2.download/picture/W9Pvbo2O2j8qI05mCZMfITr7yX3jCQ6T/.png https://metin2.download/picture/VQBCkilDd3R0oMO3vn58O9X9bYUP86q4/.png ServerSource / Common / length.h find : POINT_MAX_NUM You will find a number beside it try changing it to 255 . Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Natox 18 Posted May 19, 2018 Author Share Posted May 19, 2018 The compilation to work, so I have nothing else to change for the bonus ? Link to comment Share on other sites More sharing options...
Management Karbust 4913 Posted May 20, 2018 Management Share Posted May 20, 2018 On 5/18/2018 at 11:16 PM, ManiacRobert said: if (pkAttacker->IsPC() == true) { iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_HUMAN)) / 100; switch (pkAttacker->GetJob()) { case JOB_WARRIOR: iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_WARRIOR)) / 100; break; case JOB_ASSASSIN: iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_ASSASSIN)) / 100; break; case JOB_SURA: iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_SURA)) / 100; break; case JOB_SHAMAN: iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_SHAMAN)) / 100; break; #ifdef ENABLE_WOLFMAN_CHARACTER case JOB_WOLFMAN: // TODO: 수인족 저항 처리 iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_WOLFMAN)) / 100; break; #endif } } iAtk -= (iAtk * pkVictim->GetPoint(POINT_RESIST_HUMAN)) / 100; GL Thanks, worked like a charm! 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