Jump to content
  • 0

All common status resist = 300 luk


Xenduria

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  48
  • Reputation:   2
  • Joined:  08/05/19
  • Last Seen:  

I would like to make a character status immune to the common ailments by having a total luck count of 300. Can anyone help me out with this?

So far this is what i have and it doesn't seem to be working.

 

if ((type >= SC_COMMON_MIN && type <=  SC_COMMON_MAX) && status->luk >= 300)
     sc_def = 10000;

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   79
  • Joined:  06/13/13
  • Last Seen:  

try putting it before this code and don't forget to recompile.

	// When tick def not set, reduction is the same for both.
	if(tick_def == -1)
		tick_def = sc_def;

 

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