Jump to content
  • 0

adjusting the success rate of socket enchant


Question

7 answers to this question

Recommended Posts

  • 1
Posted

"100,100" would be mean between 100 and 100 which is 0%.

 

If you do not change the thing Emistry did, then you can achieve 100% success by doing this:

 

 case 1: callfunc "Func_Socket",1460,1461,0,101,200,1010,10;

 

 

An easier way is to just change the if to something that is always true like "if(1)" or "if(true)" (not sure if that works in scripts, though).

  • Upvote 1
Posted

Check these lines:

 

case 1: callfunc "Func_Socket",1460,1461,40,66,200,1010,10;

 

Basically you roll a 100-sided dice and if the number is between those two numbers (excluding), it is successful.

 

1460 in this case is the item required and 1461 is the item you will get. If you want to increase the chance for example change it to:

 

case 1: callfunc "Func_Socket",1460,1461,35,71,200,1010,10;

Posted

change

set .@a, rand(1,100);
if ((.@a > getarg(2)) && (.@a < getarg(3)))
{

 

to

if( .@i ){

 

there is alot way to make it into 100% ....just simply pick 1 ...

Posted

Check these lines:

 

case 1: callfunc "Func_Socket",1460,1461,40,66,200,1010,10;

 

Basically you roll a 100-sided dice and if the number is between those two numbers (excluding), it is successful.

 

1460 in this case is the item required and 1461 is the item you will get. If you want to increase the chance for example change it to:

 

case 1: callfunc "Func_Socket",1460,1461,35,71,200,1010,10;

 

 

 

"100,100" would be mean between 100 and 100 which is 0%.

 

If you do not change the thing Emistry did, then you can achieve 100% success by doing this:

 

 case 1: callfunc "Func_Socket",1460,1461,0,101,200,1010,10;

 

 

An easier way is to just change the if to something that is always true like "if(1)" or "if(true)" (not sure if that works in scripts, though).

 

 

Thank you so much :D

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...