Jump to content
  • 0

Question

Posted

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
 

1 answer to this question

Recommended Posts

  • 0
Posted

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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...