Smiley33 Posted April 10, 2024 Group: Members Topic Count: 8 Topics Per Day: 0.02 Content Count: 18 Reputation: 0 Joined: 02/21/24 Last Seen: June 18, 2024 Share 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 Link to comment Share on other sites More sharing options...
0 Rynbef Posted April 10, 2024 Group: Forum Moderator Topic Count: 48 Topics Per Day: 0.01 Content Count: 941 Reputation: 125 Joined: 05/23/12 Last Seen: 3 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 Smiley33 Posted April 10, 2024 Group: Members Topic Count: 8 Topics Per Day: 0.02 Content Count: 18 Reputation: 0 Joined: 02/21/24 Last Seen: June 18, 2024 Author Share Posted April 10, 2024 on compiling Quote Link to comment Share on other sites More sharing options...
0 Rynbef Posted April 10, 2024 Group: Forum Moderator Topic Count: 48 Topics Per Day: 0.01 Content Count: 941 Reputation: 125 Joined: 05/23/12 Last Seen: 3 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 Smiley33 Posted April 10, 2024 Group: Members Topic Count: 8 Topics Per Day: 0.02 Content Count: 18 Reputation: 0 Joined: 02/21/24 Last Seen: June 18, 2024 Author Share Posted April 10, 2024 Quote Link to comment Share on other sites More sharing options...
0 Rynbef Posted April 10, 2024 Group: Forum Moderator Topic Count: 48 Topics Per Day: 0.01 Content Count: 941 Reputation: 125 Joined: 05/23/12 Last Seen: 3 hours ago Share 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 Link to comment Share on other sites More sharing options...
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 Smiley33Link to comment
Share on other sites
5 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.