Jump to content
  • 0

Cap Max ASPD By Skill Check


Litro Endemic

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   77
  • Joined:  06/13/13
  • Last Seen:  

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

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...