darking123 Posted January 20, 2013 Posted January 20, 2013 (edited) how will i decrease firebolt damage?? is it in battle.c? eathena svn Edited January 20, 2013 by glemor123 Quote
Lilith Posted January 20, 2013 Posted January 20, 2013 see battle.c find case MG_FIREWALL:skillratio -= 50; break; add after case MG_FIREBOLT:skillratio -= (how many decrease); break; Quote
darking123 Posted January 21, 2013 Author Posted January 21, 2013 how will i edit this ?? case MG_FIREWALL: skillratio -= 50; if( sc && sc->data[sC_PYROTECHNIC_OPTION] ) skillratio += skillratio * sc->data[sC_PYROTECHNIC_OPTION]->val3 / 100; break; case MG_FIREBOLT: if ( sc ) { if ( sc->data[sC_SPELLFIST] && (!sd || !sd->state.autocast)) { skillratio = sc->data[sC_SPELLFIST]->val2 * 50 + sc->data[sC_SPELLFIST]->val4 * 100; ad.div_ = 1; ad.flag = BF_WEAPON|BF_SHORT; ad.type = 0; } if( sc->data[sC_PYROTECHNIC_OPTION] ) skillratio += skillratio * sc->data[sC_PYROTECHNIC_OPTION]->val3 / 100; } break; Quote
Lilith Posted January 21, 2013 Posted January 21, 2013 but you said : eathena svn its not from eathena =\ in this just add: ... case MG_FIREBOLT: skillratio -= (how many decrease); if ( sc ) { ... Quote
Mystery Posted January 21, 2013 Posted January 21, 2013 how will i decrease firebolt damage?? is it in battle.c? eathena svn how will i edit this ?? but you said : eathena svn its not from eathena =\ in this just add: ... case MG_FIREBOLT: skillratio -= (how many decrease); if ( sc ) { ... What Lilith is trying to say is that there's no damage formula in battle.c in eAthena's SVN... in other words, you gotta add it yourself. So, please head to battle.c and find: switch(skill_num){ case MG_NAPALMBEAT: case MG_FIREBALL: skillratio += skill_lv*10-30; break; case MG_SOULSTRIKE: if (battle_check_undead(tstatus->race,tstatus->def_ele)) skillratio += 5*skill_lv; break; case MG_FIREWALL: skillratio -= 50; break; Under MG_FIREWALL, please add: case MG_FIREBOLT: skillratio -= 50; break; So that it'll look like so: switch(skill_num){ case MG_NAPALMBEAT: case MG_FIREBALL: skillratio += skill_lv*10-30; break; case MG_SOULSTRIKE: if (battle_check_undead(tstatus->race,tstatus->def_ele)) skillratio += 5*skill_lv; break; case MG_FIREWALL: skillratio -= 50; break; case MG_FIREBOLT: skillratio -= 50; break; then change the 50 to whatever you want. Higher it is, more damage firebolt will do. The less it is, the less damage it would do. Quote
darking123 Posted January 22, 2013 Author Posted January 22, 2013 what is the default value of skill ratio of firebolt?? Quote
Kilamonjaro Posted January 22, 2013 Posted January 22, 2013 I'd give it a try at 50 then change it up, but how do we accomplish this with rAthena? ..... >.>' My Aunt wants to know.... Quote
darking123 Posted February 11, 2013 Author Posted February 11, 2013 how will i decrease firebolt damage?? is it in battle.c? eathena svn how will i edit this ?? but you said : eathena svn its not from eathena =\ in this just add: ... case MG_FIREBOLT: skillratio -= (how many decrease); if ( sc ) { ... What Lilith is trying to say is that there's no damage formula in battle.c in eAthena's SVN... in other words, you gotta add it yourself. So, please head to battle.c and find: switch(skill_num){ case MG_NAPALMBEAT: case MG_FIREBALL: skillratio += skill_lv*10-30; break; case MG_SOULSTRIKE: if (battle_check_undead(tstatus->race,tstatus->def_ele)) skillratio += 5*skill_lv; break; case MG_FIREWALL: skillratio -= 50; break; Under MG_FIREWALL, please add: case MG_FIREBOLT: skillratio -= 50; break; So that it'll look like so: switch(skill_num){ case MG_NAPALMBEAT: case MG_FIREBALL: skillratio += skill_lv*10-30; break; case MG_SOULSTRIKE: if (battle_check_undead(tstatus->race,tstatus->def_ele)) skillratio += 5*skill_lv; break; case MG_FIREWALL: skillratio -= 50; break; case MG_FIREBOLT: skillratio -= 50; break; then change the 50 to whatever you want. Higher it is, more damage firebolt will do. The less it is, the less damage it would do. this is what my mg_firebolt contains where to edit this case MG_FIREBOLT: if ( sc ) { if ( sc->data[sC_SPELLFIST] && (!sd || !sd->state.autocast)) { skillratio = sc->data[sC_SPELLFIST]->val2 * 50 + sc->data[sC_SPELLFIST]->val4 * 100; ad.div_ = 1; ad.flag = BF_WEAPON|BF_SHORT; ad.type = 0; } if( sc->data[sC_PYROTECHNIC_OPTION] ) skillratio += skillratio * sc->data[sC_PYROTECHNIC_OPTION]->val3 / 100; } break; Quote
Question
darking123
how will i decrease firebolt damage?? is it in battle.c?
eathena svn
Edited by glemor1237 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.