Jump to content
  • 0

how to Edit critical formula


randell1993

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  76
  • Reputation:   4
  • Joined:  11/15/11
  • Last Seen:  

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
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  70
  • Reputation:   12
  • Joined:  11/18/11
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  76
  • Reputation:   4
  • Joined:  11/15/11
  • Last Seen:  

uhm this isnt what im looking for sorry for misleading title but i want to adjust the critical damage

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  61
  • Reputation:   153
  • Joined:  11/10/11
  • Last Seen:  

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.

Link to comment
Share on other sites

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.

×
×
  • Create New...