pink8791 0 Posted October 27, 2015 (edited) 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 October 27, 2015 by pink8791 Quote Share this post Link to post Share on other sites
0 Jedzkie 58 Posted October 27, 2015 Renewal or Pre-Renewal? Quote Share this post Link to post Share on other sites
0 pink8791 0 Posted October 27, 2015 Renewal or Pre-Renewal? Renewal T^T Quote Share this post Link to post Share on other sites
0 Jedzkie 58 Posted October 28, 2015 Renewal or Pre-Renewal? Renewal T^T I'll try this after i get back home. Quote Share this post Link to post Share on other sites
0 pink8791 0 Posted October 28, 2015 Renewal or Pre-Renewal? Renewal T^T I'll try this after i get back home. thx!! i like you >_< Quote Share this post Link to post Share on other sites
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
dragon.txt
Edited by pink8791Share this post
Link to post
Share on other sites