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?

Share this post


Link to post
Share on other sites
  • 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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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