Jump to content
  • 0

Decreasing Pharmacy/Forging Success Chance


nicoscene

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   6
  • Joined:  04/26/12
  • Last Seen:  

Hi rAthena, i'd like to know how do i reduce the success chance of Forging and Pharmacy. Because as of now, even without Luk or Dex it is 100%

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

you can find it here src/map/skill.c#L17678

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   6
  • Joined:  04/26/12
  • Last Seen:  

you can find it here src/map/skill.c#L17678

Thanks but i have no idea what to modify lol

It is the 

 

 

make_per += (1+rnd()%100)*10 + 2000;

Please correct me if im wrong

 

Thanks

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

make_per = success rate

 

Pharmacy, Twilight skills
src/map/skill.c#L17682 means

  • Each Learning Potion level +0.5% success rate
  • Each Pharmacy level +3% success rate
  • Each Job level +0.2% success rate
  • Each 2 Int +0.1% success rate
  • Each Dex +0.1% success rate
  • Each Luk +0.1% success rate

since this line src/map/skill.c#L17690, the rate is adjusted based on item id

 

Forging

The rate starts here src/map/skill.c#L17886

 

and maybe, if u interested to capping, max sucsess rate, you can put this code at src/map/skill.c#L17903

make_per = max(make_per,8000); // Max 80%
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   6
  • Joined:  04/26/12
  • Last Seen:  

 

make_per = success rate

 

Pharmacy, Twilight skills

src/map/skill.c#L17682 means

  • Each Learning Potion level +0.5% success rate
  • Each Pharmacy level +3% success rate
  • Each Job level +0.2% success rate
  • Each 2 Int +0.1% success rate
  • Each Dex +0.1% success rate
  • Each Luk +0.1% success rate

since this line src/map/skill.c#L17690, the rate is adjusted based on item id

 

Forging

The rate starts here src/map/skill.c#L17886

 

and maybe, if u interested to capping, max sucsess rate, you can put this code at src/map/skill.c#L17903

make_per = max(make_per,8000); // Max 80%

Thanks, is it possible to put a cap on the success rate of Brewing too?

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