EDP, Aspd status.c check?

vBrenth

New member
Messages
391
Points
0
Age
35
Location
Philippines
Discord
Brenth
Github
vBrenth
Emulator
Client Version
RE
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

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);
    }
 
Back
Top