Smiley33 Posted April 10, 2024 Posted April 10, 2024 (edited) what i want is if when groupid is higher than 0 and the base stats agility is higher than 170 and increase agi is buffed the attackspeed will be capped at 196 else attackspeed is capped by 195 if (sc->data[AL_INCAGI] ) && (pc_get_group_id(sd) >0 ) && (readparam(bAgi) > 170) { if (sc->data[AL_INCAGI]->val1 == 10) status->amotion = cap_value(amotion, pc_maxaspd(sd) + 20, 2000); i was having error on (pc_get_group_id("sd") and (readparam(bAgi) > 170) i got the code from this Edited April 10, 2024 by Smiley33 Quote
0 Rynbef Posted April 10, 2024 Posted April 10, 2024 Which error appears? On compiling or on console? I think this is too old. rAthena is changing to C++ Rynbef~ Quote
0 Rynbef Posted April 10, 2024 Posted April 10, 2024 (edited) And what is the error? Can u upload a screenshot? U use an old version of rAthena? Rynbef~ Edited April 10, 2024 by Rynbef Quote
0 Rynbef Posted April 10, 2024 Posted April 10, 2024 (edited) @Cydh or @Capuche I can't help. May u help him? Rynbef~ Edited April 10, 2024 by Rynbef 1 Quote
Question
Smiley33
what i want is if when groupid is higher than 0 and the base stats agility is higher than 170 and increase agi is buffed the attackspeed will be capped at 196
else attackspeed is capped by 195
if (sc->data[AL_INCAGI] ) && (pc_get_group_id(sd) >0 ) && (readparam(bAgi) > 170) {
if (sc->data[AL_INCAGI]->val1 == 10)
status->amotion = cap_value(amotion, pc_maxaspd(sd) + 20, 2000);
i was having error on (pc_get_group_id("sd") and (readparam(bAgi) > 170)
i got the code from this
Edited by Smiley335 answers 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.