Jump to content
  • 0

want to make 100% immunity for freeze status when luk 300


Question

11 answers to this question

Recommended Posts

Posted

trunk\src\map\status.c

 

case SC_FREEZE:
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
break;
Posted

 

trunk\src\map\status.c

case SC_FREEZE:
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
break;

 

___

 

what and where i should put value to make it work? 100% immunity for freeze status with luk 300!

Posted

i had tried editing it, by default its like approx. 230 luk gives freeze immunity, you just have to edit some part of these two lines :-

 

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

 

Just try to edit the formula.

Posted

i had tried editing it, by default its like approx. 230 luk gives freeze immunity, you just have to edit some part of these two lines :-

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

Just try to edit the formula.

__

there is problem..when i use lvl 1 Strom gust i still get freez even i have 250 luk

why is that?

Posted (edited)

I think because there are 3 different formulas, 

 

sc_def = status->mdef*100;

 

This one checks mdef, if you've noticed that when your base mdef is around 80+ it takes more hits of SG to freeze the char (not 100% sure though) and it also reduces the frozen status duration if you have high base mdef(not the int one).

 

I'm sorry because i had tested it using Ice Cream(item status) which gave freeze immunity at approx 230 luk.


Try this, it should work.

case SC_FREEZE:
            if (status->luk == 300)
                return 0;
            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
            break;

Les say if you have 250 base luk + 50 luk from status/eq/items it will stack and count as 300 luk and will give immunity to freezing status.

Edited by Veracious
Posted

I think because there are 3 different formulas, 

 

sc_def = status->mdef*100;

 

This one checks mdef, if you've noticed that when your base mdef is around 80+ it takes more hits of SG to freeze the char (not 100% sure though) and it also reduces the frozen status duration if you have high base mdef(not the int one).

 

I'm sorry because i had tested it using Ice Cream(item status) which gave freeze immunity at approx 230 luk.

Try this, it should work.

case SC_FREEZE:
            if (status->luk == 300)
                return 0;
            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
            break;

Les say if you have 250 base luk + 50 luk from status/eq/items it will stack and count as 300 luk and will give immunity to freezing status.

its not working i still getting freez

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...