Jump to content
  • 0

Cap Skill Damage


Bringer

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  746
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

Hello my Server is 250/120 300 all stats

I want to cap the dmg of Asura Acid Demo Soul Breaker Bowling Bash To Max Damage 100K Only even the player using Ice Pick

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  822
  • Reputation:   237
  • Joined:  01/30/13
  • Last Seen:  

I think easiest way to do that would be to add some code in battle_calc_attack.

You have already a min damage check there:

	if( d.damage + d.damage2 < 1 )
	{	//Miss/Absorbed
		//Weapon attacks should go through to cause additional effects.
		if (d.dmg_lv == ATK_DEF /*&& attack_type&(BF_MAGIC|BF_MISC)*/) // Isn't it that additional effects don't apply if miss?
			d.dmg_lv = ATK_MISS;
		d.dmotion = 0;
	}

above that I guess you could add something like:

if(d.damage > 100000) d.damage = 100000;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  746
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

@Playtester

on what part on this code

	if( d.damage + d.damage2 < 1 )
	{	//Miss/Absorbed
		//Weapon attacks should go through to cause additional effects.
		if (d.dmg_lv == ATK_DEF /*&& attack_type&(BF_MAGIC|BF_MISC)*/) // Isn't it that additional effects don't apply if miss?
			d.dmg_lv = ATK_MISS;
		d.dmotion = 0;
	}

i will add this 

if(d.damage > 100000) d.damage = 100000;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  746
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

On 2/11/2017 at 1:46 AM, Playtester said:

As I said: Above

ok i already test it but the code all CAP skill damage Sir

there anyway i can only Cap Soul Breaker and Blowing Bash ?

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  822
  • Reputation:   237
  • Joined:  01/30/13
  • Last Seen:  

The current skill_id is in the variable "skill_id". It's avaiable in that function.

e.g.

if(skill_id == KN_BOWLINGBASH && d.damage > 100000)

 

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