Jump to content
  • 0
AinsLord

Success rate information for enchanter

Question

does this script means the higher the number input the lower the chance or vise versa?

if (countitem(.@costumeID) > 0 && countitem(.@stoneID) > 0) {
		delitem .@stoneID,1;
		if (rand(1,100) < 91)

coz i tried lo make it like 30 the success is like 7/10 items

just a little bit confuse thou

thanks in advance

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
45 minutes ago, Litro Endemic said:

testing random will give you random result 😅

if (rand(1,100) < 91)

^ that mean 90% = 1 ~ 100 lower than 91

ohh how can i make it like 10% or 20%?

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.