Barissa 2 Posted April 11, 2020 Share Posted April 11, 2020 (edited) Hi Guys ! I want to change to Bonus of some Skills in Party ( Leadership ) Here a Screenshot, the bonus at the moment is: +7 Attack Speed where can i change that ? (for example to monster) thank you for help guys ! Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Barissa 2 Posted April 23, 2020 Author Share Posted April 23, 2020 up Link to comment Share on other sites More sharing options...
Barissa 2 Posted May 11, 2020 Author Share Posted May 11, 2020 up Link to comment Share on other sites More sharing options...
anon 2 Posted May 11, 2020 Share Posted May 11, 2020 I think POINT_PARTY_HASTE_BONUS gives speed attack. Value of that bonus you can find in void CParty::ComputeRolePoint(LPCHARACTER ch, BYTE bRole, bool bAdd) here case PARTY_ROLE_HASTE: { int iBonus = (int) (1+5*k); if (ch->GetPoint(POINT_PARTY_HASTE_BONUS) != iBonus) { ch->PointChange(POINT_PARTY_HASTE_BONUS, iBonus - ch->GetPoint(POINT_PARTY_HASTE_BONUS)); ch->ComputePoints(); } } break; If you want to change POINT_PARTY_HASTE_BONUS which gives attack speed to something else there are couple ways to do this. So for example If you want to change POINT_PARTY_HASTE_BONUS from attack speed to strong against monsters: First one is about changing where bonus you want is calculated to do this: you need to remove PointChange(POINT_ATT_SPEED, GetPoint(POINT_PARTY_HASTE_BONUS)); from void CHARACTER::ComputePoints() and then add value of POINT_PARTY_HASTE_BONUS during calculation of attack bonus so in int CalcAttBonus(LPCHARACTER pkAttacker, LPCHARACTER pkVictim, int iAtk) you change iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_MONSTER)) / 100; to iAtk += (iAtk * (pkAttacker->GetPoint(POINT_ATTBONUS_MONSTER) + pkAttacker->GetPoint(POINT_PARTY_HASTE_BONUS))) / 100; after this you should see diference in dmg but also there is another way. little bit different where you have POINT_ATTBONUS_MONSTER as value of that particular bonus and when ComputePoints is invoken POINT_PARTY_HASTE_BONUS is added to POINT_ATTBONUS_MONSTER bonus value. In this case you can see real bonus value in client in your bonus value window without adding value of POINT_PARTY_HASTE_BONUS. But probably you will send more data during ComputePoints. If you want second version tell me then I will try to add some code. Also probably there are another ways to do this kind of stuff. 1 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