Jump to content
  • 0

how to Edit critical formula


Question

Posted (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 by randell1993

3 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...