Jump to content
  • 0
Sign in to follow this  
vBrenth

EDP, Aspd status.c check?

Question

Uhm, I guess i already asked alot of person regarding this one.

 

Description:

EDP was changed a bit as follows: if your Aspd is less than the max (197), then it will be just as normal. However, if it is 197, then Level 5 EDP will reduce the Aspd by 2 no matter what and Level 4 EDP by 1. Level 3 and below will not reduce the Aspd at all.

 

What im trying is to add a code where to check if the "player has 197 ASPD", been trying some codes but it aint working.

 

status.c code

    // Custom EDP ASPD Cap
    // If Level 1 - 3 = 197, Level 4 = 196, Level 5 = 195
    if (sc->data[SC_EDP]) {
        if (sc->data[SC_EDP]->val1 == 5)
            bstatus->amotion = cap_value(i,2000-195*10,2000);
        else if (sc->data[SC_EDP]->val1 == 4)
            bstatus->amotion = cap_value(i,2000-196*10,2000);
    }

 

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.