Jump to content
  • 0

Sonic Blow


Rage Guy

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  354
  • Reputation:   3
  • Joined:  02/17/13
  • Last Seen:  

I Want make sonic blow less damage



I Want make its damage like [ its normal is 100% - i want it 75% ]

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   6
  • Joined:  08/01/12
  • Last Seen:  

Search this in src/map/battle.c:

if (bl->type == BL_PC) {
		sd=(struct map_session_data *)bl;
		//Special no damage states
		if(flag&BF_WEAPON && sd->special_state.no_weapon_damage)
			DAMAGE_SUBRATE(sd->special_state.no_weapon_damage)

		if(flag&BF_MAGIC && sd->special_state.no_magic_damage)
			DAMAGE_SUBRATE(sd->special_state.no_magic_damage)

		if(flag&BF_MISC && sd->special_state.no_misc_damage)
			DAMAGE_SUBRATE(sd->special_state.no_misc_damage)

		if(!damage) return 0;
	}

Add below this:
 

 

if (skill_id == AS_SONICBLOW)
    damage = damage * 75/100;

 

 

I didnt tested it, but I think It will run :)

Edited by Tucsus
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  354
  • Reputation:   3
  • Joined:  02/17/13
  • Last Seen:  

where to add thise

if (skill_id == AS_SONICBLOW)
    damage = damage * 75/100;

 

under it?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   6
  • Joined:  08/01/12
  • Last Seen:  

Add under this:

 

if (bl->type == BL_PC) {
		sd=(struct map_session_data *)bl;
		//Special no damage states
		if(flag&BF_WEAPON && sd->special_state.no_weapon_damage)
			DAMAGE_SUBRATE(sd->special_state.no_weapon_damage)

		if(flag&BF_MAGIC && sd->special_state.no_magic_damage)
			DAMAGE_SUBRATE(sd->special_state.no_magic_damage)

		if(flag&BF_MISC && sd->special_state.no_misc_damage)
			DAMAGE_SUBRATE(sd->special_state.no_misc_damage)

		if(!damage) return 0;
	}

 

yep :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  354
  • Reputation:   3
  • Joined:  02/17/13
  • Last Seen:  

are u sure its working ? ==

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   6
  • Joined:  08/01/12
  • Last Seen:  

If it dont work try this:

 

Make sure you recompile after edit

if (skill_id == AS_SONICBLOW)
    return damage * 75/100;
Edited by Tucsus
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...