Jump to content
  • 0

Modifying skill damage


bodibastos

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   0
  • Joined:  10/13/12
  • Last Seen:  

I'd like to take the skill Crimson Rock (2800% MATK damage) and change it to 1400% ATK damage and 1400% MATK damage. I know how to lower the MATK value, but how do I add the ATK?

Thanks.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   0
  • Joined:  10/13/12
  • Last Seen:  

Can anyone help me?

Sorry for bumping, but it's already been 4 days

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

battle.c

struct Damage battle_calc_magic_attack

   #ifdef RENEWAL
 ad.damage = skill_lv * (sstatus->matk_min + sstatus->matk_max);
   #else
 ad.damage = status_get_lv(src) + sstatus->int_ + skill_lv * 10;

modify it to be something like

if( skill_num == WL_CRIMSONROCK )
{
    ad.damage = .... atk/2 + matk/2
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

depend witch atk you want but you can take a look at :

status_get_batk

status_get_watk

status_get_watk2

to get the battle-status atk of src and then alter the damage formula. (or sstatus->batk etc..) : http://rathena.sourceforge.net/doxygen/structstatus__data.html

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