Jump to content
  • 0

Increase Critical Damage Double


eusouteupai

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  09/19/16
  • Last Seen:  

Hello Rathena, i implement the double critical damage in my server, using renewal, the doubt is: How i can "buff" the damage of the critical damage for everybody? For example, the critical damage is 1,4x for default, right? i Want put 4.0 for example.

Tks.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  398
  • Reputation:   246
  • Joined:  07/04/19
  • Last Seen:  

1 hour ago, eusouteupai said:

Hello Rathena, i implement the double critical damage in my server, using renewal, the doubt is: How i can "buff" the damage of the critical damage for everybody? For example, the critical damage is 1,4x for default, right? i Want put 4.0 for example.

Tks.

you can add bonus stats on the item 

bonus bCritAtkRate,10;
 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  09/19/16
  • Last Seen:  

No... It's not this way, i want modify in source of the game, and increase the critical for everybody, not item per item..

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

5 hours ago, eusouteupai said:

No... It's not this way, i want modify in source of the game, and increase the critical for everybody, not item per item..

So you want everyone to start with like +10% crit chance ? or just damage?

 

pretty sure this is your damage formula for crit

battle.c

#ifdef RENEWAL
	if (!skill_id && is_attack_critical(&wd, src, target, skill_id, skill_lv, false)) {
		if (sd) { //Check for player so we don't crash out, monsters don't have bonus crit rates [helvetica]
			wd.damage = (int)floor((float)((wd.damage * 140) / 100 * (100 + sd->bonus.crit_atk_rate)) / 100);
			if (is_attack_left_handed(src, skill_id))
				wd.damage2 = (int)floor((float)((wd.damage2 * 140) / 100 * (100 + sd->bonus.crit_atk_rate)) / 100);
		} else
			wd.damage = (int)floor((float)(wd.damage * 140) / 100);
	}
#endif

that 140 is the main thing you wanna look at

 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  09/19/16
  • Last Seen:  

1 hour ago, Naruto said:

So you want everyone to start with like +10% crit chance ? or just damage?

 

pretty sure this is your damage formula for crit

battle.c


#ifdef RENEWAL
	if (!skill_id && is_attack_critical(&wd, src, target, skill_id, skill_lv, false)) {
		if (sd) { //Check for player so we don't crash out, monsters don't have bonus crit rates [helvetica]
			wd.damage = (int)floor((float)((wd.damage * 140) / 100 * (100 + sd->bonus.crit_atk_rate)) / 100);
			if (is_attack_left_handed(src, skill_id))
				wd.damage2 = (int)floor((float)((wd.damage2 * 140) / 100 * (100 + sd->bonus.crit_atk_rate)) / 100);
		} else
			wd.damage = (int)floor((float)(wd.damage * 140) / 100);
	}
#endif

that 140 is the main thing you wanna look at

 

 

This works! Thanks a lot!

Is to everybody hit + in te critical for default.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

3 hours ago, eusouteupai said:

This works! Thanks a lot!

Is to everybody hit + in te critical for default.

Should be as long as you have critical hit enable in your battle conf and have renewal settings completly turned on

 

 

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...