randell1993 Posted November 19, 2011 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 76 Reputation: 4 Joined: 11/15/11 Last Seen: January 2 Share Posted November 19, 2011 (edited) Im looking on battle.c but cant find where to edit the formula im asking this because on my server crit doesnt increase the dmage but halves it ironic right Edited November 19, 2011 by randell1993 Quote Link to comment Share on other sites More sharing options...
0 darkmeistersp Posted November 19, 2011 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 70 Reputation: 12 Joined: 11/18/11 Last Seen: November 3, 2015 Share Posted November 19, 2011 The critical formula is located on status.c. I think you are looking for this: case BL_MOB: if(battle_config.mob_critical_rate != 100) status->cri = status->cri*battle_config.mob_critical_rate/100; if(!status->cri && battle_config.mob_critical_rate) status->cri = 10; break; case BL_PC: //Players don't have a critical adjustment setting as of yet. break; default: if(battle_config.critical_rate != 100) status->cri = status->cri*battle_config.critical_rate/100; if (!status->cri && battle_config.critical_rate) status->cri = 10; } The formula for players starts when it says default: It is located in the status_calc_misc function. Quote Link to comment Share on other sites More sharing options...
0 randell1993 Posted November 19, 2011 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 76 Reputation: 4 Joined: 11/15/11 Last Seen: January 2 Author Share Posted November 19, 2011 uhm this isnt what im looking for sorry for misleading title but i want to adjust the critical damage Quote Link to comment Share on other sites More sharing options...
0 Shinryo Posted November 19, 2011 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 61 Reputation: 153 Joined: 11/10/11 Last Seen: June 1, 2020 Share Posted November 19, 2011 Check 'battle_calc_weapon_damage' in 'battle.c' and search everything that has to do with 'flag.cri'. Besides that, what do you mean with 'instead of increasing'. As far as I remember this kind of behavior (increase damage while not ignore defense) is only available in renewal mechanics which aren't implemented in eAthena, yet. What revision are you using anyway? There are so much possibilites and the only way to find out why it behaves the way you saw it on your server, is to simply provide more information. Quote Link to comment Share on other sites More sharing options...
Question
randell1993
Im looking on battle.c but cant find where to edit the formula
im asking this because on my server crit doesnt increase the dmage but halves it ironic right
Edited by randell1993Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.