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?