Jump to content
  • 0

How to reduce asura strike damage?


icegrave01

Question


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  69
  • Reputation:   2
  • Joined:  05/29/12
  • Last Seen:  

Hi sir/mam how to reduce asura strike damage SP limit is 6k? 

 

here's my code in battle c.

i dunno if this working or not?

 

case MO_EXTREMITYFIST:

if(sstatus->sp <= 6000)
skillratio += 100 * (7 + sstatus->sp / 10);
else // Asura strike SP damage max is 6k
skillratio += 100 * (7 + 6000 / 10);
if (tsd)
skillratio /= 2; //Half damage for players
skillratio = min(500000,skillratio); //We stop at roughly 50k SP for overflow protection
break;
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  258
  • Reputation:   54
  • Joined:  01/09/12
  • Last Seen:  

Or you can try use: 

skill_damage_db.txt

 

must activate that db from:
src/config/core.h

Find and enable(when enable save and recompile): 

/// Uncomment to enable skills damage adjustments
/// By enabling this, db/skill_damage.txt and the skill_damage mapflag will adjust the
/// damage rate of specified skills.
//#define ADJUST_SKILL_DAMAGE
Edited by Helly
  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

 

Or you can try use: 

skill_damage_db.txt

 

must activate that db from:

src/config/core.h

Find and enable(when enable save and recompile): 

/// Uncomment to enable skills damage adjustments
/// By enabling this, db/skill_damage.txt and the skill_damage mapflag will adjust the
/// damage rate of specified skills.
//#define ADJUST_SKILL_DAMAGE

He's asking about SP damage.

 

Try this

 

case MO_EXTREMITYFIST:
if(sstatus->sp <= 6000)
skillratio += 100 * (7 + sstatus->sp / 10);
else // Asura strike SP damage max is 6k
skillratio += 100 * (7 + 6000 / 10);
skillratio = min(500000,skillratio); //We stop at roughly 50k SP for overflow protection
break;

If you want to test if it's working try. Make one champion with 6K SP and another one with over 6K SP. If the damage is the same, then it's working.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  199
  • Reputation:   113
  • Joined:  12/24/11
  • Last Seen:  

Try this

 

Find in battle.c

case MO_EXTREMITYFIST:
skillratio += 100*(7 + sstatus->sp/10);
skillratio = min(500000,skillratio); //We stop at roughly 50k SP for overflow protection
break;

Change:

skillratio += 100*(7 + sstatus->sp/10);

To:

skillratio += 100*(7 + min(sstatus->sp,6000)/10);
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  69
  • Reputation:   2
  • Joined:  05/29/12
  • Last Seen:  

 

 

Or you can try use: 

skill_damage_db.txt

 

must activate that db from:

src/config/core.h

Find and enable(when enable save and recompile): 

/// Uncomment to enable skills damage adjustments
/// By enabling this, db/skill_damage.txt and the skill_damage mapflag will adjust the
/// damage rate of specified skills.
//#define ADJUST_SKILL_DAMAGE

He's asking about SP damage.

 

Try this

 

case MO_EXTREMITYFIST:
if(sstatus->sp <= 6000)
skillratio += 100 * (7 + sstatus->sp / 10);
else // Asura strike SP damage max is 6k
skillratio += 100 * (7 + 6000 / 10);
skillratio = min(500000,skillratio); //We stop at roughly 50k SP for overflow protection
break;

If you want to test if it's working try. Make one champion with 6K SP and another one with over 6K SP. If the damage is the same, then it's working.

 

Not working either

Maybe i should change this??

battle c. 

static int battle_calc_attack_skill_ratio(struct Damage wd, struct block_list *src,struct block_list *target,uint16 skill_id,uint16 skill_lv)
{
	struct map_session_data *sd = BL_CAST(BL_PC, src);
	struct map_session_data *tsd = BL_CAST(BL_PC, src);

 

Try this

 

Find in battle.c

case MO_EXTREMITYFIST:
skillratio += 100*(7 + sstatus->sp/10);
skillratio = min(500000,skillratio); //We stop at roughly 50k SP for overflow protection
break;

Change:

skillratio += 100*(7 + sstatus->sp/10);

To:

skillratio += 100*(7 + min(sstatus->sp,6000)/10);

Not working. 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  199
  • Reputation:   113
  • Joined:  12/24/11
  • Last Seen:  

It's working on my part. Did you recompile?

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  69
  • Reputation:   2
  • Joined:  05/29/12
  • Last Seen:  

It's working on my part. Did you recompile?

Yes i did. should i recompile again?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  258
  • Reputation:   54
  • Joined:  01/09/12
  • Last Seen:  

well the simply way that i do to reduce damage in some skills was reduce The SP and HP of thats jobs in here https://github.com/rathena/rathena/blob/master/db/re/job_basehpsp_db.txtso thats jobs get less SP i did to reduce damage and balance jobs like Sura Tiger Cannon and Rune Knight Dragon Breath i have done it about 5 years ago x.x i dont remeber the fully steps but you can try :)

Edited by Helly
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

Haxzor and mine are almost the same and both are working to me.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  69
  • Reputation:   2
  • Joined:  05/29/12
  • Last Seen:  

Haxzor and mine are almost the same and both are working to me.

It's working now. i miss some step to recompile xD Thank you everyone

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