Begin 11 Posted May 26, 2018 Hi All, I am having a difficulty on applying +15% damage when soul linked a Sniper. Can you help me resolve this? case MA_SHARPSHOOTING: skillratio += 100 + 50 * skill_lv; if( sd->sc.data[SC_SOULLINK] && sd->sc.data[SC_SOULLINK]->val2 == SL_HUNTER) skillratio += 15; break; When I add skillratio += 15; there is no changes. I compiled it before testing. I am currently fixing it but if you know the answer, can you help me as I don't know how to do it correctly. Thank you. Quote Share this post Link to post Share on other sites
0 bWolfie 138 Posted May 28, 2018 MA_SHARPSHOOTING is mercenary you need SN_SHARPSHOOTING Quote Share this post Link to post Share on other sites
0 Begin 11 Posted June 17, 2018 Hello @Myriad, Here is the whole code for sharpshooting: case SN_SHARPSHOOTING: case MA_SHARPSHOOTING: skillratio += 100 + 50 * skill_lv; if (sc && sc->data[SC_SOULLINK] && sc->data[SC_SOULLINK]->val2 == SL_HUNTER) skillratio += 10 + 10 * skill_lv; break; the bold one is my edited line. Am I correct on the formula? Quote Share this post Link to post Share on other sites
0 Winterfox 83 Posted June 17, 2018 (edited) If you want to increase the skillratio on a linked char by 15% shouldnt it look more like this? skillratio += 100 + 50 * skill_lv; if( sd->sc.data[SC_SOULLINK] && sd->sc.data[SC_SOULLINK]->val2 == SL_HUNTER) skillratio *= 1.15; Edited June 17, 2018 by Winterfox Quote Share this post Link to post Share on other sites
0 Begin 11 Posted June 17, 2018 Will try that, Winterfox. Thanks. Quote Share this post Link to post Share on other sites
0 Begin 11 Posted June 18, 2018 It works! Thanks for the help! Quote Share this post Link to post Share on other sites
0 Blinzer 6 Posted July 5, 2018 lol skillratio += 15 would just add 15% to the total ratio, so if a skill had a total ratio of 300 you would only be adding 5% more damage it would have been skillratio += skillratio * 15/100 Quote Share this post Link to post Share on other sites
Hi All,
I am having a difficulty on applying +15% damage when soul linked a Sniper.
Can you help me resolve this?
When I add skillratio += 15; there is no changes. I compiled it before testing.
I am currently fixing it but if you know the answer, can you help me as I don't know how to do it correctly.
Thank you.
Share this post
Link to post
Share on other sites