Jump to content
  • 0

Increasing Skill Damage


Keim

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  221
  • Reputation:   12
  • Joined:  12/18/11
  • Last Seen:  

Can anyone tell me how to make the skill damage higher? I've changed the battle.c but I errored on recompiling so... And i want to change the skill damage of all skills..not just one.

Edited by Keim
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  52
  • Reputation:   6
  • Joined:  01/06/12
  • Last Seen:  

In battle.c find

int battle_calc_damage(struct block_list *src,struct block_list *bl,struct Damage *d,int damage,int skill_num,int skill_lv)

Then go to the end of that function:

status_damage(src, s_bl, damage, 0, clif_damage(s_bl, s_bl, gettick(), 500, 500, damage, -1, 0, 0), 0);
return ATK_NONE;
  }
 }
}
return damage;
}

and change return damage; to:

if(skill_num) return damage */+- CONST;

else return damage;

You actually don't even need that 'else', but it's for clarity.

Edit:

You should read that function over, just in case there's some skills that return damage beforehand (like Pressure) that you want to modify.

Edited by Variant
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  221
  • Reputation:   12
  • Joined:  12/18/11
  • Last Seen:  

Which skills?

All skills. lol

In battle.c find

int battle_calc_damage(struct block_list *src,struct block_list *bl,struct Damage *d,int damage,int skill_num,int skill_lv)

Then go to the end of that function:

status_damage(src, s_bl, damage, 0, clif_damage(s_bl, s_bl, gettick(), 500, 500, damage, -1, 0, 0), 0);
return ATK_NONE;
  }
 }
}
return damage;
}

and change return damage; to:

if(skill_num) return damage */+- CONST;

else return damage;

You actually don't even need that 'else', but it's for clarity.

Edit:

You should read that function over, just in case there's some skills that return damage beforehand (like Pressure) that you want to modify.

Thanks. Do i need to edit anything there? Like the */+- CONST? I mean do i need to set it to a number like 80 or something for it to be high? Or shall i leave it with */+- CONST?. Thanks

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  52
  • Reputation:   6
  • Joined:  01/06/12
  • Last Seen:  

Const = any constant, and the +/-* are the operators. You change that to whatever you want to alter the damage by. So for example, if you wanted to double the damage you'd do return damage * 2;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

Yeah, I sorta read that afterwards.. LOL >> *Facepalm*

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  221
  • Reputation:   12
  • Joined:  12/18/11
  • Last Seen:  

lol xD OK, thanks all.

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