Jump to content
  • 0
Sign in to follow this  
vBrenth

ATK/MATK Pre-RE but using RENEWAL!

Question

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

9 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0

>.< 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 :D thanks punck.

Share this post


Link to post
Share on other sites
  • 0

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 by Lubri

Share this post


Link to post
Share on other sites
  • 0

yeah, over all the place that there are calculations, I did this for my server long ago :P but since I have a plenty of src mods I can't post diff here :/ but it is kinda easy, just time consuming

Share this post


Link to post
Share on other sites
  • 0

Evil, on ur posts i already have error :(

 

svnsrcmapstatus.c(2020): warning C4013: 'status_base_matk_min' undefined; assuming extern returning int

Share this post


Link to post
Share on other sites
  • 0

actually it is still in status.c, there are 3 occurrences of status_base_matk_min that you need to change the ifdef

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.