Jump to content
  • 0
Sign in to follow this  
Yoh Asakura

How to edit Perfect Flee

Question

Hi,

 

I would like to know how I can edit the perfect flee atribute.

 

For example, the more I have Luck atribute the more I will have flee, till I get 100, which will be perfect flee, but I don't want to let it be 100. Where can I edit this? For sure must be source edit, but where?

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0
if ( bl->type&battle_config.enable_perfect_flee )	    st->flee2 += st->luk/17*10 + 10; //(every 17 luk = +1 perfect flee) 

:meow:

Share this post


Link to post
Share on other sites
  • 0

../conf/battle/battle.conf

// Who can have perfect flee? (Note 3)enable_perfect_flee: 1

 

../src/map/status.c

if ( bl->type&battle_config.enable_perfect_flee )	    st->flee2 += st->luk + 10; //(every 10 luk = +1 perfect flee)
Edited by quesoph

Share this post


Link to post
Share on other sites
  • 0

I will try to edit the source. Thank you for the help.



Didin't work...



I also have found in skill.c the following:

 

 

		 case BA_WHISTLE:			val1 = skill_lv +st->agi/10; // Flee increase			val2 = ((skill_lv+1)/2)+st->luk/10; // Perfect dodge increase

 

I don't need to alter it too?

Share this post


Link to post
Share on other sites
  • 0

 

../conf/battle/battle.conf

// Who can have perfect flee? (Note 3)enable_perfect_flee: 1

 

../src/map/status.c

if ( bl->type&battle_config.enable_perfect_flee )	    st->flee2 += st->luk + 10; //(every 10 luk = +1 perfect flee)

I've changed as you said but it's still the same :(

Share this post


Link to post
Share on other sites
  • 0

@status.c

 

if(flag&SCB_FLEE2 && bst->flee2) {  if (st->luk == bst->luk)   st->flee2 = status->calc_flee2(bl, sc, bst->flee2, true);  else   st->flee2 = status->calc_flee2(bl, sc, bst->flee2 +(st->luk - bst->luk), true);  st->flee2 = min(st->flee2, 90); // << cap until 90 and won't go higher}

:meow:

Share this post


Link to post
Share on other sites
  • 0

@status.c

 

if(flag&SCB_FLEE2 && bst->flee2) {  if (st->luk == bst->luk)   st->flee2 = status->calc_flee2(bl, sc, bst->flee2, true);  else   st->flee2 = status->calc_flee2(bl, sc, bst->flee2 +(st->luk - bst->luk), true);  st->flee2 = min(st->flee2, 90); // << cap until 90 and won't go higher}

:meow:

But what happened with the part I've changed?  I tried to put each 17 luk = +1 perfect flee, but it's still each 10 luk = +1perfect flee.

What you said above...I won't change that because with Custom Items is possible to have perfect flee, that's why I want to change the points of luck to get perfect flee...

 

 

if ( bl->type&battle_config.enable_perfect_flee )        st->flee2 += st->luk + 10; //(every 10 luk = +1 perfect flee)
Edited by Yoh Asakura

Share this post


Link to post
Share on other sites
  • 0

 

if ( bl->type&battle_config.enable_perfect_flee )	    st->flee2 += st->luk/17*10 + 10; //(every 17 luk = +1 perfect flee) 

:meow:

Oh, I didin't change like that. I will try it. Thank you.

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.