Rivers Posted June 10, 2020 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 244 Reputation: 58 Joined: 12/04/13 Last Seen: Sunday at 11:53 AM Share Posted June 10, 2020 (edited) Does anyone know how I might be able to add stats, or a percentage of stats to each Soul link? if (skill_id == AS_SONICBLOW && sc->data[SC_SPIRIT]->val2 == SL_ASSASIN) { ATK_ADDRATE(wd->damage, wd->damage2, map_flag_gvg2(src->m) ? 25 : 100); //+25% dmg on woe/+100% dmg on nonwoe RE_ALLATK_ADDRATE(wd, map_flag_gvg2(src->m) ? 25 : 100 + &battle_config.delay_rate,100); //+25% dmg on woe/+100% dmg on nonwoe +-100% delay rate Edited June 10, 2020 by Rivers Quote Link to comment Share on other sites More sharing options...
0 Dazzu Posted June 18, 2020 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 12 Reputation: 3 Joined: 04/29/14 Last Seen: May 23, 2023 Share Posted June 18, 2020 In status.cpp, under the status_calc_x function. eg. Increasing STR by 10% while under the Assassin Soul Link effect would require the changes be made under the status_calc_str function static unsigned short status_calc_str(struct block_list *bl, struct status_change *sc, int str) { ... if(sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2==SL_ASSASIN) str += (str * 20) / 100; ... } Quote Link to comment Share on other sites More sharing options...
Question
Rivers
Does anyone know how I might be able to add stats, or a percentage of stats to each Soul link?
if (skill_id == AS_SONICBLOW && sc->data[SC_SPIRIT]->val2 == SL_ASSASIN) { ATK_ADDRATE(wd->damage, wd->damage2, map_flag_gvg2(src->m) ? 25 : 100); //+25% dmg on woe/+100% dmg on nonwoe RE_ALLATK_ADDRATE(wd, map_flag_gvg2(src->m) ? 25 : 100 + &battle_config.delay_rate,100); //+25% dmg on woe/+100% dmg on nonwoe +-100% delay rate
Link to comment
Share on other sites
1 answer 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.