darking123 Posted January 20, 2013 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 931 Reputation: 13 Joined: 12/20/11 Last Seen: November 21, 2020 Share 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 Link to comment Share on other sites More sharing options...
Lilith Posted January 20, 2013 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 407 Reputation: 159 Joined: 11/18/11 Last Seen: November 15, 2014 Share 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 Link to comment Share on other sites More sharing options...
darking123 Posted January 21, 2013 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 931 Reputation: 13 Joined: 12/20/11 Last Seen: November 21, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
Lilith Posted January 21, 2013 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 407 Reputation: 159 Joined: 11/18/11 Last Seen: November 15, 2014 Share 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 Link to comment Share on other sites More sharing options...
Mystery Posted January 21, 2013 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share 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 Link to comment Share on other sites More sharing options...
darking123 Posted January 22, 2013 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 931 Reputation: 13 Joined: 12/20/11 Last Seen: November 21, 2020 Author Share Posted January 22, 2013 what is the default value of skill ratio of firebolt?? Quote Link to comment Share on other sites More sharing options...
Kilamonjaro Posted January 22, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 8 Reputation: 0 Joined: 01/18/13 Last Seen: February 2, 2013 Share 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 Link to comment Share on other sites More sharing options...
darking123 Posted February 11, 2013 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 931 Reputation: 13 Joined: 12/20/11 Last Seen: November 21, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
Question
darking123
how will i decrease firebolt damage?? is it in battle.c?
eathena svn
Edited by glemor123Link to comment
Share on other sites
7 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.