Jump to content
  • 0

immune to freezing with 300 luk help


Mitosky

Question


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.02
  • Content Count:  104
  • Reputation:   0
  • Joined:  10/22/19
  • Last Seen:  

Good evening, I came here to ask how I can make myself immune to freezing with 300 luk in my server pre-re. I have seen how to do it elsewhere but my emulator is new.

my code is :

|

Quote

        case SC_FREEZE:
#ifndef RENEWAL
            sc_def = status->mdef*100;
            sc_def2 = status->luk*10 + status_get_lv(bl)*10 - status_get_lv(src)*10;
            tick_def2 = status_src->luk*-10; // Caster can increase final duration with luk
#else
            sc_def = status->mdef * 100 - levelAdv;
            tick_def2 = -3000;
#endif


image.png.b33705b0f49d1b0ef8a1f960a55895dd.png
 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  897
  • Reputation:   248
  • Joined:  01/30/13
  • Last Seen:  

My suggestion would be to change this:

sc_def = status->mdef*100;

To:

sc_def = status->mdef*100 + status->luk*30;

That makes 300 Luk result in 90% resist, plus -30% fixed reduction, so even if the base chance is 300%, you would fully resist it.

Alternatively you could change both sc_def and sc_def2 like this:

            sc_def = status->mdef*100 + (status->luk*100)/3;
            sc_def2 = status_get_lv(bl)*10 - status_get_lv(src)*10;

This would remove the fixed reduction from luk, but makes sure you have 100% resist at Luk=300.

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...