Jump to content
  • 0

fishing script help


Diss

Question


  • Group:  Members
  • Topic Count:  67
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   1
  • Joined:  05/01/13
  • Last Seen:  

this is fishing script how can i change the chance to get the item 



else if (.@rhea_ran == 28) {
       getitem 4399,1; //Thanatos Card
       mapannounce "trinity","" + strcharinfo(0) + " has caught a Thanatos Card!!",bc_map,"0xff77ff";
}

Edited by Patskie
Change to code
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  

You mean something like this? n =  number of chance (%) so if you put 20 on the n part it is 20%

if ( rand(100) < n ) 
    getitem 4399,1;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  67
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   1
  • Joined:  05/01/13
  • Last Seen:  

else if  ( rand(100) < 20 ) {
       getitem 4399,1; //Thanatos Card
       mapannounce "trinity","" + strcharinfo(0) + " has caught a Thanatos Card!!",bc_map,"0xff77ff";
}

 

should i make it like this ?

 

or like this 

 

else if ((.@rhea_ran > 28) && (.@rhea_ran < 20)) {

Edited by Diss
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  

To be honest i don't know what does the .@rhea_ran means. Or if you want you can do the code you made in the else if statement 

else if ( rand(100) < 20 ) {
       getitem 4399,1; //Thanatos Card
       mapannounce "trinity","" + strcharinfo(0) + " has caught a Thanatos Card!!",bc_map,"0xff77ff";
}
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...