Litro Endemic Posted June 15, 2017 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 283 Reputation: 79 Joined: 06/13/13 Last Seen: June 7, 2023 Share Posted June 15, 2017 I want to cap max aspd when the player have a skill, I want to cap it at 150 when the skill is level 1, i have trying code below but the result is always 185 short pc_maxaspd(struct map_session_data *sd) { nullpo_ret(sd); return ((pc_checkskill(sd,NPC_MINING) > 0) ? (145 + (pc_checkskill(sd,NPC_MINING)*5)) : ((sd->class_&JOBL_THIRD) ? battle_config.max_third_aspd : ( ((sd->class_&MAPID_UPPERMASK) == MAPID_KAGEROUOBORO || (sd->class_&MAPID_UPPERMASK) == MAPID_REBELLION) ? battle_config.max_extended_aspd : battle_config.max_aspd ))); } the player getting this skill by using equipment with script skill "NPC_MINING",1; Can someone tell me what gone wrong or how to do it? Quote Link to comment Share on other sites More sharing options...
Question
Litro Endemic
I want to cap max aspd when the player have a skill, I want to cap it at 150 when the skill is level 1, i have trying code below but the result is always 185
short pc_maxaspd(struct map_session_data *sd) { nullpo_ret(sd); return ((pc_checkskill(sd,NPC_MINING) > 0) ? (145 + (pc_checkskill(sd,NPC_MINING)*5)) : ((sd->class_&JOBL_THIRD) ? battle_config.max_third_aspd : ( ((sd->class_&MAPID_UPPERMASK) == MAPID_KAGEROUOBORO || (sd->class_&MAPID_UPPERMASK) == MAPID_REBELLION) ? battle_config.max_extended_aspd : battle_config.max_aspd ))); }
the player getting this skill by using equipment with script skill "NPC_MINING",1;
Can someone tell me what gone wrong or how to do it?
Link to comment
Share on other sites
0 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.