Jump to content
  • 0

Freeze problems


Mentalist

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  67
  • Reputation:   1
  • Joined:  09/23/12
  • Last Seen:  

Ive been looking for some posts but i didn't find any solution. How do i make a char immune to freeze with luk > X ?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  130
  • Topics Per Day:  0.03
  • Content Count:  528
  • Reputation:   18
  • Joined:  09/11/12
  • Last Seen:  

Like you can see here this is not so easy:

 

http://rathena.org/board/topic/87956-about-freeze-timer-and-rate/?p=225157

 

It was removed out of rAthena in the past.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  67
  • Reputation:   1
  • Joined:  09/23/12
  • Last Seen:  

No one else ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   38
  • Joined:  04/28/13
  • Last Seen:  

Where are you getting that weird information ?. Since Renewal started STR never gave me inmunity to Stun neither 100 Luk gave me inmunity to Freeze / Frozen.

This is how it works the Renewal Stats:
http://irowiki.org/wiki/Stats

This is how it works the Renewal Status:
http://irowiki.org/wiki/Stun#Stun

But if you still wanting to be immune to Freeze with 100 Luk and Stun with 100 Vit just go to yourserver/src/map/status.c and find the following:

CODE
case SC_FREEZE:
        sc_def = 3 +status->mdef;
        break;



And change it like this:
 

CODE
case SC_FREEZE:
        sc_def = 3 +status->luk;
        break;



For immunity to Stun having 100 Str inside of status.c find the following:
 

CODE
status = status_get_status_data(bl);
    switch (type)
    {
    case SC_STUN:
    case SC_POISON:
    case SC_DPOISON:
    case SC_SILENCE:
    case SC_BLEEDING:
        sc_def = 3 +status->vit;



And change it like this:
 

CODE
status = status_get_status_data(bl);
    switch (type)
    {
    case SC_STUN:
              sc_def = 3 +status->str;
              break;
    case SC_POISON:
    case SC_DPOISON:
    case SC_SILENCE:
    case SC_BLEEDING:
        sc_def = 3 +status->vit;



Remember to recompile your server.

 

FROM eAthena forum.

Credits eAthena.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  67
  • Reputation:   1
  • Joined:  09/23/12
  • Last Seen:  

Well if i disable rathena features in the core , should it work normally?
Anyway my code is :

 

 

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;

should i rewrite 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...