Jump to content
  • 0

adjusting the success rate of socket enchant


PapaZola

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

thanks

Edited by PapaZola
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 1

  • Group:  Developer
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  818
  • Reputation:   237
  • Joined:  01/30/13
  • Last Seen:  

"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
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  818
  • Reputation:   237
  • Joined:  01/30/13
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

im edy edit sir not work T_T
 
                        case 1: callfunc "Func_Socket",1460,1461,100,100,200,1010,10;
 

 

Link to comment
Share on other sites


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

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

sir emistry not working

:(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

thanks now its work :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   1
  • Joined:  02/02/14
  • Last Seen:  

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

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