well ... I am not able to calculate the basic attack and the magic attack ... there is something wrong with my calculation ... maybe I am doing the wrong way.
so ... how to correctly calculate the magic attack correctly? (and also the basic attack) 😵
Hi guys
my sv is from December 2019 and is not with the updated SC_ system ... so far so good ...
However when adding some attributes in SC_MAXIMIZEPOWER, it does not work ...
original code
status->set_sc( BS_MAXIMIZE , SC_MAXIMIZEPOWER , SI_MAXIMIZE , SCB_REGEN );
my edit
status->set_sc( BS_MAXIMIZE , SC_MAXIMIZEPOWER , SI_MAXIMIZE , SCB_REGEN|SCB_AGI|SCB_DEX|SCB_STR|SCB_INT|SCB_BATK|SCB_MATK|SCB_SPEED );
so in the status_calc_matk function I put one of the attributes to be added, increasing the magic attack according to the skill level ...
if(sc->data[SC_MAXIMIZEPOWER]){ //--------------------------------------------------------------- up matak base skill_lv = pc->checkskill(sd,BS_MAXIMIZE); matk += 8 * skill_lv; printf("debug print "); }
however it did not work ... the debug print is show but the magic attack is not changed ...
well ... it makes me think that maybe this is not the right function ...
so I tried on:
status_calc_watk
status_calc_ematk
So when the ability is activated, the result is the same ... my debug message is displayed, but the status is not changed ...
this is funny because I added the condition in status_calc_int to add an attribute in INT and it works perfectly.
if(sc->data[SC_MAXIMIZEPOWER]){ skill_lv = pc->checkskill(sd,BS_MAXIMIZE); int_ += 2 * skill_lv; }
well ... I am not able to calculate the basic attack and the magic attack ... there is something wrong with my calculation ... maybe I am doing the wrong way.
so ... how to correctly calculate the magic attack correctly? (and also the basic attack) 😵
Share this post
Link to post
Share on other sites