Jump to content

  •  

Photo

Script 1%


  • Please log in to reply
1 reply to this topic

#1 josue2017

josue2017

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 21 March 2017 - 06:08 PM

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



#2 Pedroooo

Pedroooo

    Advanced Member

  • Members
  • PipPipPip
  • 102 posts
  • Github:Pedro

Posted 25 March 2017 - 05:38 AM


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?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


This topic has been visited by 41 user(s)