Jump to content
  • 0

Reduce damage


Ninjamon

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   2
  • Joined:  03/06/12
  • Last Seen:  

Like Lilith's Skill Damage http://rathena.org/board/topic/62238-manage-skill-damage-21/

is there a source code that reduces a specific skill? Example, ORIGINAL DAMAGE -10% = NEW DAMAGE.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


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

Number of hits is handled in the skill_db.txt: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/db/pre-re/skill_db.txt

469,9,8,1,-2,0,0,10,1:2:3:4:5:6:7:8:9:10,yes,0,0,0,magic,0,    SL_SMA,Esma

But damage of each hit is handled in battle.c: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/src/map/battle.c

                    case SL_SMA:

                        skillratio += -60 + status_get_lv(src); //Base damage is 40% + lv%

                        break;

Link to comment
Share on other sites


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

All damage is handled in battle.c, if you want to reduce the damage of a specific skill you'd usually just search for the skill constant to find the damage formula and then modify that.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   2
  • Joined:  03/06/12
  • Last Seen:  

All damage is handled in battle.c, if you want to reduce the damage of a specific skill you'd usually just search for the skill constant to find the damage formula and then modify that.

 

Like reducing the hit of the skill? Example Esma hits x10 i will reduce it to 5?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   2
  • Joined:  03/06/12
  • Last Seen:  

up

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