vBrenth 39 Posted April 12, 2014 Is this possible, i really love renewal things but just the matk/atk because im my server is only a TRANS server, can someone help me to disable renewal matk/atk? Please :'( is this even possible? Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted April 12, 2014 you need to go into all files related to atk/matk calculation and change "#ifdef RENEWAL" into "#ifndef RENEWAL" to revert them back to default, like battle.c/h and status.c/h example: this: #ifdef RENEWAL // renewal formulas st->matk_min = st->matk_max = bl->type == BL_PC ? status->base_matk(st, level) : level + st->int_; st->hit += level + st->dex + (bl->type == BL_PC ? st->luk/3 + 175 : 150); //base level + ( every 1 dex = +1 hit ) + (every 3 luk = +1 hit) + 175 st->flee += level + st->agi + (bl->type == BL_PC ? st->luk/5 : 0) + 100; //base level + ( every 1 agi = +1 flee ) + (every 5 luk = +1 flee) + 100 st->def2 += (int)(((float)level + st->vit)/2 + ( bl->type == BL_PC ? ((float)st->agi/5) : 0 )); //base level + (every 2 vit = +1 def) + (every 5 agi = +1 def) st->mdef2 += (int)( bl->type == BL_PC ?(st->int_ + ((float)level/4) + ((float)(st->dex+st->vit)/5))(float)(st->int_ + level)/4)); //(every 4 base level = +1 mdef) + (every 1 int = +1 mdef) + (every 5 dex = +1 mdef) + (every 5 vit = +1 mdef)#else // not RENEWAL st->matk_min = status_base_matk_min(st); st->matk_max = status_base_matk_max(st); st->hit += level + st->dex; st->flee += level + st->agi; st->def2 += st->vit; st->mdef2 += st->int_ + (st->vit>>1);#endif // RENEWAL becomes: #ifndef RENEWAL // renewal formulas st->matk_min = st->matk_max = bl->type == BL_PC ? status->base_matk(st, level) : level + st->int_; st->hit += level + st->dex + (bl->type == BL_PC ? st->luk/3 + 175 : 150); //base level + ( every 1 dex = +1 hit ) + (every 3 luk = +1 hit) + 175 st->flee += level + st->agi + (bl->type == BL_PC ? st->luk/5 : 0) + 100; //base level + ( every 1 agi = +1 flee ) + (every 5 luk = +1 flee) + 100 st->def2 += (int)(((float)level + st->vit)/2 + ( bl->type == BL_PC ? ((float)st->agi/5) : 0 )); //base level + (every 2 vit = +1 def) + (every 5 agi = +1 def) st->mdef2 += (int)( bl->type == BL_PC ?(st->int_ + ((float)level/4) + ((float)(st->dex+st->vit)/5))(float)(st->int_ + level)/4)); //(every 4 base level = +1 mdef) + (every 1 int = +1 mdef) + (every 5 dex = +1 mdef) + (every 5 vit = +1 mdef)#else // not RENEWAL st->matk_min = status_base_matk_min(st); st->matk_max = status_base_matk_max(st); st->hit += level + st->dex; st->flee += level + st->agi; st->def2 += st->vit; st->mdef2 += st->int_ + (st->vit>>1);#endif // RENEWAL Quote Share this post Link to post Share on other sites
0 vBrenth 39 Posted April 12, 2014 >.< I hope someone will give me a diff file for that, all i can see is pain in the ass i would try to do that later its 11:23 pm here i need some sleep but i hope someone will make a diff for it thanks punck. Quote Share this post Link to post Share on other sites
0 vBrenth 39 Posted April 13, 2014 (edited) uhm so i just change the #ifndef ? :'( Failed. Im getting alot of error like. clif.c: In function 'clif_updatestatus':clif.c:3036: error: 'struct weapon_atk' has no member named 'matk'clif.c:3036: error: 'struct weapon_atk' has no member named 'matk'clif.c: In function 'clif_initialstatus':clif.c:3394: error: 'struct weapon_atk' has no member named 'matk'clif.c:3394: error: 'struct weapon_atk' has no member named 'matk' Edited April 13, 2014 by Lubri Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted April 13, 2014 yeah, over all the place that there are calculations, I did this for my server long ago but since I have a plenty of src mods I can't post diff here :/ but it is kinda easy, just time consuming Quote Share this post Link to post Share on other sites
0 vBrenth 39 Posted April 13, 2014 Evil, on ur posts i already have error svnsrcmapstatus.c(2020): warning C4013: 'status_base_matk_min' undefined; assuming extern returning int Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted April 13, 2014 seems like u forgot to change the ifdef also in status.h Quote Share this post Link to post Share on other sites
0 vBrenth 39 Posted April 13, 2014 Sorry if its too much to ask where in the part of status.h ? Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted April 13, 2014 actually it is still in status.c, there are 3 occurrences of status_base_matk_min that you need to change the ifdef Quote Share this post Link to post Share on other sites
0 vBrenth 39 Posted April 14, 2014 Evil, I did all my best and no compiling error but my MATK turn into 0 >.< '( Quote Share this post Link to post Share on other sites
Is this possible, i really love renewal things but just the matk/atk because im my server is only a TRANS server, can someone help me to disable renewal matk/atk?
Please :'( is this even possible?
Share this post
Link to post
Share on other sites