Cheria Posted October 22, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 02/04/12 Last Seen: December 16, 2015 Share Posted October 22, 2012 Hello Everyone. I want to modify the damage of this 3 skills, but i cant find the damage formula on battle.c, or any other important .c This is the only formula i find but i suppose its related just with spellfist because i already changed the numbers and didnt work. I think its the same problem that other person haves with Jupitel thunder, i cant find it neither. case MG_COLDBOLT: { struct status_change *sc = status_get_sc(src); if ( sc && sc->count ) { if ( sc->data[sC_SPELLFIST] && mflag&BF_SHORT ) { skillratio += (sc->data[sC_SPELLFIST]->val4 * 100) + (sc->data[sC_SPELLFIST]->val2 * 100) - 100;// val4 = used bolt level, val2 = used spellfist level. [Rytech] ad.div_ = 1;// ad mods, to make it work similar to regular hits [Xazax] ad.flag = BF_WEAPON|BF_SHORT; ad.type = 0; } if( sc->data[sC_AQUAPLAY_OPTION] ) skillratio += skillratio * sc->data[sC_AQUAPLAY_OPTION]->val3 / 100; } } break; case MG_FIREBOLT: { struct status_change *sc = status_get_sc(src); if ( sc && sc->count ) { if ( sc->data[sC_SPELLFIST] && mflag&BF_SHORT ) { skillratio += (sc->data[sC_SPELLFIST]->val4 * 100) + (sc->data[sC_SPELLFIST]->val2 * 100) - 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; case MG_LIGHTNINGBOLT: { struct status_change *sc = status_get_sc(src); if ( sc && sc->count ) { if ( sc->data[sC_SPELLFIST] && mflag&BF_SHORT ) { skillratio += (sc->data[sC_SPELLFIST]->val4 * 100) + (sc->data[sC_SPELLFIST]->val2 * 100) - 100; ad.div_ = 1; ad.flag = BF_WEAPON|BF_SHORT; ad.type = 0; } if( sc->data[sC_GUST_OPTION] ) skillratio += skillratio * sc->data[sC_GUST_OPTION]->val2 / 100; } } break; Thank You! Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted October 22, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted October 22, 2012 (edited) If not mistaken. They don't have formula because they act as BF_MAGIC which if not defined will read your MATK as damage. as skill_attack(BF_MAGIC,src,src,bl,skillid,skilllv,tick,flag); Edited October 22, 2012 by darristan Quote Link to comment Share on other sites More sharing options...
Vach Posted October 22, 2012 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 326 Reputation: 19 Joined: 09/27/12 Last Seen: February 27, 2021 Share Posted October 22, 2012 Darristan is correct, those spells have their damage based off your MATK (100% per bolt) and therefore you'd have to re-create the skill calls to reduce your MATK similar to some other mage skills (I think Napalm Beat starts at a reduced percentage, I'm not sure off the top of my head). Another solution, one I'd recommend, is to reduce the amount of bolts based on skill level, such as 1 bolt per 2 skill levels, this would effectively halve the damage done at skill level 10 and doesn't require source editing. This can be done by editing your skill_db.txt. Let me know if you need help doing so and I'll show you how. Quote Link to comment Share on other sites More sharing options...
Mystery Posted October 22, 2012 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 October 22, 2012 If you wanna increase the damage, I recommend you take a look at this. Quote Link to comment Share on other sites More sharing options...
Question
Cheria
Hello Everyone.
I want to modify the damage of this 3 skills, but i cant find the damage formula on battle.c, or any other important .c
This is the only formula i find but i suppose its related just with spellfist because i already changed the numbers and didnt work.
I think its the same problem that other person haves with Jupitel thunder, i cant find it neither.
Thank You!
Link to comment
Share on other sites
3 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.