Salut,
Le système de % est "15% / 100" donc si tu n'as pas de chance, tu n'auras rien, les % ne se cumulent pas. De mon côté, j'utilise ce bout de code pour donner un stuff aléatoire, si cela peut te servir ^^' (par contre, là tu es sûr d'avoir au moins 1 item) mais du coup tu ne contrôle pas le nombre de % 😄
loop all players:
set {_rl} to 0
loop 4 times:
add 1 to {_l}
add "%{_l}%" to {_legendaire::*}
set {_rl} to a random element out of {_legendaire::*}
if {_rl} is "1":
give diamond helmet of protection 5, unbreaking 4 named "&d&k!!&r &b&lSTUFF LEGENDAIRE+ &d&k!!&r" to loop-player
if {_rl} is "2":
give diamond chestplate of protection 5, unbreaking 4 named "&d&k!!&r &b&lSTUFF LEGENDAIRE+ &d&k!!&r" to loop-player
if {_rl} is "3":
give diamond leggings of protection 5, unbreaking 4 named "&d&k!!&r &b&lSTUFF LEGENDAIRE+ &d&k!!&r" to loop-player
if {_rl} is "4":
give diamond boots of protection 5, unbreaking 4 named "&d&k!!&r &b&lSTUFF LEGENDAIRE+ &d&k!!&r" to loop-player