Jump to content
  • 0

Refine chances


simplyniceweb

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  03/24/20
  • Last Seen:  

So i've made my own custom refine script. What i am missing is the chances or the formula.

Like:

+1 - +5 = 100% chance of success
+6 = 80% chance of success - 20% chance of failing
+7 = 60% chance of success - 40% chance of failing
+8 = 40% chance of success - 60% chance of failing
+9 = 20% chance of success - 80% chance of failing
+10 = 10% chance of success - 90% chance of failing

 

here's my custom script:

https://gist.github.com/simplyniceweb/6536f6a34bdae8604f9803f9357b9659

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  108
  • Reputation:   1
  • Joined:  02/10/12
  • Last Seen:  

why not use the default refine.txt then change the success rate of refining at /db/(pre)re/refine.txt?

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

if (.@chance >= .@passrate) {
	goto sureball_refine;
} else {
	goto fail_refine;
}

change to

if (rand(100) < .@passrate) {
	goto sureball_refine;
} else {
	goto fail_refine;
}

 

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