Jump to content
  • 0

Crit +1 per skill level


Eross

Question


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.11
  • Content Count:  349
  • Reputation:   12
  • Joined:  04/05/20
  • Last Seen:  

Regarding critical on PR_MACEMASTERY passive .. How to add +1 critical for every skill level ? Thankyou !

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   3
  • Joined:  04/29/14
  • Last Seen:  

In status.cpp, under the status_calc_pc_sub function

 

Under this code block:

#ifdef RENEWAL
	if ((skill = pc_checkskill(sd, DC_DANCINGLESSON)) > 0)
		base_status->cri += skill * 10;
	if ((skill = pc_checkskill(sd, PR_MACEMASTERY)) > 0 && (sd->status.weapon == W_MACE || sd->status.weapon == W_2HMACE))
		base_status->cri += skill * 10;
#endif

 

Insert:

if ((skill = pc_checkskill(sd, PD_MACEMASTERY)) > 0)
		base_status->cri += skill * 10;

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.11
  • Content Count:  349
  • Reputation:   12
  • Joined:  04/05/20
  • Last Seen:  

On 8/5/2021 at 4:06 PM, Dazzu said:

In status.cpp, under the status_calc_pc_sub function

 

Under this code block:


#ifdef RENEWAL
	if ((skill = pc_checkskill(sd, DC_DANCINGLESSON)) > 0)
		base_status->cri += skill * 10;
	if ((skill = pc_checkskill(sd, PR_MACEMASTERY)) > 0 && (sd->status.weapon == W_MACE || sd->status.weapon == W_2HMACE))
		base_status->cri += skill * 10;
#endif

 

Insert:


if ((skill = pc_checkskill(sd, PD_MACEMASTERY)) > 0)
		base_status->cri += skill * 10;

 

Hi I cant find those lines on my status.cpp sir 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   3
  • Joined:  04/29/14
  • Last Seen:  

I see it in the rAthena repo.

image.png.0bc8877cf78d7c8dd0bd0e2b0e47b075.png

Look harder.

 

Edited by Dazzu
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.11
  • Content Count:  349
  • Reputation:   12
  • Joined:  04/05/20
  • Last Seen:  

6 hours ago, Dazzu said:

I see it in the rAthena repo.

image.png.0bc8877cf78d7c8dd0bd0e2b0e47b075.png

Look harder.

 

Hi ! thanks for your help ! ive already done it by adding manually .. Thanks for your help sir !

Link to comment
Share on other sites

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...