Jump to content
  • 0
Sign in to follow this  
pink8791

Dragon's Breath, help

Question

How to modify DragonBreath reduce damage by bSubEle in battle.c?
I want to add effects to  Jakk_Card(bSubEle,Ele_Fire) or Marse_Card(bSubEle,Ele_Water) by damage injury, as official set up

 

 

thx a lot

 

 

 

battle.c
 
  case RK_DRAGONBREATH:
case RK_DRAGONBREATH_WATER:
md.damage = ((status_get_hp(src) / 50) + (status_get_max_sp(src) / 4)) * skill_lv;
RE_LVL_MDMOD(150);
if (sd) md.damage = md.damage * (95 + 5 * pc->checkskill(sd,RK_DRAGONTRAINING)) / 100;
md.flag |= BF_LONG|BF_WEAPON;
do { int64 temp__ = (sd->bonus.long_attack_atk_rate); md.damage+= md.damage*temp__/100; if(md.flag&BF_LONG) md.damage2+= md.damage2*temp__/100; } while(0); // Nerguri ADD
if( sc && sc->data[sC_MTF_RANGEATK] ) do { int64 temp__ = (25); md.damage+= md.damage*temp__/100; if(md.flag&BF_LONG) md.damage2+= md.damage2*temp__/100; } while(0); // Nerguri ADD
break;
 

 

battle.c
case RK_DRAGONBREATH:
case RK_DRAGONBREATH_WATER:
wd.damage = ((status_get_hp(src) / 50) + (status_get_max_sp(src) / 4)) * skill_lv;
if (sd) wd.damage = battle->attr_fix(src, target, wd.damage, s_ele, tstatus->def_ele, tstatus->ele_lv);
RE_LVL_DMOD(150);
if (sd) wd.damage = wd.damage * (95 + 5 * pc->checkskill(sd,RK_DRAGONTRAINING)) / 100;
wd.flag |= BF_LONG|BF_WEAPON;
break;

 

dragon.txt

Edited by pink8791

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

 

Renewal or Pre-Renewal?

Renewal T^T

 

I'll try this after i get back home.

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.