Jump to content
  • 0
Sign in to follow this  
josue2017

Script 1%

Question

I would like to know how I do pro item have% to come in npc all that I tested the item comes with 1% I would like the item had 1% to come but when I try here as soon as it comes it comes

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

if (rand(1,100) <= 1) { // 1% de chance

   getitem 501,1;

} 

if (rand(1,100) <= 5) { // 5% de chance

   getitem 501,1;

} 

if (rand(1,100) <= 50) { // 50% de chance

   getitem 501,1;

} 

if (rand(1,2) == 1) { // 50% de chance

   getitem 501,1;

} 

 

Entendeu como é fácil?

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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