Jump to content
  • 0
Sign in to follow this  
Svanhild

How to make RK_ENCHANTBLADE buff affect skills damage too

Question

Good day guys, I just need a little help here. I wanna make Enchantblade skill buff increase skills damage too. Currently (default) it only adds additional damage to your normal attacks base on how much INT/matk you have. Well, I want the same formula applied to buff all damages including skills, not just normal atk. I've been trying to do a custom code but never worked. Help!

 

base on battle.c

if( sc->data[SC_ENCHANTBLADE] ) {//[( ( Skill Lv x 20 ) + 100 ) x ( casterBaseLevel / 150 )] + casterInti = ( sc->data[SC_ENCHANTBLADE]->val1 * 20 + 100 ) * status->get_lv(src) / 150 + status_get_int(src);i = i - status->get_total_mdef(target) + status->get_matk(src, 2);if( i )	ATK_ADD(i);}

I've also checked status.c made a custom code but it doesn't seem to work like it should and it crashes, so yeah I need help.

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

From:

 

 

       	 if( !skill_id ) {                if( sc->data[SC_ENCHANTBLADE] ) {                    //[( ( Skill Lv x 20 ) + 100 ) x ( casterBaseLevel / 150 )] + casterInt                    i = ( sc->data[SC_ENCHANTBLADE]->val1 * 20 + 100 ) * status->get_lv(src) / 150 + status_get_int(src);                    i = i - status->get_total_mdef(target) + status->get_matk(src, 2);                    if( i )                        ATK_ADD(i);                }                if( sc->data[SC_GIANTGROWTH] && rnd()%100 < 15 )                    ATK_ADDRATE(200); // Triple Damage            }

 

To:

 

 

       	 if( sc->data[SC_ENCHANTBLADE] ) {                //[( ( Skill Lv x 20 ) + 100 ) x ( casterBaseLevel / 150 )] + casterInt                i = ( sc->data[SC_ENCHANTBLADE]->val1 * 20 + 100 ) * status->get_lv(src) / 150 + status_get_int(src);                i = i - status->get_total_mdef(target) + status->get_matk(src, 2);                if( i )                    ATK_ADD(i);            }            if( !skill_id ) {                if( sc->data[SC_GIANTGROWTH] && rnd()%100 < 15 )                    ATK_ADDRATE(200); // Triple Damage            }

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.