Jump to content
  • 0

Freeze Duration Help !


Noire

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

In old revision they have base luck to immunity changes, so basically when you just need to set it and experiment what corresponding value it'll reduce the freeze % and it's duration. though i've been exploring around  to use the latest new revisions sadly this code was gone on conf/battle/status. :(

 

This: 

// Required luk to gain inmunity to status changes.
// Luk increases resistance by closing the gap between natural resist and max
// linearly. This setting indicates required luk to gain complete immunity.
// Eg: 40 vit -> 40% resist. 150 luk -> +50% of the missing gap.
//     So 40% + (50% of 60%) = 70%
pc_luk_status_def: 300
mob_luk_status_def: 300

 

So far i've been checking whats new in status.c and i found this code how can i decrease the duration of frost/freeze base on luck via src or in anyway to nerf it. ( I'm not  really good on evaluating it )

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;
Edited by Emistry
changed to code bbcode.
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

Can anyone help me how to edit defrost duration. :/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  216
  • Reputation:   9
  • Joined:  07/12/12
  • Last Seen:  

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;

 

 

 

how to edit example = if player have a 300 luk is immune with freeze or stone curse?

Edited by Patskie
Change to code
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  15
  • Reputation:   3
  • Joined:  09/11/13
  • Last Seen:  

You could check like this:

 

case SC_FREEZE:
case SC_STONE:
sc_def = status->mdef*100;
sc_def2 = status->luk*10 + status_get_lv(bl)*10 - status_get_lv(src)*10;
if(status_src->luk >= 300) {
    tick_def2 = INT_MIN;
} else {
    tick_def2 = status_src->luk*-10;
}

Pretty hacky solution I think.

But I'm not too sure if that is the best solution to this...

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