Smiley33 Posted April 10 Group: Members Topic Count: 5 Topics Per Day: 0.07 Content Count: 9 Reputation: 0 Joined: 02/21/24 Last Seen: 15 hours ago Share Posted April 10 (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 by Smiley33 Quote Link to comment Share on other sites More sharing options...
0 Rynbef Posted April 10 Group: Forum Moderator Topic Count: 44 Topics Per Day: 0.01 Content Count: 896 Reputation: 118 Joined: 05/23/12 Last Seen: 23 hours ago Share Posted April 10 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 Group: Members Topic Count: 5 Topics Per Day: 0.07 Content Count: 9 Reputation: 0 Joined: 02/21/24 Last Seen: 15 hours ago Author Share Posted April 10 on compiling Quote Link to comment Share on other sites More sharing options...
0 Rynbef Posted April 10 Group: Forum Moderator Topic Count: 44 Topics Per Day: 0.01 Content Count: 896 Reputation: 118 Joined: 05/23/12 Last Seen: 23 hours ago Share Posted April 10 (edited) And what is the error? Can u upload a screenshot? U use an old version of rAthena? Rynbef~ Edited April 10 by Rynbef Quote Link to comment Share on other sites More sharing options...
0 Smiley33 Posted April 10 Group: Members Topic Count: 5 Topics Per Day: 0.07 Content Count: 9 Reputation: 0 Joined: 02/21/24 Last Seen: 15 hours ago Author Share Posted April 10 Quote Link to comment Share on other sites More sharing options...
0 Rynbef Posted April 10 Group: Forum Moderator Topic Count: 44 Topics Per Day: 0.01 Content Count: 896 Reputation: 118 Joined: 05/23/12 Last Seen: 23 hours ago Share Posted April 10 (edited) @Cydh or @Capuche I can't help. May u help him? Rynbef~ Edited April 10 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.